ubuntu下安装QT时make报错

万欣 发布于 2013/05/06 19:04
阅读 2K+
收藏 0

QT版本:qt-x11-opensource-src-4.5.3

装时在make的过程中报错如下:

 make[1]: *** [.obj/release-shared/qxpath20corefunctions.o] Error 1
make[1]: Leaving directory `/home/xin/Documents/QT/qt-x11-opensource-src-4.5.3/src/xmlpatterns'
make: *** [sub-xmlpatterns-make_default-ordered] Error 2

求助!

 

以下是问题补充:

@顾伟敏:functions/qxpath20corefunctions.cpp:745:1: required from here functions/qcomparingaggregator.cpp:207:5: 错误: ‘prepareComparison’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] functions/qcomparingaggregator.cpp:207:5: 附注: declarations in dependent base ‘QPatternist::ComparisonPlatform<QPatternist::ComparingAggregator<(QPatternist::AtomicComparator::Operator)4u, (QPatternist::AtomicComparator::ComparisonResult)4u>, true, (QPatternist::AtomicComparator::ComparisonType)2u, (QPatternist::ReportContext::ErrorCode)119u>’ are not found by unqualified lookup functions/qcomparingaggregator.cpp:207:5: 附注: use ‘this->prepareComparison’ instead make[1]: *** [.obj/release-shared/qxpath20corefunctions.o] 错误 1 make[1]:正在离开目录 `/usr/local/qt/qt-x11-opensource-src-4.5.3/src/xmlpatterns' make: *** [sub-xmlpatterns-make_default-ordered] 错误 2 (2013/05/08 13:02)
加载中
0
wendal
wendal
你得把出错的log贴多点,另外,4.5.x很老了
0
毕刚

进入usr/local/qt/qt-x11-opensource-src-4.5.3/src/xmlpatterns目录

vim  Makefile文件     把-fpermissive 加到 CXXFLAGS关键字后面,就可以解决了

返回顶部
顶部