哪位高手编译通过了qt4.6+cross-compile4.1.2(或者更低版本).我在ubuntu9.10下用cross-compile4.2.2编译成功后下到板子里出现段错误,网上说这个错误不可解决,因此只能使用低于4.1.2的交叉编译器,但是我交叉编译的时候还是存在如下错误:
rty/md4 -I.moc/release-shared-emb-arm -x c++-header -c global/qt_pch.h -o .pch/release-shared-emb-arm/QtCore.gch/c++
在包含自 ../../include/QtCore/qlist.h:1 的文件中,
从 ../../include/QtCore/../../src/corelib/kernel/qobject.h:50,
从 ../../include/QtCore/qobject.h:1,
从 ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:45,
从 ../../include/QtCore/qcoreapplication.h:1,
从 global/qt_pch.h:58:
../../include/QtCore/../../src/corelib/tools/qlist.h:54:15: 错误: new:没有该文件或目录
../../include/QtCore/../../src/corelib/tools/qregexp.h: In constructor ‘QRegExp::QRegExp(const QString&, bool, bool)’:
../../include/QtCore/../../src/corelib/tools/qregexp.h:141: 错误: 对‘operator new(unsigned int, QRegExp* const)’的调用没有匹配的函数
<built-in>:0: 附注: 备选为: void* operator new(unsigned int)
../../include/QtCore/../../src/corelib/tools/qlist.h: In member function ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = QString]’:
../../include/QtCore/../../src/corelib/tools/qlist.h:472: instantiated from ‘void QList<T>::append(const T&) [with T = QString]’
../../include/QtCore/../../src/corelib/tools/qstringlist.h:70: instantiated from here
../../include/QtCore/../../src/corelib/tools/qlist.h:352: 错误: 对‘operator new(unsigned int, QList<QString>::Node*&)’的调用没有匹配的函数
<built-in>:0: 附注: 备选为: void* operator new(unsigned int)
../../include/QtCore/../../src/corelib/tools/qlist.h: In member function ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’:
../../include/QtCore/../../src/corelib/tools/qlist.h:706: instantiated from ‘QList<T>& QList<T>::operator+=(const QList<T>&) [with T = QString]’
../../include/QtCore/../../src/corelib/tools/qstringlist.h:85: instantiated from here
../../include/QtCore/../../src/corelib/tools/qlist.h:383: 错误: 对‘operator new(unsigned int, QList<QString>::Node*&)’的调用没有匹配的函数
<built-in>:0: 附注: 备选为: void* operator new(unsigned int)
make[1]: *** [.pch/release-shared-emb-arm/QtCore.gch/c++] 错误 1
make[1]:正在离开目录 `/root/Program/qt-everywhere-opensource-src-4.6.0/src/corelib'
make: *** [sub-corelib-make_default-ordered] 错误 2
请高手赐教!!