红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

ubuntu make 时出现:/usr/bin/ld:cannot find -ltgOpenGLSupport

发布时间:2016-07-18 10:35:06来源:红联作者:barry_123
我在安装NTRTsim后编译例子中的文件时出现了这样的错误:

====================================================================================

/usr/bin/ld: 找不到 -ltgOpenGLSupport
collect2: error: ld returned 1 exit status
dev/btietz/hardwareSineWaves/CMakeFiles/tetraSpineLearningSine.dir/build.make:97: recipe for target 'dev/btietz/hardwareSineWaves/libtetraSpineLearningSine.so' failed
make[2]: *** [dev/btietz/hardwareSineWaves/libtetraSpineLearningSine.so] Error 1
CMakeFiles/Makefile2:2706: recipe for target 'dev/btietz/hardwareSineWaves/CMakeFiles/tetraSpineLearningSine.dir/all' failed
make[1]: *** [dev/btietz/hardwareSineWaves/CMakeFiles/tetraSpineLearningSine.dir/all] Error 2
make[1]: *** 正在等待未完成的任务....
/usr/bin/ld: 找不到 -ltgOpenGLSupport
collect2: error: ld returned 1 exit status
learning/Configuration/CMakeFiles/Configuration.dir/build.make:97: recipe for target 'learning/Configuration/libConfiguration.so' failed
make[2]: *** [learning/Configuration/libConfiguration.so] Error 1
CMakeFiles/Makefile2:727: recipe for target 'learning/Configuration/CMakeFiles/Configuration.dir/all' failed
make[1]: *** [learning/Configuration/CMakeFiles/Configuration.dir/all] Error 2
/usr/bin/ld: 找不到 -ltgOpenGLSupport
collect2: error: ld returned 1 exit status
helpers/CMakeFiles/FileHelpers.dir/build.make:97: recipe for target 'helpers/libFileHelpers.so' failed
make[2]: *** [helpers/libFileHelpers.so] Error 1
CMakeFiles/Makefile2:142: recipe for target 'helpers/CMakeFiles/FileHelpers.dir/all' failed
make[1]: *** [helpers/CMakeFiles/FileHelpers.dir/all] Error 2
/usr/bin/ld: 找不到 -ltgOpenGLSupport
collect2: error: ld returned 1 exit status
core/terrain/CMakeFiles/terrain.dir/build.make:227: recipe for target 'core/terrain/libterrain.so' failed
make[2]: *** [core/terrain/libterrain.so] Error 1
CMakeFiles/Makefile2:672: recipe for target 'core/terrain/CMakeFiles/terrain.dir/all' failed
make[1]: *** [core/terrain/CMakeFiles/terrain.dir/all] Error 2
==================================================================================

我查到的资料说是问题有三种:

1.没有对应的库文件

2.库文件版本不对

3.没有与库文件建立链接

我的问题:

1.我以为是不是安装OpenGL,但是安装后问题依旧

2.也许是没有对应的库文件,那我应该安装的库文件应该叫什么名字?

我试过安装libltgOpenGL, libltgOpenGLSuporrt,libtgOPenGL,libtgOpenGLSupport,或者 libtgOpenGL-dev d都无法定位软件包

3.我该如何找到我缺失的库文件,或者正确的进行链接?

如果您有什么想法和建议,非常感谢您给我留言!
文章评论

共有 0 条评论