Re: [Paraview] make error when building ParaView 3.6

2009-08-18 Thread Karl Battams
Thanks!  I tried that but it didn't make the error go away.

However... I did manage to get past the error eventually.  I (re)configured
mpich with CFLAGS=-fPIC and reinstalled it.  Paraview was then able to
compile.  What's confusing is that I did this once before and it didn't fix
it, but now it does.  So I must've done something slightly different this
time around, but I have no idea what.  Weird...

So, on to the next bug (I'm hijacking my own thread here)...  When I try to
run the paraview app, I get the following message:
paraview: symbol lookup error:
/usr/local/Trolltech/Qt-4.5.0/lib/libQtWebKit.so.4: undefined symbol:
_ZN24QXmlStreamEntityResolver13resolveEntityERK7QStringS2_

Any ideas?  I ran ldd on my paraview binary and didn't see any obvious
file/path conflicts.

Thanks for the help.
~~Karl

On Mon, Aug 17, 2009 at 12:07 PM, Peter Brady petertbr...@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 Battamskarlbatt...@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


Re: [Paraview] make error when building ParaView 3.6

2009-08-18 Thread Moreland, Kenneth
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 petertbr...@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 Battamskarlbatt...@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: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
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


[Paraview] make error when building ParaView 3.6

2009-08-17 Thread Karl Battams
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


Re: [Paraview] make error when building ParaView 3.6

2009-08-17 Thread Peter Brady
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 Battamskarlbatt...@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