打印

开发板第一个Linux程序的编写

[复制链接]
169|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
照着《OK6410 QT移植百科全书.pdf》写的第一个Helloword程序。编译时出现下列错误,是什么原因:

arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/forlinx/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include -I. -I. -o main.o main.cpp

arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/forlinx/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include -I. -I. -o dialog.o dialog.cpp

arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/forlinx/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtCore -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtNetwork -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include/QtGui -I/forlinx/builddir/sdk/qtopiacore/target/include -I. -I. -o moc_dialog.o moc_dialog.cpp

moc_dialog.cpp:14:2: error: #error "This file was generated using the moc from 4.5.2. It"

moc_dialog.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt."

moc_dialog.cpp:16:2: error: #error "(The moc has changed too much.)"

make: *** [moc_dialog.o] Error 1

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

432

主题

439

帖子

0

粉丝