我需要使用的软件需要库 ftglFTGL 下载我正在尝试从源代码构建它。版本是 ftgl 2.1.3 rc5,我正在尝试在 Ubuntu 16.04 LTS 上构建它。有人能告诉我为了修复缺失引用错误我必须在 /usr/local/lib 下安装哪个缺失库吗?
这些是我得到的错误
Making all in demo
make[2]: Entering directory '/home/w/m/ftgl-2.1.3~rc5/demo'
/bin/bash ../libtool --tag=CXX --mode=link g++ -I/usr/local/include /freetype2 -I/usr/local/include/libpng16 -I/usr/local/include -g -O2 -L/usr/local/lib -lfreetype -lglut -o simple simple-simple.o ../src/libftgl.la
g++ -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include -g -O2 -o .libs/simple simple-simple.o -L/usr/local/lib /usr/local/lib/libfreetype.so -lglut ../src/.libs/libftgl.so
/usr/bin/ld: simple-simple.o: undefined reference to symbol 'glEnable'
//usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:327: recipe for target 'simple' failed
make[2]: *** [simple] Error 1
make[2]: Leaving directory '/home/w/m/ftgl-2.1.3~rc5/demo'
Makefile:338: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/w/m/ftgl-2.1.3~rc5'
Makefile:249: recipe for target 'all' failed
make: *** [all] Error 2