Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Building OpenMPI with DevStudio 2010
From: Rick Hullinger (rhullinger_at_[hidden])
Date: 2010-08-17 13:26:39


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?