[vtkusers] Exodus linking problem

John Vines (CISD/HPCD) jvines at arl.army.mil
Wed Aug 20 09:03:54 EDT 2008


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



More information about the vtkusers mailing list