Hi all,

I recently switched to Ubuntu 12.4 (64bit) and I am trying to compile OSG2
but I get the following error:

[100%] Built target testBackgroundLoader
Linking CXX executable ../../bin/testVTK
/usr/bin/ld: CMakeFiles/testVTK.dir/testVTK.cpp.o: undefined reference to
symbol 'vtkStructuredGridReader::GetOutput()'
/usr/bin/ld: note: 'vtkStructuredGridReader::GetOutput()' is defined in DSO
/usr/lib/libvtkIO.so.5.8 so try adding it to the linker command line
/usr/lib/libvtkIO.so.5.8: could not read symbols: Invalid operation
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [bin/testVTK] Fehler 1
make[1]: *** [Test/OSGContribVTK/CMakeFiles/testVTK.dir/all] Fehler 2
make: *** [all] Fehler 2


>From what I understand this is due to a ld patch:
https://fedoraproject.org/wiki/UnderstandingDSOLinkChange

I am not very experienced with cmake.. what I id:
mkdir build
cd build
cmake ..
make && make install

(in a script with sudo)

How would it be possible to add that linker flag -lvtkIO ?


Best regards,
Victor
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to