标题:请教一个编译错误信息,平台ubuntu9.04+QtCreator1.1
作者:wu_java
日期:2009-04-26 04:27
内容:
Running build steps for project galilMotion...
Starting: /home/sheng/qtsdk-2009.02/qt/bin/qmake /home/sheng/qtsdk-2009.02/Workspace/galilMotion/galilMotion.pro -spec linux-g++ -r CONFIG+=debug
Exited with code 0.
Starting: /usr/bin/make -w
make:进入目录'/home/sheng/qtsdk-2009.02/Workspace/galilMotion'
g++ -Wl,-rpath,/home/sheng/qtsdk-2009.02/qt/lib -o galilMotion main.o widget.o moc_widget.o -L/home/sheng/qtsdk-2009.02/qt/lib -lQtGui -L/home/sheng/qtsdk-2009.02/qt/lib -L/usr/X11R6/lib -pthread -lfreetype -lgobject-2.0 -lSM -lICE -pthread -pthread -lXrender -lfontconfig -lXext -lX11 -lQtCore -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread
/usr/bin/ld: cannot find -lfreetype
collect2: ld 返回 1
make: *** 错误 1
make:离开目录“/home/sheng/qtsdk-2009.02/Workspace/galilMotion”
Exited with code 2.
Error while building project galilMotion
When executing build step 'Make'
请问各位这个编译错误怎么解决?先谢谢了
#1 [wu_java 04-26 04:28]
/usr/bin/ld: cannot find -lfreetype
这是个什么错误?
#2 [hercules 04-26 17:36]
引用第1楼wu_java于2009-04-26 04:28发表的:
/usr/bin/ld: cannot find -lfreetype
这是个什么错误?
sudo apt-get install libfreetype6