Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Building OpenMPI with DevStudio 2010
From: Shiqing Fan (fan_at_[hidden])
Date: 2010-08-18 05:35:16


  Hi Rick,

All the steps you've done were absolutely correct. The CMake output
messages are not errors but the feature check results; if a real error
occurs, CMake will just stop and pop up an error message window.

Unfortunately, 1.4.2 doesn't have the VS 2010 support yet, it will be
added in the upcoming releases (1.4.3 and 1.5). So the solution for the
moment could be using the svn trunk or 1.5 branch. (1.4 branch will also
have this very soon, see https://svn.open-mpi.org/trac/ompi/ticket/2521)

Regards,
Shiqing

On 2010-8-17 7:26 PM, Rick Hullinger wrote:
> I am trying to get OpenMPI built on a windows machine using Dev
> Studio, and I'm not having any luck. I'm hoping someone can point me
> in the right direction.
> Here are the details:
>
> Environment: Windows 7, (64 bit OS, but I’m performing a 32 bit
> build), Attempting to build under Dev Studio 2010
> Steps:
> 1) Download OpenMPI 1.4.2 to E:\<path stuff>\openmpi-1.4.2
> 2) Run the windows installer for CMake 2.8.2
> 3) Open a visual studio command prompt and execute cmake-gui from the
> command line
> 4) Set the “source code:” directory to: E:\<path stuff>\openmpi-1.4.2
> Set the “Build the binaries:” directory to E:\<path stuff>\MPIBuild
> 5) Hit the configure button:
> Select Visual Studio 10 as the generator for this project
> Leave the radio button on the default “use default native compilers”
> Click Finish.
> Output: see file “cmake.output.txt” for the full output (I've added
> "**" to the start of each "error" line)
>
> Note: it’s my understanding that all of the “not found” messages are
> not necessarily errors, just CMake trying to figure out what is in
> place and what is not…so maybe everything so far is fine.
>
> 7) Hit the configure button again. Output:
> Check for working flex...
> Skipping MPI F77 interface
> looking for ccp...
> looking for ccp...not found.
> looking for ccp...
> looking for ccp...not found.
> Configuring done
>
> 8) Click Generate button. Output: “Generating done.”
> 9) Close CMake
> 10) Open MS DevStudio 2010, select “Open Project”, navigate to the
> MPIBuild directory and select the “OpenMPI.sln” project
> 11) Select “Build solution”
> 12) Wait....
> 13) Full output is attached in the file DevStudio.Output.txt, but right off the
> bat, there are several of these messages:
>> ..\..\openmpi-1.4.2\opal\event\WIN32-Code\win32.c(28): fatal error C1083: Cannot open include file: 'opal_config.h': No such file or directory
> then we get into:
>
> c1 : fatal error C1083: Cannot open source file:
> 'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/compat': Permission
> denied
>> WIN32-Code
> (note: compat is not a "source file" it's a directory? seems like an odd error)
>
>> c1 : fatal error C1083: Cannot open source file: 'E:/Code/C++/ExternalLibs/openmpi-1.4.2/opal/event/WIN32-Code': Permission denied
>> Generating Code...
>> ------ Build started: Project: libopen-rte, Configuration: Debug Win32 ------
>> ------ Build started: Project: opal-restart, Configuration: Debug Win32 ------
>> opal-restart.c
>> orted_comm.c
>> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdint.h(73): warning C4005: 'INT16_MIN' : macro redefinition
> ..and a ton of the “macro redefinition” errors after that.
>
> When all is said and done:
> ========== Build: 1 succeeded, 13 failed, 0 up-to-date, 2 skipped ==========
>
> Anybody have any ideas?
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
--------------------------------------------------------------
Shiqing Fan                          http://www.hlrs.de/people/fan
High Performance Computing           Tel.: +49 711 685 87234
   Center Stuttgart (HLRS)            Fax.: +49 711 685 65832
Address:Allmandring 30               email: fan_at_[hidden]
70569 Stuttgart