之前总结过qtopia的编译移植的步骤,并且写了一个自动编译脚本,能够实现一体化的编译和安装,今天又编译了一遍,发现在configure的过程中就出现了下面的错误:
.filter_system /usr/bin/make clean 2>/dev/null
filter_system /usr/bin/makecompiling ../../../qt-extended-4.4.3/qbuild/src/main.cpp
In file included from ../../../qt-extended-4.4.3/qbuild/src/main.cpp:37:0:
../../../qt-extended-4.4.3/qbuild/src/options.h: 在构造函数‘Options::Options()’中:
../../../qt-extended-4.4.3/qbuild/src/options.h:52:22: 错误: 对重载的‘QString(int)’的调用有歧义
../../../qt-extended-4.4.3/qbuild/src/options.h:52:22: 附注: 备选是:
/usr/include/qt4/QtCore/qstring.h:421:43: 附注: QString::QString(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:419:43: 附注: QString::QString(const char*)
/usr/include/qt4/QtCore/qstring.h:725:8: 附注: QString::QString(const QString&)
/usr/include/qt4/QtCore/qstring.h:89:5: 附注: QString::QString(QChar)
/usr/include/qt4/QtCore/qstring.h:88:14: 附注: QString::QString(const QChar*)
../../../qt-extended-4.4.3/qbuild/src/main.cpp: 在函数‘void createProject()’中:
../../../qt-extended-4.4.3/qbuild/src/main.cpp:49:33: 警告: 忽略声明有 warn_unused_result 属性的‘int chdir(const char*)’的返回值 [-Wunused-result]
make[1]: *** [main.o] 错误 1
FAIL
make exited with value 2 at /home/work/qp4-4.3/qt-extended-4.4.3/src/build/bin/configure line 2355
make: *** [src/build/mkconf/configure] 错误 1
百思不得其解,之前编译过很多遍,没有遇到这个问题,对于QT语法我也不是很明白。