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

Error on cross compiling for RaspberryPi



  • Hi.
    I'm trying to cross compile qt 5.12.3 for raspberry pi 3 B+ from this guide
    configure step is fine and everything is ok.
    I compile with make but after half and hour following error stops compiling.

    configure command:

    ./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -skip qtwayland -skip qtscript -skip qtwebengine -skip qtwebchannel -skip qtdoc -skip qtcanvas3d -skip qtgamepad -skip qtlocation -skip qtpurchasing -make libs -gstreamer -nomake tests -nomake examples -prefix /usr/local/qt5pi -extprefix /home/majid/raspi/qt5pi -hostprefix /home/majid/raspi/qt5 -no-use-gold-linker -v -no-gbm
    

    error:

    g++ -Wl,-O1 -Wl,--gc-sections -o ../../bin/qdoc .obj/atom.o .obj/clangcodeparser.o .obj/codechunk.o .obj/codemarker.o .obj/codeparser.o .obj/config.o .obj/cppcodemarker.o .obj/cppcodeparser.o .obj/doc.o .obj/editdistance.o .obj/generator.o .obj/helpprojectwriter.o .obj/htmlgenerator.o .obj/location.o .obj/main.o .obj/node.o .obj/openedlist.o .obj/puredocparser.o .obj/qdocdatabase.o .obj/qdoctagfiles.o .obj/qdocindexfiles.o .obj/quoter.o .obj/sections.o .obj/separator.o .obj/text.o .obj/tokenizer.o .obj/tree.o .obj/yyindent.o .obj/webxmlgenerator.o .obj/jscodemarker.o .obj/qmlcodemarker.o .obj/qmlcodeparser.o .obj/qmlmarkupvisitor.o .obj/qmlvisitor.o   -L/usr/lib -lclang -L/home/majid/raspi/qt-everywhere-src-5.12.3/qtdeclarative/lib -lQt5QmlDevTools /home/majid/raspi/qt5/lib/libQt5Core.so -L/home/majid/raspi/qt-everywhere-src-5.12.3/qtbase/lib -lQt5Bootstrap /home/majid/raspi/qt5/lib/libz.so -lpthread   
    g++: error: /home/majid/raspi/qt5/lib/libQt5Core.so: No such file or directory
    g++: error: /home/majid/raspi/qt5/lib/libz.so: No such file or directory
    make[3]: *** [Makefile:214: ../../bin/qdoc] Error 1
    make[3]: Leaving directory '/home/majid/raspi/qt-everywhere-src-5.12.3/qttools/src/qdoc'
    make[2]: *** [Makefile:232: sub-qdoc-make_first] Error 2
    make[2]: Leaving directory '/home/majid/raspi/qt-everywhere-src-5.12.3/qttools/src'
    make[1]: *** [Makefile:49: sub-src-make_first] Error 2
    make[1]: Leaving directory '/home/majid/raspi/qt-everywhere-src-5.12.3/qttools'
    make: *** [Makefile:806: module-qttools-make_first] Error 2
    

    Please help :-(



  • @majidkamali said in Error on cross compiling for RaspberryPi:

    after half and hour

    Mmm, it looks too much somehow. Could you describe (processor, RAM, OS) your host PC?

    g++: error: /home/majid/raspi/qt5/lib/libQt5Core.so: No such file or directory

    In addition, could you please check entries before this one to see if you don't have any previous error, or inversely, to check that indeed such shared object file was created before reaching the point where it stops the compilation process.



  • by "half an hour", I mean half an hour of compiling. It starts compiling qt. QtCore, QtNetwork etc. are built.

    Mmm, it looks too much somehow. Could you describe (processor, RAM, OS) your host PC?

    g++: error: /home/majid/raspi/qt5/lib/libQt5Core.so: No such file or directory

    In addition, could you please check entries before this one to see if you don't have any previous error, or inversely, to check that indeed such shared object file was created before reaching the point where it stops the compilation process.

    Yes. Shared objects are created, but not in above directory. they are created in qt source directory (e.g. QtCore is created in /home/majid/raspi/qt-everywhere-src-5.12.3/qtbase/lib/). I tested make install and I got some errors too. But some of the files get copied to qt5 and qt5pi directories as stated in configure options.


Log in to reply