- 积分
- 47
贡献78
飞刀2 FD
注册时间2012-3-3
在线时间9 小时
扫一扫,手机访问本帖
|
照着《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
|
|