[vtkusers] Exodus linking problem
Amy Squillacote
ahs at cfdrc.com
Wed Aug 20 09:10:12 EDT 2008
Hi John,
It looks like you are not linking against the vtkHybrid library, where
the vtkExodusReader is.
- Amy
John Vines (CISD/HPCD) wrote:
> I am trying to create a simple Exodus stub reader for a user and am
> having some problems linking to exodus libraries. I'm using cmake to
> build the project and am able to compile but cannot link. Thanks in
> advance.
>
> John
>
> Here is the output from "make":
> /home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/cmake-2.4.8/bin/cmake
> -H/home/jvines/Devel/CodeDevel08/VTK/RKraft
> -B/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build --check-build-system
> CMakeFiles/Makefile.cmake 0
> /home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/cmake-2.4.8/bin/cmake
> -E cmake_progress_start
> /home/jvines/Devel/CodeDevel08/VTK/RKraft/Build/CMakeFiles 1
> make -f CMakeFiles/Makefile2 all
> make[1]: Entering directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> make -f CMakeFiles/ExodusReader.dir/build.make
> CMakeFiles/ExodusReader.dir/depend
> make[2]: Entering directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> make[2]: Nothing to be done for `CMakeFiles/ExodusReader.dir/depend'.
> make[2]: Leaving directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> make -f CMakeFiles/ExodusReader.dir/build.make
> CMakeFiles/ExodusReader.dir/build
> make[2]: Entering directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> /home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/cmake-2.4.8/bin/cmake
> -E cmake_progress_report
> /home/jvines/Devel/CodeDevel08/VTK/RKraft/Build/CMakeFiles 1
> [100%] Building CXX object CMakeFiles/ExodusReader.dir/VtkExodusReader.o
> /usr/bin/g++4 -Wno-deprecated
> -I/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/vtk-5.0.4/bin/../include/vtk-5.0
> -I/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/openmpi-1.2.6/include
> -I/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/openmpi-1.2.6/include/openmpi
> -I/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/tcltk-8.4.15/include
> -I/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/python-2.5.1/include/python2.5
> -o CMakeFiles/ExodusReader.dir/VtkExodusReader.o -c
> /home/jvines/Devel/CodeDevel08/VTK/RKraft/VtkExodusReader.cxx
> Linking CXX executable ExodusReader
> /home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/cmake-2.4.8/bin/cmake
> -P CMakeFiles/ExodusReader.dir/cmake_clean_target.cmake
> /usr/bin/g++4 -Wno-deprecated -fPIC
> -L/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/vtk-5.0.4/lib
> -lvtkexoIIc "CMakeFiles/ExodusReader.dir/VtkExodusReader.o" -o
> ExodusReader -rdynamic
> -L/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/vtk-5.0.4/bin/../lib
> -L/usr/X11R6/lib64 -lvtkRendering -lvtkGraphics -lvtkImaging -lvtkIO
> -lvtkFiltering -lvtkCommon -lvtksys -lpthread -ldl -lm
> -lvtkDICOMParser -lvtkpng -lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat
> -lvtkftgl -lvtkfreetype -lGL -lXt -lSM -lICE -lSM -lICE -lX11 -lXext
> -lX11 -lXext
> -Wl,-rpath,/home/jvines/Devel/CseDevel08/build/x86_64-RHEL/CSE/Release/vtk-5.0.4/bin/../lib:/usr/X11R6/lib64
>
> CMakeFiles/ExodusReader.dir/VtkExodusReader.o(.text+0x76): In function
> `main':
> : undefined reference to `vtkExodusReader::New()'
> collect2: ld returned 1 exit status
> make[2]: *** [ExodusReader] Error 1
> make[2]: Leaving directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> make[1]: *** [CMakeFiles/ExodusReader.dir/all] Error 2
> make[1]: Leaving directory
> `/home/jvines/Devel/CodeDevel08/VTK/RKraft/Build'
> make: *** [all] Error 2
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list