[Paraview] Linker error with OpenMPI 1.6.2
Bruno Santos
bruno.santos at bluecape.com.pt
Tue Jan 8 10:30:12 EST 2013
Greetings,
I've managed to get ParaView's SuperBuild working/building on Windows,
which uses Open-MPI 1.6.2 by default on ParaView 3.98.0.
From ParaView's resulting "CMakeCache.txt", these were defined for the
C and CXX flags: /DOMPI_IMPORTS /DOPAL_IMPORTS /DORTE_IMPORTS
These are the binaries and libraries that were included:
MPIEXEC:FILEPATH=P:/install/bin/mpiexec.exe
MPI_CXX_COMPILER:FILEPATH=P:/install/bin/mpicxx.exe
MPI_CXX_INCLUDE_PATH:STRING=P:/install/include
MPI_CXX_LIBRARIES:STRING=P:/install/lib/libmpi_cxx.lib
MPI_C_COMPILER:FILEPATH=P:/install/bin/mpicc.exe
MPI_C_INCLUDE_PATH:STRING=P:/install/include
MPI_C_LIBRARIES:STRING=P:/install/lib/libmpi.lib;P:/install/lib/libopen-rte.lib;P:/install/lib/libopen-pal.lib;advapi32.lib;Ws2_32.lib;shlwapi.lib
MPI_LIBRARY:FILEPATH=P:/install/lib/libmpi_cxx.lib
Hope this helps!
For those who may be curious about the modifications:
http://code.google.com/p/unofficial-paraview-dev-install/wiki/Notes3980
When I've got some more time, I'll try to push some of these mods to the
SuperBuild's Gerrit.
Best regards,
Bruno
On 08-01-2013 14:43, Utkarsh Ayachit wrote:
> Ah, yea, that makes sense. On Windows shared builds with OpenMPI
> (built shared), those are indeed needed to be set.
>
> On Tue, Jan 8, 2013 at 6:05 AM, Stephan Rogge
> <Stephan.Rogge at tu-cottbus.de> wrote:
>> Utkarsh,
>>
>> Thank you for that hint. I've added openlib-pal.lib and openlib-rte.lib to
>> the linker list. No success. The linker error remains.
>>
>> But after some research I found an advice to add the definition
>> "OMPI_IMPORTS" to pre-processor:
>>
>> CMAKE_CXX_FLAGS = ... /D "OMPI_IMPORTS"
>> CMAKE_C_FLAGS = ... /D "OMPI_IMPORTS" => Maybe not required
>>
>> This solves my problem and ninja is running until the end :-).
>>
>> Is this an individual problem? I wonder if someone else had this error too.
>>
>> Best regards,
>> Stephan
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
--
http://www.bluecape.com.pt
blueCAPE Lda - CAE solutions
Rua Fonte dos Corvos, n.29
Casais da Serra
2665-305 Milharado
PORTUGAL
(+351) 219 755 345 Tel.
(+351) 219 755 345 Fax
(+351) 926 008 657 Mob.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130108/cf8c6742/attachment.htm>
More information about the ParaView
mailing list