Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Cross-Compilation Build Make Error
Forum Updated to NodeBB v4.3 + New Features

Qt Cross-Compilation Build Make Error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 2 Posters 3.3k Views 1 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #4

    There's usually more lines about the exact error.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    S 2 Replies Last reply
    0
    • SGaistS SGaist

      There's usually more lines about the exact error.

      S Offline
      S Offline
      Sudden
      wrote on last edited by
      #5

      @SGaist Edited!

      1 Reply Last reply
      0
      • SGaistS SGaist

        There's usually more lines about the exact error.

        S Offline
        S Offline
        Sudden
        wrote on last edited by
        #6

        @SGaist Re-Edited!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sudden
          wrote on last edited by
          #7

          @SGaist in Qt Cross-Compilation Build Make Error:

          In file included from /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/qglobal.h:1:0,
          from /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qt_pch.h:56:
          /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:121:49: error: static assertion failed: Required feature library for file /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h not available.
          define Q_STATIC_ASSERT_X(Condition, Message) static_assert(bool(Condition), Message)
          ^

          /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:87:36: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
          #define QT_REQUIRE_CONFIG(feature) Q_STATIC_ASSERT_X(QT_FEATURE_##feature == 1, "Required feature " #feature " for file " FILE " not available.")
          ^
          /opt/qt5pi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/../../src/corelib/plugin/qlibrary.h:45:1: note: in expansion of macro ‘QT_REQUIRE_CONFIG’
          QT_REQUIRE_CONFIG(library);
          ^
          Makefile:28857: recipe for target '.obj/qsslsocket_opensslpre11.o' failed
          make[3]: *** [.obj/qsslsocket_opensslpre11.o] Error 1
          make[3]: Leaving directory '/opt/qt5pi/qt5build/qtbase/src/network'
          Makefile:276: recipe for target 'sub-network-make_first' failed
          make[2]: *** [sub-network-make_first] Error 2
          make[2]: Leaving directory '/opt/qt5pi/qt5build/qtbase/src'
          Makefile:50: recipe for target 'sub-src-make_first' failed
          make[1]: *** [sub-src-make_first] Error 2
          make[1]: Leaving directory '/opt/qt5pi/qt5build/qtbase'
          Makefile:84: recipe for target 'module-qtbase-make_first' failed
          make: *** [module-qtbase-make_first] Error 2

          Here is the full error log!

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #8

            What options did you pass to configure ?
            What version of OpenSSL are you using ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              What options did you pass to configure ?
              What version of OpenSSL are you using ?

              S Offline
              S Offline
              Sudden
              wrote on last edited by Sudden
              #9

              @SGaist OpenSSL Version: OpenSSL 1.1.1
              ../qt-everywhere-src-5.13.1/configure -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /opt/qt5pi/sysroot -prefix /usr/local/qt5pi -opensource -confirm-license -skip qtscript -nomake examples -no-compile-examples -make libs -pkg-config -no-use-gold-linker -v -qpa eglfs -no-gbm -qt-pcre -evdev -system-freetype -no-gtk -glib

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #10

                Maybe a silly question but you do have OpenSSL built for your target in the sysroot ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                0
                • SGaistS SGaist

                  Maybe a silly question but you do have OpenSSL built for your target in the sysroot ?

                  S Offline
                  S Offline
                  Sudden
                  wrote on last edited by
                  #11

                  @SGaist Yes I do, I went through the qt-src folder and found out the missing file was as result of the missing directories and files in there.

                  Though currently I am building make for Qt 5.12.3 Version using the same configure command with a slight change using linux-rasp-pi-g++ instead based on this tutorial: (https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/)
                  So far there have been no error.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    I would recommend building the latest of the series. There have been several releases since 5.12.3.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    S 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      I would recommend building the latest of the series. There have been several releases since 5.12.3.

                      S Offline
                      S Offline
                      Sudden
                      wrote on last edited by Sudden
                      #13

                      @SGaist I was also looking for tested configurations built with OpenGL with EGLFS following this link (https://wiki.qt.io/RaspberryPi 2EGLFS) but thanks for the support.
                      I have successfully ran both make and make install now.
                      Don't know if it's against the rules here or yours but how can I get in touch with you, if it is possible? via Social media! - Send me a reply on this here sudden8317@gmail.com

                      Above all!!
                      Thanks again for your support!!!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved