在Linux机器上从源代码构建Qt-4.3.2
Building Qt-4.3.2 from source on Linux machine
我正试图在我的linux机器上构建和编译Qt 4.3.2。我已从下载包http://download.qt.io/archive/qt/4.3/qt-x11-opensource-src-4.3.2.tar.gz.mirrorlist然后我用选项配置了它:
./configure -platform linux-g++ -debug-and-release -qt-zlib -qt-libtiff -qt-libmng -qt-libjpeg -openssl -v -opengl -glib
在那之后,我试图用make
编译它,并得到以下错误。
../../../include/QtCore/../../src/corelib/thread/qatomic.h: In instantiation of ‘QAtomicPointer<T>::QAtomicPointer(T*) [with T = QByteArray]’:
../../corelib/codecs/qsimplecodec.cpp:609:74: required from here
../../../include/QtCore/../../src/corelib/thread/qatomic.h:207:7: error: ‘init’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../include/QtCore/../../src/corelib/thread/qatomic.h:207:7: note: declarations in dependent base ‘QBasicAtomicPointer<QByteArray>’ are not found by unqualified lookup
../../../include/QtCore/../../src/corelib/thread/qatomic.h:207:7: note: use ‘this->init’ instead
make[1]: *** [.obj/release-shared/qsimplecodec.o] Error 1
make[1]: Leaving directory '/home/shraddha/shraddha/jst/QT/qt-x11-opensource-src-4.3.2/src/tools/rcc'
make: *** [sub-rcc-make_default-ordered] Error 2
我做错了什么或留下了什么?
它会提示note: use ‘this->init
出了什么问题。这种情况发生在使用模板的旧代码中,这些模板没有完全限定对具有this->
前缀的类成员的访问权限。请尝试(a)在配置之前将CXXFLAGS='-fpermissive'
添加到您的环境中,或者(b)获得较新的Qt版本或(c)较旧的编译器(开玩笑)。
相关文章:
- 如何构建Qt + cmake + QGLWidget
- 在Visual Studio 2017中构建Qt可执行文件
- 尝试使用 MSVC 从源代码构建 qt 创建器:无法打开包含文件:"stddef.h":没有这样的文件或目录
- 错误:无法构建 PhantomJS!构建Qt基地失败
- 如何在构建Qt应用程序时运行git命令
- 使用Visual Studio构建QT
- 如何使用MINGW-W64通过链接时间优化构建QT
- 使用Qt多媒体支持构建Qt
- 尝试在树莓派上构建Qt项目,为什么它会抛出有关qmake的错误
- MSVC 编译器在调试模式下构建 Qt 5.10 时崩溃
- 如何使用-REDUCE -RECATIONS构建QT
- 从MACOS上的源代码构建QT时错误
- 如何有效地构建QT应用程序
- 如何正确构建Qt插件
- 从源代码构建Qt 5.8 - 配置:未知命令行选项'-c++11'
- 尝试使用VC++编译器构建Qt应用程序:"type_traits":没有这样的文件或目录
- 如何使用Team Foundation Server 2017构建QT应用程序
- 使用Visual Studio 2013构建QT 5.2.1的静态版本
- 为嵌入式系统构建QT时错误
- 无法在Visual Studio 2005中构建Qt项目