/usr/bin/ld: 找不到 -lOpenGLSupport
链接时出现上述错误。
我有googled , 至 no avail .
我在哪里可以获得这个库(从源代码包/构建)?
(如果这个问题在家里/在 superuser.com 上更合适,mods 可以随意移动它)
谢谢!
操作系统是 Ubuntu Karmic。
最佳答案
-lOpenGLSupport
似乎来自 bulletphysics
库。
更多详情:
我是从源代码构建的,但是没有指定它应该构建共享库。这样做似乎解决了问题。
供将来引用:
使用这些命令构建bulletphysics
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebugInfo . -G "Unix Makefiles"
make
(回答自己的问题)
关于c++ - cmake/C++ : which package contains `-lOpenGLSupport` ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5549515/