我一直在关注opengl的本(http://opengl.datenwolf.net/gltut/html/index.html)教程,但无法构建第一个示例。该指南建议使用premake作为可执行文件,但是我必须将其安装在ubuntu机器上才能正常工作。我到处搜索并安装了几个ogl库,例如freeglut和glew。但是我不明白错误是什么。这是终端机所说的:
hammad@hamlet:~/graphicsprogramming/gltut-master/Tut 01 Hello Triangle$ make config=release
Linking Tut 01 Main
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglutil
/usr/bin/x86_64-linux-gnu-ld: cannot find -lfreeglut
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglmesh
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglimg
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglload
collect2: error: ld returned 1 exit status
Makefile:85: recipe for target 'Tut 01 Main' failed
make: *** [Tut 01 Main] Error 1
hammad@hamlet:~/graphicsprogramming/gltut-master/Tut 01 Hello Triangle$ make
Linking Tut 01 Main
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglutilD
/usr/bin/x86_64-linux-gnu-ld: cannot find -lfreeglutD
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglmeshD
collect2: error: ld returned 1 exit status
Makefile:85: recipe for target 'Tut 01 MainD' failed
make: *** [Tut 01 MainD] Error 1
hammad@hamlet:~/graphicsprogramming/gltut-master/Tut 01 Hello Triangle$ make config=debug
Linking Tut 01 Main
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglutilD
/usr/bin/x86_64-linux-gnu-ld: cannot find -lfreeglutD
/usr/bin/x86_64-linux-gnu-ld: cannot find -lglmeshD
collect2: error: ld returned 1 exit status
Makefile:85: recipe for target 'Tut 01 MainD' failed
make: *** [Tut 01 MainD] Error 1