zhangzl892 发表于 2013-5-25 17:29:41

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

照着《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: *** Error 1

飞凌-unix 发表于 2013-5-27 08:49:00

楼主你的报错信息看不出哦你这是在做什么啊,你能先说下你是在做什么系统下的操作吗?

zhangzl892 发表于 2013-5-27 10:10:10

照着开发手册,做一个l界面,显示Hello world。

飞凌-unix 发表于 2013-5-27 14:13:08

楼主你的编译信息应该和你的程序代码没有关系,应该是的环境没有搭建好,你看看你的环境搭建步骤有没有问题

zhangzl892 发表于 2013-5-27 19:13:22

是照着《OK6410 QT移植百科全书.pdf》上做的,请明示该怎么配置。

zhangzl892 发表于 2013-5-27 21:26:27

QT 的交叉编译器用哪个版本的。

飞凌-unix 发表于 2013-5-28 09:06:40

你可以参考qt4.7的说明文档操作看看,OK6410 QT移植百科全书里面就有关于qt4.7的编译方法
页: [1]
查看完整版本: 开发板第一个Linux程序的编写