首页| 论坛| 消息

标题:交叉编译出错,求高手指点?
作者:gildon
日期:2009-07-15 08:49
内容:

环境变量$QTDIR=/opt/arm/arm-qtopia/qt-2.3.7;$TMAKEPATH=/opt/arm/arm-qtopia/tmake/lib/qws/linux-arm-g++
执行make使命后出错,提示如下:
# make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/arm/arm-qtopia/qt-2.3.7/include -o main.o main.cpp
In file included from /opt/arm/arm-qtopia/qt-2.3.7/include/qwindowdefs.h:44,
from /opt/arm/arm-qtopia/qt-2.3.7/include/qwidget.h:42,
from /opt/arm/arm-qtopia/qt-2.3.7/include/qapplication.h:42,
from main.cpp:1:
/opt/arm/arm-qtopia/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::cell()':
/opt/arm/arm-qtopia/qt-2.3.7/include/qstring.h:166: error: cannot bind packed field `((QChar*)this)->QChar::cl' to `uchar&'
/opt/arm/arm-qtopia/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::row()':
/opt/arm/arm-qtopia/qt-2.3.7/include/qstring.h:167: error: cannot bind packed field `((QChar*)this)->QChar::rw' to `uchar&'
make: *** Error 1

高手指点一下.感激不尽~`


#1 [rqzrqh 07-15 08:57]
交叉编译我只设置PATHQMAKESPEC
运行时需要设置LD_LIBRARY_PATH
先试着用PC机的库来编译,再用QT/E的库来编译
#2 [gildon 07-15 09:00]
二楼的兄弟.PC机的库已经编译通过了.就是交叉编译通不过.不知道怎么回事.但是之前又成功过.后来环境变量改来改去的.不知道是哪里出问题了.就是通不过!!
#3 [gildon 07-15 09:04]
我的LD_LIBRARY_PATH=/opt/arm/arm-qtopia/qt-2.3.7/lib/:/usr/lib/qt-3.1/lib
#4 [gildon 07-15 09:43]
让我更觉得奇怪的是.我用之前交叉编译成功的重新make 也不行..到底是哪个设置不对了??急急急
#5 [rqzrqh 07-15 10:27]
电脑上准备两个文件,一个用来放电脑编译的环境变量,另一个放交叉编译的环境变量,你先把那些环境变量都取消掉

<< 1 2 >> (1/2)

回复 发表
主题 版块