[osg-users] [forum] CMake can't find libraries

Rodrigo Dias rodrigo1406 at gmail.com
Tue Jan 8 03:41:28 PST 2019


Hi,

Well, I formatted my computer and installed a new Debian version (9.6). Installed a fresh copy of OSG, but still got the same error. Probably there's some variable missing, but since nobody tells us which variable it is, I said "f*** cmake" and compiled from command line. I've tried adding an OSG_ROOT variable, pointing to /usr/local, /usr/local/lib and /usr/local/lib64. None worked.

This command line works:


Code:
g++ main.cpp -lOpenThreads -losg -losgDB -losgUtil -losgViewer -o main



Even this works:


Code:
g++ main.cpp -losg -losgDB -losgViewer -o main



Thank you!

Cheers,
Rodrigo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75424#75424







More information about the osg-users mailing list