Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-08 Thread Stephan Rogge
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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-08 Thread Utkarsh Ayachit
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.ro...@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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-08 Thread Bruno Santos

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.ro...@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.

___
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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-08 Thread Bruno Santos

Hi Yumin,

Not wanting to hijack this thread, the quick answer is this: the core of 
the modifications I needed to make were mostly due to using MSVC 2008 
Express and because I didn't have a compatible FORTRAN compiler installed.


I'll reply in higher detail on another mail with the subject Unofficial 
development builds of ParaView 3.98.0 for Windows based on SuperBuild.


Best regards,
Bruno

On 08-01-2013 16:45, Yumin Yuan wrote:

Hi Bruno,

Just want to be clear on this. With Paraview's superbuild (pulling
openmpi-1.6.2 by default), do you still need to modify anything to
build? Looking at paraview's nightly dashboard
(http://open.cdash.org/index.php?project=ParaView), the superbuilds on
Windows work properly. I was also able to use paraview's superbuild
successfully with Ninja on Win7-vs9 for 3.98.0 without modifying
anything related to openmpi. Unless your building problems are due to
the MSVC express or the INSTALL_DEVELOPMENT you turned on?

ParaView_INSTALL_DEVELOPMENT:BOOL=ON
mpi_INSTALL_DEVELOPMENT:BOOL=ON
ParaView_INSTALL_FULL_DEVELOPMENT:BOOL=ON

Yumin

On Tue, Jan 8, 2013 at 10:30 AM, Bruno Santos
bruno.san...@bluecape.com.pt wrote:

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.ro...@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.


___
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.

___
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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-04 Thread Stephan Rogge
Utkarsh,

I've used the latest git master version. I'll send you the CmakeCache.txt
with a separate mail.

Best regards,
Stephan

-Ursprüngliche Nachricht-
Von: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com] 
Gesendet: Donnerstag, 3. Januar 2013 15:52
An: Stephan Rogge
Cc: ParaView
Betreff: Re: [Paraview] Linker error with OpenMPI 1.6.2

What version of ParaView is this? Can you attach your CmakeCache.txt file?

Utkarsh

On Thu, Jan 3, 2013 at 9:46 AM, Stephan Rogge stephan.ro...@tu-cottbus.de
wrote:
 Happy new year,



 I’ve tried to use a newer version of OpenMPI (1.4.4 = 1.6.2) with PV 
 from git master. Unfortunately, I was not able to build ParaView
successfully.

 A linker error comes from the vtkParallelMPI project. When I look into 
 the project file I can see that libmpi.lib and libmpi_cxx.lib are set
correctly.



 vtkMPICommunicator.cxx.obj : error LNK2001: Unknown external Symbol 
 ompi_mpi_file_null.

 vtkMPIController.cxx.obj : error LNK2001: Unknown external Symbol 
 ompi_mpi_file_null.

 …



 I have no idea, why this failure occurs. Compiling the same PV from 
 git master with OpenMPI 1.4.4 still works.



 Thanks,

 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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-04 Thread Utkarsh Ayachit
Looking at your cache, it is possible that MPI_C_LIBRARIES and
MPI_CXX_LIBRARIES cmake variables need to include some more libraries.
There's some argument to mpicc that will tell you the link link. Can
you ensure that all the libraries are setup as required. I vaguely
remember there are other ompi libraries that need to be included as
well.

Utkarsh

On Fri, Jan 4, 2013 at 4:18 AM, Stephan Rogge
stephan.ro...@tu-cottbus.de wrote:
 Utkarsh,

 I've used the latest git master version. I'll send you the CmakeCache.txt
 with a separate mail.

 Best regards,
 Stephan

 -Ursprüngliche Nachricht-
 Von: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
 Gesendet: Donnerstag, 3. Januar 2013 15:52
 An: Stephan Rogge
 Cc: ParaView
 Betreff: Re: [Paraview] Linker error with OpenMPI 1.6.2

 What version of ParaView is this? Can you attach your CmakeCache.txt file?

 Utkarsh

 On Thu, Jan 3, 2013 at 9:46 AM, Stephan Rogge stephan.ro...@tu-cottbus.de
 wrote:
 Happy new year,



 I’ve tried to use a newer version of OpenMPI (1.4.4 = 1.6.2) with PV
 from git master. Unfortunately, I was not able to build ParaView
 successfully.

 A linker error comes from the vtkParallelMPI project. When I look into
 the project file I can see that libmpi.lib and libmpi_cxx.lib are set
 correctly.



 vtkMPICommunicator.cxx.obj : error LNK2001: Unknown external Symbol
 ompi_mpi_file_null.

 vtkMPIController.cxx.obj : error LNK2001: Unknown external Symbol
 ompi_mpi_file_null.

 …



 I have no idea, why this failure occurs. Compiling the same PV from
 git master with OpenMPI 1.4.4 still works.



 Thanks,

 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


Re: [Paraview] Linker error with OpenMPI 1.6.2

2013-01-03 Thread Utkarsh Ayachit
What version of ParaView is this? Can you attach your CmakeCache.txt file?

Utkarsh

On Thu, Jan 3, 2013 at 9:46 AM, Stephan Rogge
stephan.ro...@tu-cottbus.de wrote:
 Happy new year,



 I’ve tried to use a newer version of OpenMPI (1.4.4 = 1.6.2) with PV from
 git master. Unfortunately, I was not able to build ParaView successfully.

 A linker error comes from the vtkParallelMPI project. When I look into the
 project file I can see that libmpi.lib and libmpi_cxx.lib are set correctly.



 vtkMPICommunicator.cxx.obj : error LNK2001: Unknown external Symbol
 ompi_mpi_file_null.

 vtkMPIController.cxx.obj : error LNK2001: Unknown external Symbol
 ompi_mpi_file_null.

 …



 I have no idea, why this failure occurs. Compiling the same PV from git
 master with OpenMPI 1.4.4 still works.



 Thanks,

 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