Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Error on cross compiling for RaspberryPi

    Mobile and Embedded
    2
    3
    230
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MajidKamali last edited by

      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 :-(

      Pablo J. Rogina 1 Reply Last reply Reply Quote 0
      • Pablo J. Rogina
        Pablo J. Rogina @MajidKamali last edited by

        @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.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 0
        • M
          MajidKamali last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post