[CMake] CMAKE -- compiling questions
Lucian Goron
luciangoron at gmail.com
Wed May 26 07:03:11 EDT 2010
Hello Michael, I followed the steps suggested by you. Here is the result.
goron at schwarz:~/work/ransac/build$ rm -rf
goron at schwarz:~/work/ransac/build$ cmake -DCMAKE_BUILD_TYPE=debug ../
-- Configuring done
-- Generating done
-- Build files have been written to: /home/goron/work/ransac/build
goron at schwarz:~/work/ransac/build$ make VERBOSE=1
/usr/bin/cmake -H/home/goron/work/ransac -B/home/goron/work/ransac/build
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start
/home/goron/work/ransac/build/CMakeFiles
/home/goron/work/ransac/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/goron/work/ransac/build'
make -f CMakeFiles/coloredElevationMap.dir/build.make
CMakeFiles/coloredElevationMap.dir/depend
make[2]: Entering directory `/home/goron/work/ransac/build'
cd /home/goron/work/ransac/build && /usr/bin/cmake -E cmake_depends "Unix
Makefiles" /home/goron/work/ransac /home/goron/work/ransac
/home/goron/work/ransac/build /home/goron/work/ransac/build
/home/goron/work/ransac/build/CMakeFiles/coloredElevationMap.dir/DependInfo.cmake
--color=
make[2]: Leaving directory `/home/goron/work/ransac/build'
make -f CMakeFiles/coloredElevationMap.dir/build.make
CMakeFiles/coloredElevationMap.dir/build
make[2]: Entering directory `/home/goron/work/ransac/build'
Linking CXX executable coloredElevationMap
/usr/bin/cmake -E cmake_link_script
CMakeFiles/coloredElevationMap.dir/link.txt --verbose=1
/usr/bin/c++ -Wall -Wno-deprecated
CMakeFiles/coloredElevationMap.dir/coloredElevationMap.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/StringTokenizer.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonANNRoutines.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonVTKRoutines.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonIORoutines.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/Common3DGeomRoutines.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonTerminalRoutines.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/ANN-VTK.cc.o
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/VTKShapes.cc.o -o
coloredElevationMap -rdynamic -L/home/goron/VTK/VTK-build/bin
-L../../common/levmar -L../../common/ann/lib -lvtkCommon -lvtkRendering
-lvtkWidgets -lvtkHybrid -lvtkGraphics -lANN -llapack -llevmar -lvtkParallel
-lvtkRendering -lvtkGraphics -lvtkverdict -lvtkImaging -lvtkftgl
-lvtkfreetype -lQtGui -lpng -lSM -lICE -lXrender -lfreetype -lfontconfig
-lXext -lX11 -lm -lQtSql -lQtCore -lz -lrt -ldl -lXt -lSM -lICE -lXrender
-lfreetype -lfontconfig -lXext -lX11 -lm -lQtSql -lQtCore -lz -lrt -ldl -lXt
-lvtkIO -lvtkFiltering -lvtkDICOMParser -lvtkmetaio -lvtksqlite -lvtkpng
-lvtktiff -lvtkzlib -lvtkjpeg -lvtkexpat -lVPIC -lCosmo -lvtkCommon -lm
-lpthread -lvtksys -ldl -lvtkexoIIc -lvtkNetCDF -lGL
-Wl,-rpath,/home/goron/VTK/VTK-build/bin:../../common/levmar:../../common/ann/lib
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonVTKRoutines.cc.o:
In function `Create2xRenderWindowAndInteractorMovie(vtkRenderer*,
vtkRenderer*, char const*, char const*, int, int, int)':
CommonVTKRoutines.cc:(.text+0xa720): undefined reference to
`vtkFFMPEGWriter::New()'
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonVTKRoutines.cc.o:
In function `Create4xRenderWindowAndInteractorMovie(vtkRenderer*,
vtkRenderer*, vtkRenderer*, vtkRenderer*, char const*, char const*, int,
int, int)':
CommonVTKRoutines.cc:(.text+0xad84): undefined reference to
`vtkFFMPEGWriter::New()'
CMakeFiles/coloredElevationMap.dir/home/goron/work/common/CommonVTKRoutines.cc.o:
In function `CreateRenderWindowAndInteractorMovie(vtkRenderer*, char const*,
char const*, int, int, int)':
CommonVTKRoutines.cc:(.text+0xb6e3): undefined reference to
`vtkFFMPEGWriter::New()'
collect2: ld returned 1 exit status
make[2]: *** [coloredElevationMap] Error 1
make[2]: Leaving directory `/home/goron/work/ransac/build'
make[1]: *** [CMakeFiles/coloredElevationMap.dir/all] Error 2
make[1]: Leaving directory `/home/goron/work/ransac/build'
make: *** [all] Error 2
goron at schwarz:~/work/ransac/build$
But the issue seems to persist.
I am leaning towards a straight linking problem as Hugh suggested in a
previous post.
Thank you for your advice !
Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100526/252fdbf3/attachment-0001.htm>
More information about the CMake
mailing list