在
Linux上
安装了QT
SDK和QT Creator后,创建一个QT GUI项目,直接
编译,就报错了。系统是国产操作系统——凝思磐石rocky4.2,好像和redhat是一样的内核。
错误如下:
window.open('http://www.qtcn.org/bbs/attachment/Mon_1308/60_145649_84fecc16bef8562.jpg?458');" style="max-width:700px;max-height:700px;" onload="if(is_ie6&&this.offsetWidth>700)this.width=700;" >
图片可能看不太清楚,我把打印的信息贴出来吧!
Running build steps for project QtWebkit3...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/root/untitled/QtWebkit3-build-desktop'
/opt/qtsdk-2010.05/qt/bin/uic ../QtWebkit3/mainwindow.ui -o ui_mainwindow.h
g++ -c -m64 -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/opt/qtsdk-2010.05/qt/mkspecs/linux-g++-64 -I../QtWebkit3 -I/opt/qtsdk-2010.05/qt/include/QtCore -I/opt/qtsdk-2010.05/qt/include/QtGui -I/opt/qtsdk-2010.05/qt/include -I. -I. -I../QtWebkit3 -I. -o mainwindow.o ../QtWebkit3/mainwindow.cpp
g++ -m64 -Wl,-rpath,/opt/qtsdk-2010.05/qt/lib -o QtWebkit3 main.o mainwindow.o moc_mainwindow.o -L/opt/qtsdk-2010.05/qt/lib -lQtGui -L/opt/qtsdk-2010.05/qt/lib -L/usr/X11R6/lib64 -lQtCore -lpthread
/opt/qtsdk-2010.05/qt/lib/libQtGui.so: undefined reference to `FT_GlyphSlot_Embolden'
/opt/qtsdk-2010.05/qt/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
/opt/qtsdk-2010.05/qt/lib/libQtGui.so: undefined reference to `FT_Library_SetLcdFilter'
collect2: ld 返回 1
make: *** [QtWebkit3] 错误 1
make: Leaving directory `/root/untitled/QtWebkit3-build-desktop'
The process "/usr/bin/make" exited with code %2.
Error while building project QtWebkit3 (target: Desktop)
When executing build step 'Make'
希望路过的各位大哥帮忙看看,指点一二,小弟菜鸟一个,感激不尽!!!