Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

can not cross complie Qt



  • I want to cross complie Qt5.12.10, I have build success with my arm system, but when I want to cross complie it, there is an error
    and my rootfs is the same as my arm system

    make[5]: Entering directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/src/plugins/geoservices/mapboxgl'
    /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/bin/qmake -o Makefile mapboxgl.pro
    rm -f libqtgeoservices_mapboxgl.so
    aarch64-linux-gnu-g++ --sysroot=/home/xtbdcz/workspace/rootfs -Wl,--no-undefined -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqtgeoservices_mapboxgl.so .obj/qgeoserviceproviderpluginmapboxgl.o .obj/qgeomappingmanagerenginemapboxgl.o .obj/qgeomapmapboxgl.o .obj/qmapboxglstylechange.o .obj/qsgmapboxglnode.o .obj/qrc_mapboxgl.o .obj/moc_qgeoserviceproviderpluginmapboxgl.o .obj/moc_qgeomappingmanagerenginemapboxgl.o .obj/moc_qgeomapmapboxgl.o  /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/lib/libQt5Location.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/lib/libQt5PositioningQuick.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtdeclarative/lib/libQt5Quick.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Gui.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtdeclarative/lib/libQt5Qml.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Network.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/lib/libQt5Positioning.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Sql.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Core.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libGL.so -lpthread -L/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/lib -lqmapboxgl /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Network.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Gui.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Sql.so /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtbase/lib/libQt5Core.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libGL.so -lpthread /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libz.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libicui18n.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libicuuc.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libicudata.so /home/xtbdcz/workspace/rootfs/usr/lib/aarch64-linux-gnu/libdl.so   
    /home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/lib/libqmapboxgl.a(render_layer.o):render_layer.cpp:function mbgl::RenderLayer::create(mbgl::Immutable<mbgl::style::Layer::Impl>): error: undefined reference to 'mbgl::RenderLineLayer::RenderLineLayer(mbgl::Immutable<mbgl::style::LineLayer::Impl>)'
    collect2: error: ld returned 1 exit status
    Makefile:127: recipe for target '../../../../plugins/geoservices/libqtgeoservices_mapboxgl.so' failed
    make[5]: *** [../../../../plugins/geoservices/libqtgeoservices_mapboxgl.so] Error 1
    make[5]: Leaving directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/src/plugins/geoservices/mapboxgl'
    Makefile:177: recipe for target 'sub-mapboxgl-make_first' failed
    make[4]: *** [sub-mapboxgl-make_first] Error 2
    make[4]: Leaving directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/src/plugins/geoservices'
    Makefile:72: recipe for target 'sub-geoservices-make_first' failed
    make[3]: *** [sub-geoservices-make_first] Error 2
    make[3]: Leaving directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/src/plugins'
    Makefile:233: recipe for target 'sub-plugins-make_first' failed
    make[2]: *** [sub-plugins-make_first] Error 2
    make[2]: Leaving directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation/src'
    Makefile:48: recipe for target 'sub-src-make_first' failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/xtbdcz/workspace/qt-arm/qt-everywhere-src-5.12.10/qtlocation'
    Makefile:730: recipe for target 'module-qtlocation-make_first' failed
    make: *** [module-qtlocation-make_first] Error 2
    
    

    is there any one meet this before? give me some advice, please, thank you very much


Log in to reply