当前位置:编程学习 > wap >>

编译有错,求有经验人士指教!

本人装的是Qt SDK 版, Ubuntu 系统下  ,新建工程后,  或者直接用示例  都报以下错误!!

g++ -Wl,-O1 -Wl,-rpath,/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib -o hello hello.o -L/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib -lQtGui -lQtCore -lpthread  
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_push_thread_default'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `inotify_init1@GLIBC_2.9'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `pipe2@GLIBC_2.9'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtCore.so: undefined reference to `g_main_context_pop_thread_default'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `FcFreeTypeQueryFace'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `FT_Library_SetLcdFilter'
/home/hh/QtSDK/Desktop/Qt/4.8.0/gcc/lib/libQtGui.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
collect2: ld 返回 1 --------------------编程问答--------------------

sudo apt-get install fontconfig
--------------------编程问答-------------------- 正在学qt,看不懂的说 --------------------编程问答-------------------- 1  楼 所说的, 字体更新,已经是最新的了,但还是有错误啊,没有消除。继续求高人指点! --------------------编程问答--------------------   难道没人知道这个错误吗???? --------------------编程问答-------------------- 我也有这个问题呀,你解决没 --------------------编程问答-------------------- 你的ubuntu是什么版本?

如果搞不定,可以sudo apt-get install qt-sdk --------------------编程问答-------------------- 你如果不知道怎么安装就打开ubuntu左上角的应用程序->ubuntu软件中心,上面额可以搜索适合你的系统的Qt-sdk --------------------编程问答-------------------- http://www.soluoinfo.com/show.asp?id=4305这个有类似的问题,你看看能解决么? --------------------编程问答-------------------- 我用的fedora 9 安装的qt sdk 出现相同的问题。求指教
--------------------编程问答-------------------- 我用的fedora 9 安装的qt sdk 出现相同的问题。求指教 --------------------编程问答-------------------- 问题已经解决,可以私聊我 --------------------编程问答-------------------- 请问怎么解决的? --------------------编程问答-------------------- 请问楼主怎样解决?
补充:移动开发 ,  Qt
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,