Hi Kelly,

The problem was some properties were overwritten by VS 2010, so that it couldn't find the headers. It seems to be a incompatible between CMake and VS 2010.

I believe I fixed this in trunk by using other CMake commands which doesn't have such problem. Could you please have a try?


Regards,
Shiqing


On 2010-8-1 12:18 AM, Kelly Thompson wrote:
That CMake ticket appears to be closed (marked invalid).

I've spent a few hours trying to put configured headers in the expected places, but, so far, I have not been able to build openmpi with VS 2010.

-kt
-----
Kelly (KT) Thompson
k...@eklaj.org <mailto:k...@eklaj.org>



On Fri, Jul 30, 2010 at 3:08 AM, Shiqing Fan <f...@hlrs.de <mailto:f...@hlrs.de>> wrote:


    Hi Kelly,

    I saw this problem too, but I didn't find a proper solution yet.
    It seems like an issue with VS intellisense behavior. See this
    CMake ticket: http://www.itk.org/Bug/view.php?id=10572.

    Have you succeeded with it?


    Thanks,
    Shiqing



    On 2010-7-26 4:39 PM, Kelly Thompson wrote:

        Hi George,

        I have the source for 1.3.3 checked out.  The CMake step
        completes without
        reporting any errors or failures, but the compile under Visual
        Studio 2010
        fails with various bad things:

        This looks like a problem with CMake.  Either the config file
        was not
        generated correctly or the CMake files aren't looking in the
        correct
        locations...

        1>ClCompile:
        1>   win32.c
        1>..\..\opal\event\WIN32-Code\win32.c(28): fatal error C1083:
        Cannot open
        include file: 'opal_config.h': No such file or directory
        1>   event.c
        1>..\..\opal\event\event.c(28): fatal error C1083: Cannot open
        include file:
        'opal_config.h': No such file or directory
        1>   evutil.c
        1>..\..\opal\event\evutil.c(27): fatal error C1083: Cannot
        open include
        file: 'opal_config.h': No such file or directory
        1>   log.c
        1>..\..\opal\event\log.c(40): fatal error C1083: Cannot open
        include file:
        'opal_config.h': No such file or directory
        1>   select.c
        1>..\..\opal\event\select.c(29): fatal error C1083: Cannot
        open include
        file: 'opal_config.h': No such file or directory
        1>   signal.c
        1>..\..\opal\event\signal.c(29): fatal error C1083: Cannot
        open include
        file: 'opal_config.h': No such file or directory
        1>   compat


        I think the stdint.h file included with Visual Studio 2010 is
        different than
        the one provided with 2008.  I am seeing thousands of warnings
        like this:

        2>ClCompile:
        2>   orted_comm.c
        4>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(73): warning C4005: 'INT16_MIN' : macro
        redefinition
        4>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(169) :
        see previous
        definition of 'INT16_MIN'
        4>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(74): warning C4005: 'INT32_MIN' : macro
        redefinition
        4>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(160) :
        see previous
        definition of 'INT32_MIN'
        4>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(77): warning C4005: 'INT16_MAX' : macro
        redefinition
        4>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(172) :
        see previous
        definition of 'INT16_MAX'
        3>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(73): warning C4005: 'INT16_MIN' : macro
        redefinition
        3>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(169) :
        see previous
        definition of 'INT16_MIN'
        3>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(74): warning C4005: 'INT32_MIN' : macro
        redefinition
        3>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(160) :
        see previous
        definition of 'INT32_MIN'
        3>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(77): warning C4005: 'INT16_MAX' : macro
        redefinition
        3>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(172) :
        see previous
        definition of 'INT16_MAX'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(73): warning C4005: 'INT16_MIN' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(169) :
        see previous
        definition of 'INT16_MIN'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(74): warning C4005: 'INT32_MIN' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(160) :
        see previous
        definition of 'INT32_MIN'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(77): warning C4005: 'INT16_MAX' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(172) :
        see previous
        definition of 'INT16_MAX'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(78): warning C4005: 'INT32_MAX' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(157) :
        see previous
        definition of 'INT32_MAX'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(79): warning C4005: 'UINT8_MAX' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(175) :
        see previous
        definition of 'UINT8_MAX'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(80): warning C4005: 'UINT16_MAX' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(166) :
        see previous
        definition of 'UINT16_MAX'
        2>C:\Program Files (x86)\Microsoft Visual Studio
        10.0\VC\include\stdint.h(81): warning C4005: 'UINT32_MAX' : macro
        redefinition
        2>           C:\a\openmpi-1.3.3\opal/win32/win_compat.h(151) :
        see previous
        definition of 'UINT32_MAX'

        Any thoughts?

        -kt

            -----Original Message-----
            From: George Bosilca [mailto:bosi...@eecs.utk.edu
            <mailto:bosi...@eecs.utk.edu>]
            Sent: Friday, July 23, 2010 10:55 AM
            To: k...@lanl.gov <mailto:k...@lanl.gov>; Open MPI Developers
            Subject: Re: [OMPI devel] Can OpenMPI be compiled with
            Visual Studio 2010?

            Kelly,

            Windows is still a target platform for Open MPI which is
            supposed to build
            nicely with all versions of Visual Studio. Personally I
            didn't test the

        2010

            version, but if you provide us with the compilation output
            file we might

        be

            able to help.

              Thanks,
                george.

            On Jul 23, 2010, at 12:40 , Kelly Thompson wrote:

                Hi,

                I would like to know if anyone is trying to build
                Open-MPI under Visual

            Studio 2010?  I see that 1.3.3 was built under VS 2008,
            but I would like

        to

            build under the 2010 version and have been unsuccessful so
            far.

                Can someone tell me if MSVC continues to be a target
                platform?  Is there

        a

            wiki or other collaborative development site that deals
            with compiling
            OpenMPI for the Windows platform?

                Thanks!

                -kt

                _______________________________________________
                devel mailing list
                de...@open-mpi.org <mailto:de...@open-mpi.org>
                http://www.open-mpi.org/mailman/listinfo.cgi/devel

        _______________________________________________
        devel mailing list
        de...@open-mpi.org <mailto:de...@open-mpi.org>
        http://www.open-mpi.org/mailman/listinfo.cgi/devel



-- --------------------------------------------------------------
    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: f...@hlrs.de
    <mailto:f...@hlrs.de>
    70569 Stuttgart




--
--------------------------------------------------------------
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: f...@hlrs.de
70569 Stuttgart

Reply via email to