<div dir="ltr">Hi forum,<div><br></div><div>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 :</div><div>
<br></div><div>///////////////////////////////////////////////////////////////////////////////////////</div><div><br></div><div><div>Linking CXX executable ../../../bin/osgOpenCLEndiannessDemod</div><div>cd /home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute/examples/osgOpenCLEndiannessDemo/src &amp;&amp; /usr/bin/cmake -E cmake_link_script CMakeFiles/example_osgOpenCLEndiannessDemo.dir/link.txt --verbose=1</div>
<div>/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: </div>
<div>../../../lib/libosgOpenCLd.so: undefined reference to `typeinfo for osgViewer::GraphicsWindowX11&#39;</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [bin/osgOpenCLEndiannessDemod] Error 1</div><div>
make[2]: Leaving directory `/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute&#39;</div><div>make[1]: *** [examples/osgOpenCLEndiannessDemo/src/CMakeFiles/example_osgOpenCLEndiannessDemo.dir/all] Error 2</div><div>
make[1]: Leaving directory `/home/sajjad/Downloads/OpenSceneGraph/osgCompute/osgCompute&#39;</div><div>make: *** [all] Error 2</div></div><div><br></div><div><br></div><div><br></div><div>//////////////////////////////////////////////////////////////////////////////////////////</div>
<div><br></div><div><br></div><div>The issue is already addressed in the OSG forum. And they suspected that some parts of the code had been compiled with RTTI disabled. </div><div><br></div><div>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 ?</div>
<div><br></div><div><br></div><div><br></div><div>Thanks</div><div>Sajjad </div></div>