标题:qt/embedded2.3.7编译出错
作者:sur7675
日期:2008-08-11 12:54
内容:
編譯時出現下列錯誤是交叉編譯的設定錯嗎? 還是少安裝一些程式?
編譯器的版本是arm-linux-gcc 3.4.4 環境是debian
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*)t his)->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*)t ..
#1 [riverside 08-12 22:44]
make的结果再多贴一点,貌似只看到了warning,没有看到error
#2 [houyun66 08-14 11:03]
环境变量设置的有问题,你的环境变量是怎么设的?
#3 [sur7675 08-14 12:52]
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
#4 [houyun66 08-31 10:54]
export QTDIR=/270/qt-2.3.7
export QPEDIR=/270/qtopia-1.7.0
export LD_LIBRARY_PATH=$QTDIR/lib$LD_LIBRARY_PATH
export TMAKEDIR=/270/tmake-1.11
export TMAKEPATH=/270/tmake-1.11/lib/qws/linux-arm-g++ //这是交叉编译用的,如果你不是编译到板 //子上,可以用/270/tmake-1.11/lib/qws/linux-generic-g++
export PATH=/270/tmake-1.11/bin:$PATH
#5 [wswuwen 10-30 13:03]
兄弟 编译那个做什么 只要编译库就可以了 make -C src 是可以通过的