export QTDIR=/270/qt-2.3.7
export LD_LIBRARY_PATH=$QTDIR/lib$LD_LIBRARY_PATH
export PATH=/usr/local/arm-linux/bin:$PATH
export TMAKEPATH=/usr/local/bin/arm-linux-g++
環境變數的設定
./configure -xplatform linux-arm-g++ -shared
make
好多錯阿
make[1]: Entering directory `/270/qt-2.3.7'
cd src/moc; make
make[2]: Entering directory `/270/qt-2.3.7/src/moc'
g++ -c -I/270/qt-2.3.7/include -Wno-unused -Wno-parentheses -pipe -DQWS -fno-ex ceptions -fno-rtti -O2 -fno-default-inline -Wall -W -DNO_DEBUG -DQT_NO_CODECS -D QT_LITE_UNICODE -I../../include -I../tools -I. -o mocgen.o mocgen.cpp
In file included from /270/qt-2.3.7/include/qgdict.h:43,
from /270/qt-2.3.7/include/qasciidict.h:42,
from moc.y:58:
/270/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::cell()':
/270/qt-2.3.7/include/qstring.h:166: error: cannot bind packed field
`((QChar*)this)->QChar::cl' to `uchar&'
/270/qt-2.3.7/include/qstring.h: In member function `uchar& QChar::row()':
/270/qt-2.3.7/include/qstring.h:167: error: cannot bind packed field
`((QChar*)this)->QChar::rw' to `uchar&'
y.tab.c: In function `int yyparse()':
y.tab.c:3174: warning: label `yyerrlab' defined but not used
y.tab.c:3169: warning: label `yynewerror' defined but not used
mocgen.cpp: At global scope:
mocgen.cpp:3: warning: 'yysccsid' defined but not used
make[2]: *** [mocgen.o] Error 1
make[2]: Leaving directory `/270/qt-2.3.7/src/moc'
make[1]: *** [src-moc] Error 2
make[1]: Leaving directory `/270/qt-2.3.7'
make: *** [init] Error 2
目前只看到一份文章還是韓語的
大意好像是這是一個很久的問題可能是GCC版本太新請找舊一點的版本使用
- Aug 11 Mon 2008 22:17
QT-2.3.7交叉編譯的錯誤
close
全站熱搜
留言列表
發表留言