[CMake] RTTI enabled or disabled ?

Sajjadul Islam sajjadul.islam.bd at gmail.com
Wed Oct 16 12:39:12 EDT 2013


Hi forum,

I compiled OpenSceneGraph using CMake with debug mode. and I installed
another plugin osgCompute with the same configuration. But i m having the
following linking error :

///////////////////////////////////////////////////////////////////////////////////////

Linking CXX executable ../../../bin/osgOpenCLEndiannessDemod
cd
/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute/examples/osgOpenCLEndiannessDemo/src
&& /usr/bin/cmake -E cmake_link_script
CMakeFiles/example_osgOpenCLEndiannessDemo.dir/link.txt --verbose=1
/usr/bin/c++   -g
 CMakeFiles/example_osgOpenCLEndiannessDemo.dir/main.cpp.o  -o
../../../bin/osgOpenCLEndiannessDemod -rdynamic
../../../lib/libosgComputed.so ../../../lib/libosgOpenCLd.so
/usr/local/lib/libOpenThreadsd.so /usr/local/lib/libosgd.so
/usr/local/lib/libosgUtild.so -lOpenCL ../../../lib/libosgComputed.so
/usr/local/lib/libOpenThreadsd.so /usr/local/lib/libosgd.so
/usr/local/lib/libosgUtild.so /usr/local/lib/libosgDBd.so -lGLU -lGL -lSM
-lICE -lX11 -lXext
-Wl,-rpath,/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute/lib:/usr/local/lib:
../../../lib/libosgOpenCLd.so: undefined reference to `typeinfo for
osgViewer::GraphicsWindowX11'
collect2: ld returned 1 exit status
make[2]: *** [bin/osgOpenCLEndiannessDemod] Error 1
make[2]: Leaving directory
`/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute'
make[1]: ***
[examples/osgOpenCLEndiannessDemo/src/CMakeFiles/example_osgOpenCLEndiannessDemo.dir/all]
Error 2
make[1]: Leaving directory
`/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute'
make: *** [all] Error 2



//////////////////////////////////////////////////////////////////////////////////////////


The issue is already addressed in the OSG forum. And they suspected that
some parts of the code had been compiled with RTTI disabled.

Could you guys help me to find out how to find it out from within CMake if
it disabled or enabled and enable RTTI all through ?



Thanks
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131016/ad176b88/attachment.htm>


More information about the CMake mailing list