• 9869阅读
  • 2回复

qt4.6交叉编译 [复制链接]

上一主题 下一主题
离线futurepeter
 
只看楼主 正序阅读 楼主  发表于: 2010-01-26
哪位高手编译通过了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


请高手赐教!!
离线lhembed
只看该作者 2楼 发表于: 2010-07-31
我用的就是4.1.2结果会出现这个问题,我认为应该不是编译器的问题
我的是#include <new>找不到的问题
离线jiajy106
只看该作者 1楼 发表于: 2010-04-27
我遇到的问题跟你的一样,期待高手解决
qt开发sqlite数据库
快速回复
限100 字节
 
上一个 下一个