[讨论] QT4.4.3编译出错解决方法

梦之旅   2013-5-29 19:17 楼主
1.编译QT4.4.3的时候,出现如下问题:

Bootstrap QBuild: .. FAIL
In file included from ../../../qt-extended-4.4.3/qbuild/src/main.cpp:37:
../../../qt-extended-4.4.3/qbuild/src/options.h: In constructor 'Options::Options()':
../../../qt-extended-4.4.3/qbuild/src/options.h:52: error: call of overloaded 'QString(int)' is ambiguous
/usr/include/qt4/QtCore/qstring.h:428: note: candidates are: QString:String(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:426: note: QString:String(const char*)
/usr/include/qt4/QtCore/qstring.h:727: note: QString:String(const QString&)
/usr/include/qt4/QtCore/qstring.h:106: note: QString:String(QChar)
/usr/include/qt4/QtCore/qstring.h:105: note: QString:String(const QChar*)
../../../qt-extended-4.4.3/qbuild/src/main.cpp: In function 'void createProject()':
../../../qt-extended-4.4.3/qbuild/src/main.cpp:49: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result
make[1]: *** [main.o] Error 1
make exited with value 2 at /QT4/qt-extended-4.4.3/src/build/bin/configure line 2355
make: *** [src/build/mkconf/configure] Error 1
./build: line 53: bin/qbuild: No such file or directory
./build: line 54: bin/qbuild: No such file or directory

后来问题解决:

1、我之前安装了QT Creator,首先卸载QT Creator

2、使用sudo apt-get autoremove命令删除没有卸载干净的库文件

2、修改配置

重新编译就可以了。
qmake版本问题
删除usr/bin/  qmake即可
人生苦短,何必为声名所累,放开自己心态,去追求自己想要的梦想去吧!http://pytech-inc.taobao.com/

回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复