• 4960阅读
  • 0回复

QT4 hello Word 程序编译报错 [复制链接]

上一主题 下一主题
离线shampool
 
只看楼主 倒序阅读 楼主  发表于: 2013-01-11
系统是 ubuntu 12.04
安装完毕 写了个 小程序测试了一下
make 的时候有如下错误



g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o hello.o hello.cpp
g++ -Wl,-O1 -o hello hello.o    -L/usr/lib/i386-linux-gnu -lQtGui -lQtCore -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libQtGui.so when searching for -lQtGui
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libQtCore.so when searching for -lQtCore
/usr/bin/ld: cannot find -lQtCore
collect2: ld 返回 1
make: *** [hello] 错误 1
shampool@Mozart:
快速回复
限100 字节
 
上一个 下一个