QT4 linking issue in the viewer when trying to compile SFCGAL with OSG support
Created by: buildrz
The viewer can not be linked to QT4 on Ubuntu 13.04 (raring).
On a i386 system :
Linking CXX executable viewer-SFCGALd /usr/bin/ld: CMakeFiles/viewer-SFCGAL.dir/src/SFCGAL/viewer/plugins/PSQLPlugin.cpp.o: undefined reference to symbol '_ZN8QVariantD1Ev' /usr/bin/ld: note: '_ZN8QVariantD1Ev' is defined in DSO /usr/lib/i386-linux-gnu/libQtCore.so.4 so try adding it to the linker command line /usr/lib/i386-linux-gnu/libQtCore.so.4: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [viewer/viewer-SFCGALd] Error 1 make[1]: *** [viewer/CMakeFiles/viewer-SFCGAL.dir/all] Error 2 make: *** [all] Error 2
On a x86_64 system :
Linking CXX executable viewer-SFCGAL /usr/bin/ld: CMakeFiles/viewer-SFCGAL.dir/include/SFCGAL/viewer/plugins/moc_PSQLPlugin.cxx.o: undefined reference to symbol «_ZN7QObject10childEventEP11QChildEvent» /usr/bin/ld: note: «_ZN7QObject10childEventEP11QChildEvent» is defined in DSO /usr/lib/x86_64-linux-gnu/libQtCore.so.4 so try adding it to the linker command line /usr/lib/x86_64-linux-gnu/libQtCore.so.4: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [viewer/viewer-SFCGAL] Error 1 make[1]: *** [viewer/CMakeFiles/viewer-SFCGAL.dir/all] Error 2 make: *** [all] Error 2