[vtkusers] VTK and Trilinos
Eric E. Monson
emonson at cs.duke.edu
Thu Jun 21 13:43:48 EDT 2012
Hey Truman,
I'm sorry that this won't answer your question, but I wanted to check to make sure you are aware of Sandia's Titan project which incorporates both VTK and Trilinos, and includes code linking to both:
titan.sandia.gov
There's also a separate mailing list for Titan if you're interested in accessing those folks more directly (although some also monitor the VTK mailing list):
http://public.kitware.com/cgi-bin/mailman/listinfo/titan-users
Good luck,
-Eric
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
Eric E Monson
Duke Visualization Technology Group
On Jun 21, 2012, at 1:00 PM, Truman Ellis wrote:
> I am using a CMake build system to build my code with Trilinos, and everything works just fine. I started trying to additionally link with VTK, which also assumes a CMake build system. I have test codes which only link to VTK, and my current code only links to Trilinos. But when I try to make my code link to both VTK and Trilinos, they don't seem to play well together. For some reason, when I link to both VTK and Trilinos, I get errors of the type:
> ../../libCamellia.so: undefined reference to `Epetra_MpiComm::Epetra_MpiComm(ompi_communicator_t*)'
>
> (We have a library called Camellia and several drivers such as NavierStokes below)
>
> The verbose makefile output that generated this error is:
>
> Linking CXX executable NavierStokes
> cd /workspace/truman/Camellia/bin/drivers/NavierStokes && /usr/bin/cmake -E cmake_link_script CMakeFiles/NavierStokes.dir/link.txt --verbose=1
> /usr/bin/mpicxx -Wno-deprecated -g CMakeFiles/NavierStokes.dir/NSDriver.cpp.o -o NavierStokes -rdynamic -L/usr/lib/vtk-5.2 -L/workspace/truman/trilinos_builds/mpi_release/lib -L/workspace/jchan/MUMPS_4.9.2/lib -L/workspace/jchan/lib/scalapack -lvtkHybrid ../../libCamellia.so /workspace/truman/trilinos_builds/mpi_release/lib/libintrepid.so /workspace/truman/trilinos_builds/mpi_release/lib/libml.so /workspace/truman/trilinos_builds/mpi_release/lib/libifpack.so /workspace/truman/trilinos_builds/mpi_release/lib/libpamgen_extras.so /workspace/truman/trilinos_builds/mpi_release/lib/libpamgen.so /workspace/truman/trilinos_builds/mpi_release/lib/libamesos.so /workspace/truman/trilinos_builds/mpi_release/lib/libgaleri.so /workspace/truman/trilinos_builds/mpi_release/lib/libaztecoo.so /workspace/truman/trilinos_builds/mpi_release/lib/libisorropia.so /workspace/truman/trilinos_builds/mpi_release/lib/libepetraext.so /workspace/truman/trilinos_builds/mpi_release/lib/libtpetraext.so /workspace/truman/trilinos_builds/mpi_release/lib/libtpetrainout.so /workspace/truman/trilinos_builds/mpi_release/lib/libtpetra.so /workspace/truman/trilinos_builds/mpi_release/lib/libtriutils.so /workspace/truman/trilinos_builds/mpi_release/lib/libshards.so /workspace/truman/trilinos_builds/mpi_release/lib/libzoltan.so /workspace/truman/trilinos_builds/mpi_release/lib/libepetra.so /workspace/truman/trilinos_builds/mpi_release/lib/libkokkoslinalg.so /workspace/truman/trilinos_builds/mpi_release/lib/libkokkosnodeapi.so /workspace/truman/trilinos_builds/mpi_release/lib/libkokkos.so /workspace/truman/trilinos_builds/mpi_release/lib/libsacado.so /workspace/truman/trilinos_builds/mpi_release/lib/libtpi.so /workspace/truman/trilinos_builds/mpi_release/lib/libteuchos.so -ldmumps -lmumps_common -lpord -llapack -lblas -lpthread -lscalapack -lvtkHybrid -lvtkParallel -lvtkRendering -lvtkGraphics -lvtkverdict -lvtkImaging -lvtkftgl -lfreetype -lgl2ps -lGL -lXt -lSM -lICE -lX11 -lXext -lXss -lXft -lvtkIO -lmysqlclient -lvtkFiltering -lvtkCommon -lpthread -lm -lvtkDICOMParser -lvtkmetaio -lvtksqlite -lpng -lz -ljpeg -ltiff -lexpat -lvtksys -ldl -lavcodec -lavformat -lavutil -lswscale -lvtkexoIIc -lvtkNetCDF /usr/lib/openmpi/lib/libmpi_cxx.so /usr/lib/openmpi/lib/libmpi.so /usr/lib/openmpi/lib/libopen-rte.so /usr/lib/openmpi/lib/libopen-pal.so -ldl -lnsl -lutil -lm -ldl -lnsl -lutil -lm /workspace/jchan/MUMPS_4.9.2/lib/libdmumps.a /workspace/jchan/MUMPS_4.9.2/lib/libpord.a /workspace/jchan/MUMPS_4.9.2/lib/libmumps_common.a -lpthread -llapack -lblas -Wl,-rpath,/usr/lib/vtk-5.2:/workspace/truman/trilinos_builds/mpi_release/lib:/workspace/jchan/MUMPS_4.9.2/lib:/workspace/jchan/lib/scalapack:/workspace/truman/Camellia/bin:/usr/lib/openmpi/lib
> ../../libCamellia.so: undefined reference to `Epetra_MpiComm::Epetra_MpiComm(ompi_communicator_t*)'
> collect2: ld returned 1 exit status
>
> I've messed around with this for two days now, and I can't seem to figure out what is going wrong.
>
> Any ideas?
> --
> Truman Ellis
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120621/194ca75c/attachment.htm>
More information about the vtkusers
mailing list