主题 : 友善qt-extended4.4.3编译出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 74255
精华: 0
发帖: 27
金钱: 135 两
威望: 27 点
综合积分: 54 分
注册时间: 2012-07-21
最后登录: 2013-08-31
楼主  发表于: 2013-04-23 16:13

 友善qt-extended4.4.3编译出错


根据友善的QT手册,编译QTOPIA2.2.0和QTE4.7均可以,但是在编译QT-EXTENDED4.4.3的时候出现错误,Bootstrap QBuild: .. FAIL
In file included from ../../../qt-extended-4.4.3/qbuild/src/main.cpp:38:
../../../qt-extended-4.4.3/qbuild/src/options.h: In constructor ‘Options::Options()’:
../../../qt-extended-4.4.3/qbuild/src/options.h:52: 错误:对重载的‘QString(int)’的调用有歧义
/opt/qtsdk-2010.05/qt/include/QtCore/qstring.h:428: 附注:备选为: QString::QString(const QByteArray&)
/opt/qtsdk-2010.05/qt/include/QtCore/qstring.h:426: 附注:         QString::QString(const char*)
/opt/qtsdk-2010.05/qt/include/QtCore/qstring.h:727: 附注:         QString::QString(const QString&)
/opt/qtsdk-2010.05/qt/include/QtCore/qstring.h:106: 附注:         QString::QString(QChar)
/opt/qtsdk-2010.05/qt/include/QtCore/qstring.h:105: 附注:         QString::QString(const QChar*)
gmake[1]: *** [main.o] 错误 1
gmake exited with value 2 at /opt/mini6410/qt-extended4.4.3/qt-extended-4.4.3/src/build/bin/configure line 2355
gmake: *** [src/build/mkconf/configure] 错误 1
不明白为什么,论坛里有人碰到过吗
级别: 新手上路
UID: 74255
精华: 0
发帖: 27
金钱: 135 两
威望: 27 点
综合积分: 54 分
注册时间: 2012-07-21
最后登录: 2013-08-31
1楼  发表于: 2013-04-24 09:58
安装完成
step by step
级别: 新手上路
UID: 90502
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
综合积分: 14 分
注册时间: 2013-04-18
最后登录: 2013-06-28
2楼  发表于: 2013-05-07 20:57
有个问题想请教一下
我是想要将qtopia4移植到mini2440,编译的时候运行下面这个脚本:

!/bin/bash

rm qt-extended-4.4.3 -fr
tar xvzf qt-extended-opensource-src-4.4.3.tar.gz

rm -fr builddir
mkdir builddir

#linux-arm-g++
export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin:$PATH
#export PATH=/usr/local/arm/4.3.2/bin:$PATH
export TOOLSCHAIN=/opt/FriendlyARM/toolschain/4.4.3
#export TOOLSCHAIN=/usr/local/arm/4.3.2
export TB_CC_PREFIX=arm-linux-
#export PKG_CONFIG_PREFIX=$TOOLSCHAIN/arm-linux
export PKG_CONFIG_PREFIX=$TOOLSCHAIN/arm-none-linux-gnueabi

export LC_CTYPE="en_US"
export LANG="en_US"
export LANGUAGE="en_US"

cd /opt/FriendlyARM/mini2440/arm-qtopia-4.4.3/builddir
echo yes | ../qt-extended-4.4.3/configure \
        -ui-type mobile \
        -xplatform linux-arm-g++ \
        -arch arm \
        -release \
        -clean \
        -prefix /opt/Qtopia4.4.3 \
        -sound-system oss \
        -build-qt \
        -no-sxe \
        -no-ssl \
        -no-v4l2 \
        -no-vpn \
        -no-phonon \
        -no-libamr \
        -dynamic-rotation \
        -mediaengines cruxus \
        -remove-mediaengine gstreamer,helix \
        -pictureflow \ -remove-module bluetooth,drm \
        -no-dbus \
        -no-dbusipc \
        -add-displaysize 240x320 \
        -extra-qt-embedded-config "-embedded arm -xplatform qws/linux-arm-g++ -no-cups -nomake examples -nomake demos -qt-zlib -qt-libjpeg -qt-libmng -qt-libpng -no-dbus -depths 16,32 -qt-gfx-linuxfb -qt-gfx-transformed -no-gfx-qvfb -no-gfx-vnc -no-gfx-multiscreen -qt-kbd-tty -no-kbd-usb -no-kbd-sl5000 -no-kbd-yopy -no-kbd-vr41xx -no-kbd-qvfb -qt-mouse-tslib -I/usr/local/arm/tslib/tslib/include -L/usr/local/arm/tslib/tslib/lib -no-webkit -no-openssl -no-phonon -no-phonon-backend -no-nas-sound -no-exceptions -svg" \
        -extra-qt-config "-no-webkit" \
        2>&1 | tee ../qtopiaconfig.log

bin/qbuild 2>&1 | tee ../qtopia4.4.3makelog
bin/qbuild image

但是出现了下面这个错误:
Unhandled arguments:  
Usage:  configure [ -help ] [ -verbose ] [ -silent | -no-silent ]
                  [ -release | -debug ]
                  [ -separate-debug-info | -no-separate-debug-info ]
                  [ -clean | -no-clean ] [ -profile | -no-profile ]
                  [ -reduce-exports arg ] [ -little-endian | -big-endian ]
                  [ -I dir ] [ -L dir ] [ -l lib ] [ -R dir ] [ -D def ]
                  [ -host-I dir ] [ -host-L dir ] [ -host-l lib ]
                  [ -host-R dir ] [ -host-D def ] [ -rpath | -no-rpath ]
                  [ -posix-locks | -flock-locks ]
                  [ -semtimedop | -no-semtimedop ]
                  [ -malloc-hook | -no-malloc-hook ]
                  [ -exceptions | -no-exceptions ] [ -rtti | -no-rtti ]
                  [ -strict-warnings | -no-strict-warnings ]
                  [ -error | -no-error ]
                  [ -ld-optimize-speed | -ld-optimize-memory ]
                  [ -pkg-config | -no-pkg-config ] [ -force-pkg-config ]
                  [ -device device ] [ -qvfb ] [ -allow-fail option ]
                  [ -ui-type ui ] -add-module module -remove-module module
                  -modules module,module [ -platform host ]
                  [ -xplatform target ] [ -arch architecture ] [ -sdk dir ]
                  [ -image dir ] [ -prefix dir ] [ -launch-method method ]
                  [ -setproc-method method ] [ -singleexec | -shared ]
                  -add-language lang -remove-language lang -languages lang,lang
                  [ -iconsize size ] [ -svg-format ext ]
                  [ -image-extension-order ext,ext ]
                  [ -add-displaysize ui:size | -displaysizes ui:size,ui:size ]
                  [ -auto-i18n-fonts | -no-auto-i18n-fonts ]
                  [ -add-font fontspec ] [ -mount dir:mountpoint ]
                  [ -dynamic-rotation | -no-dynamic-rotation ]
                  [ -ssl | -no-ssl ] [ -sxe | -no-sxe ]
                  [ -sxe-discovery | -no-sxe-discovery ]
                  [ -sxe-soft-kill | -no-sxe-soft-kill ] [ -dbus | -no-dbus ]
                  [ -dbusipc | -no-dbusipc ] [ -sound-system ss ]
                  [ -v4l2 | -no-v4l2 ] -add-phonevendor plugin
                  -remove-phonevendor plugin -phonevendors plugin,plugin
                  -add-multiplexer plugin -remove-multiplexer plugin
                  -multiplexers plugin,plugin [ -vpn | -no-vpn ]
                  -add-mediaengine engine -remove-mediaengine engine
                  -mediaengines engine,engine [ -phonon | -no-phonon ]
                  [ -libamr | -no-libamr ] [ -build-examples | -no-examples ]
                  [ -pictureflow | -no-pictureflow ] [ -gif | -no-gif ]
                  [ -glib | -no-glib ] [ -qtopia-sqlite | -system-sqlite ]
                  [ -script | -no-script ]
                  [ -extra-qt-embedded-config "-option arg" ]
                  [ -extra-qt-config "-option arg" ] [ -system-qt | -build-qt ]
                  [ -force-build-qt ]

        Pass -help for a detailed explanation of each option.

gmake: *** [src/build/mkconf/configure] Error 2
./build: line 25: -xplatform: command not found
./build: line 26: -arch: command not found
./build: line 27: -release: command not found
./build: line 28: -clean: command not found
./build: line 29: -prefix: command not found
./build: line 30: -sound-system: command not found
./build: line 31: -build-qt: command not found
./build: line 32: -no-sxe: command not found
./build: line 34: -no-ssl: command not found
./build: line 35: -no-vpn: command not found
./build: line 36: -no-phonon: command not found
./build: line 37: -no-libamr: command not found
./build: line 38: -dynamic-rotation: command not found
./build: line 39: -mediaengines: command not found
./build: line 40: -remove-mediaengine: command not found
./build: line 41: -pictureflow: command not found
./build: line 42: -no-dbus: command not found
./build: line 43: -no-dbusipc: command not found
./build: line 44: -add-displaysize: command not found
./build: line 45: -extra-qt-embedded-config: command not found
./build: line 49: bin/qbuild: No such file or directory
./build: line 50: bin/qbuild: No such file or directory

请问这是什么原因呢?
级别: 新手上路
UID: 93758
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
综合积分: 36 分
注册时间: 2013-06-30
最后登录: 2015-03-17
3楼  发表于: 2013-07-28 01:27
问题解决了吗?我也遇到了这个问题,求解,谢谢了……