Re: [vmtk-users] TetGenWrapper build error in Linux Redhat 5
Brought to you by:
davidsteinman,
lucantiga
From: Yong He <nc...@ya...> - 2009-10-18 15:13:32
|
Dear Luca, I modified the CMakeLists.txt per your guide. I do not have the TetGen error any more, but I got another one as copied here. Could you help me out on it? Thank you very much. Yong [ 83%] Building CXX object vtkVmtk/Utilities/vtkITK/CMakeFiles/vtkvmtkITK.dir/vtkITKImageWriter.o Linking CXX shared library ../../../bin/libvtkvmtkITK.so /usr/bin/ld: /usr/local/lib/InsightToolkit/libITKIO.a(itkArchetypeSeriesFileNames.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/InsightToolkit/libITKIO.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [bin/libvtkvmtkITK.so] Error 1 make[1]: *** [vtkVmtk/Utilities/vtkITK/CMakeFiles/vtkvmtkITK.dir/all] Error 2 make: *** [all] Error 2 --- On Thu, 10/15/09, Luca Antiga <luc...@gm...> wrote: From: Luca Antiga <luc...@gm...> Subject: Re: [vmtk-users] TetGenWrapper build error in Linux Redhat 5 To: "Yong He" <nc...@ya...> Date: Thursday, October 15, 2009, 3:41 AM Dear Yong, I can't reproduce your problem, it looks like the Tetgen directory is not visited in the right order, to that TETGEN_SOURCE_DIR variable hasn't been defined yet by the time Misc is compiled.Anyway, in vmtk/vtkVmtk/Misc/CMakeLists.txt try replacing the lines INCLUDE_DIRECTORIES(${TETGEN_SOURCE_DIR}) LINK_DIRECTORIES(${TETGEN_LIB_DIR}) with INCLUDE_DIRECTORIES(${VMTK_SOURCE_DIR}/vtkVmtk/Utilities/tetgen1.4.2) LINK_DIRECTORIES(${VMTK_BINARY_DIR}/bin) Let me know how it goes! Luca |