[Paraview] make error when building ParaView 3.6
Moreland, Kenneth
kmorel at sandia.gov
Tue Aug 18 11:30:12 EDT 2009
ParaView forces a shared libs builds when PARAVIEW_ENABLE_PYTHON is on. The reason is technical; Python cannot load ParaView's modules if they are built in static libraries. Clearly the shared libs requirement is rolling into your MPI library. I can think of three ways around the problem listed below from easiest to hardest.
1. Turn off Python. Either this is feasible or it isn't. You only really need Python if you are planning to use pvbatch or the programmable filter. Any other use of Python runs on the client and you can download the binary or compile that separately with Python and without MPI.
2. Compile MPI with shared libraries.
3. Compile static libraries for Python. I have not done this, but I understand that it is very hard. As stated above, Python uses shared libraries to dynamically load modules. You have to turn off this mechanism and decide at compile time which modules to include.
-Ken
On 8/17/09 10:07 AM, "Peter Brady" <petertbrady at gmail.com> wrote:
I had a similar problem. To get around it I had to build shared mpi
libraries (i.e. libmpich.so).
Any simpler suggestions anyone?
On Mon, Aug 17, 2009 at 10:47 AM, Karl Battams<karlbattams at gmail.com> wrote:
> Hi,
>
> I'm trying to build ParaView 3.6 on an Ubuntu machine (w/ Qt 4.5) but I'm
> hitting an error when I run 'make'. I'm doing the 'ccmake <path_to_source>'
> and keeping the default configuration except setting number of processors to
> 8 (I have a Core i7) and turning on the PARAVIEW_ENABLE_PYTHON and
> PARAVIEW_USE_MPI. I try to turn off BUILD_SHARED_LIBS, but it keeps
> switching itself back on (why??). Anyway, it configures fine with just a
> complaint about "Qt PHONON library not found", which I understand is just a
> warning, not a show-stopper (right?). But when I run 'make', it gets to
> about 4% and then dies as follows:
>
> Scanning dependencies of target MapReduceMPI
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/mapreduce.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/keyvalue.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/keymultivalue.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/irregular.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/hash.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/memory.cpp.o
> [ 4%] Building CXX object
> VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/error.cpp.o
> Linking CXX shared library ../../../../bin/libMapReduceMPI.so
> /usr/bin/ld: /usr/local/lib/libmpich.a(allreduce.o): relocation R_X86_64_32S
> against `MPIR_ThreadSingle' can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/libmpich.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [bin/libMapReduceMPI.so.pv3.7] Error 1
> make[1]: *** [VTK/Utilities/mrmpi/src/CMakeFiles/MapReduceMPI.dir/all] Error
> 2
> make: *** [all] Error 2
>
> So, anyone got any ideas?
>
> Thanks in advance!
> ~~Karl
>
>
> _______________________________________________
> 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
**** Kenneth Moreland
*** Sandia National Laboratories
***********
*** *** *** email: kmorel at sandia.gov
** *** ** phone: (505) 844-8919
*** web: http://www.cs.unm.edu/~kmorel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090818/b10dda78/attachment-0001.htm>
More information about the ParaView
mailing list