• 5191阅读
  • 5回复

qt/embedded2.3.7编译出错 [复制链接]

上一主题 下一主题
离线sur7675
 
只看楼主 倒序阅读 楼主  发表于: 2008-08-11
— 本帖被 XChinux 执行加亮操作(2008-08-12) —
編譯時出現下列錯誤是交叉編譯的設定錯嗎? 還是少安裝一些程式?
編譯器的版本是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                                                                            his)->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
离线riverside
只看该作者 1楼 发表于: 2008-08-12
make的结果再多贴一点,貌似只看到了warning,没有看到error
离线houyun66
只看该作者 2楼 发表于: 2008-08-14
环境变量设置的有问题,你的环境变量是怎么设的?
离线sur7675
只看该作者 3楼 发表于: 2008-08-14
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
离线houyun66
只看该作者 4楼 发表于: 2008-08-31
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
离线wswuwen

只看该作者 5楼 发表于: 2008-10-30
兄弟 编译那个做什么 只要编译库就可以了 make  -C src 是可以通过的
快速回复
限100 字节
 
上一个 下一个