qt交叉编译everywhere-source报错

编译QT ARM开发环境出现以下错误

进入
qt-everywhere-src-5.14.0下
设置参数如下

./configure -v -prefix /home/aron566/qt_everywhere_source -opensource -release  -xplatform linux-arm-gnueabi-g++ -no-opengl -no-dbus -no-icu -no-eglfs -no-iconv -skip qtpurchasing -skip qt3d -skip qtcanvas3d -skip qtdeclarative -nomake examples -I/home/aron566/nfs/arm_tslib/include -L/home/aron566/nfs/arm_tslib/lib

make 编译后报错如下:


/opt/arm-2014.05/arm-none-linux-gnueabi/include/c++/4.8.3/atomic:828:5: note:   template argument deduction/substitution failed:
In file included from io/../../3rdparty/forkfd/forkfd_atomic.h:29:0,
                 from io/../../3rdparty/forkfd/forkfd.c:93,
                 from io/forkfd_qt.cpp:48:
io/../../3rdparty/forkfd/forkfd_c11.h:56:42: note:   'ffd_atomic_int {aka std::__atomic_base<int>}' is not derived from 'volatile std::atomic<_ITp>'
     atomic_store_explicit(ptr, val, order)
                                          ^
io/../../3rdparty/forkfd/forkfd.c:686:9: note: in expansion of macro 'ffd_atomic_store'
         ffd_atomic_store(&info->pid, pid, FFD_ATOMIC_RELEASE);
         ^
In file included from ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:45:0,
                 from ../../include/QtCore/qatomic_cxx11.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:53,
                 from ../../include/QtCore/qbasicatomic.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qatomic.h:46,
                 from ../../include/QtCore/qatomic.h:1,
                 from global/qglobal.h:1296,
                 from global/qt_pch.h:56:
/home/aron566/opt/arm-2014.05/arm-none-linux-gnueabi/include/c++/4.8.3/atomic:822:5: note: template<class _ITp> void std::atomic_store_explicit(std::atomic<_ITp>*, _ITp, std::memory_order)
     atomic_store_explicit(atomic<_ITp>* __a, _ITp __i,
     ^
/home/aron566/opt/arm-2014.05/arm-none-linux-gnueabi/include/c++/4.8.3/atomic:822:5: note:   template argument deduction/substitution failed:
In file included from io/../../3rdparty/forkfd/forkfd_atomic.h:29:0,
                 from io/../../3rdparty/forkfd/forkfd.c:93,
                 from io/forkfd_qt.cpp:48:
io/../../3rdparty/forkfd/forkfd_c11.h:56:42: note:   'ffd_atomic_int {aka std::__atomic_base<int>}' is not derived from 'std::atomic<_ITp>'
     atomic_store_explicit(ptr, val, order)
                                          ^
io/../../3rdparty/forkfd/forkfd.c:686:9: note: in expansion of macro 'ffd_atomic_store'
         ffd_atomic_store(&info->pid, pid, FFD_ATOMIC_RELEASE);
         ^
Makefile:31236: recipe for target '.obj/forkfd_qt.o' failed
make[3]: *** [.obj/forkfd_qt.o] Error 1
make[3]: Leaving directory '/home/aron566/qt-everywhere-src-5.14.0/qtbase/src/corelib'
Makefile:222: recipe for target 'sub-corelib-make_first' failed
make[2]: *** [sub-corelib-make_first] Error 2
make[2]: Leaving directory '/home/aron566/qt-everywhere-src-5.14.0/qtbase/src'
Makefile:50: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/aron566/qt-everywhere-src-5.14.0/qtbase'
Makefile:73: recipe for target 'module-qtbase-make_first' failed
make: *** [module-qtbase-make_first] Error 2

不知道有啥解决方法?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问