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. [solved] cross-compile qt5 using bakeqtpi
Forum Updated to NodeBB v4.3 + New Features

[solved] cross-compile qt5 using bakeqtpi

Scheduled Pinned Locked Moved Mobile and Embedded
14 Posts 2 Posters 5.0k 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.
  • V Offline
    V Offline
    vitorcarvalhoml
    wrote on last edited by
    #1

    Hi! I'm trying to cross compile qt5.3 using the easy to use script bakeqtpi but I got an error. The output was:

    @
    NOTE: Qt is using double for qreal on this system. This is binary incompatible against Qt 5.1.
    Configure with '-qreal float' to create a build that is binary compatible with 5.1.
    Info: creating cache file /home/vitor/opt/qt5/qtbase/.qmake.cache

    Qt is now configured for building. Just run 'make'.
    Once everything is built, you must run 'make install'.
    Qt will be installed into /usr/local/qt5pi

    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.

    touch: cannot touch ‘/home/vitor/opt/qtsdk/qtbase/.CONFIGURED’: Not a directory
    Configuring QT Failed
    @

    The script should run make automatically correct?
    qtbase exists and it's a file, not a directory. How can I proceed?

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

      Hi,

      Did I understand you correctly ? Is qtbase really a file ? It should be a folder

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vitorcarvalhoml
        wrote on last edited by
        #3

        I don't know why it's a file..

        @
        vitor@ubuntu:~/opt/qtsdk$ ls -l
        total 28
        drwxrwxr-x 9 vitor vitor 4096 Sep 26 11:12 gnuwin32
        drwxrwxr-x 8 vitor vitor 4096 Oct 30 17:23 packaging-tools
        -rw-rw-r-- 1 vitor vitor 1491 Sep 26 11:33 qtbase
        -rw-rw-r-- 1 vitor vitor 13704 Sep 26 11:33 qtjsbackend
        @

        The folder called qtbase is inside ~/opt/qt5/ not in ~/opt/qtsdk

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

          Seems that there's some mismatch somewhere. Are you using sources that where already configured once ?

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

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vitorcarvalhoml
            wrote on last edited by
            #5

            Yes. But I included --confclean option

            @sudo ./bakeqtpi.bash --webkit --httppi --confclean@

            I can remove everything and start over if is needed.

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

              it should be: make confclean.

              But anyway, you should start from clean sources

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

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vitorcarvalhoml
                wrote on last edited by
                #7

                Like you sugest I delete every thing and start over. But without using the script bakeqtpi. I'm follow this "tutorial":http://qt-project.org/wiki/RaspberryPi_Beginners_guide

                something with opengl? Thanks!

                @make[4]: *** [.obj/qeglfshooks_pi.o] Error 1
                make[4]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/platforms/eglfs' make[3]: *** [sub-eglfs-make_first] Error 2 make[3]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/platforms'
                make[2]: *** [sub-platforms-make_first] Error 2
                make[2]: /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/qaccessiblemenu.o qaccessiblemenu.cpp
                *** Waiting for unfinished jobs....
                /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/itemviews.o itemviews.cpp
                /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../mkspecs/devices/linux-rasp-pi-g++ -I. -I../../../../include/QtWidgets/5.3.2 -I../../../../include/QtWidgets/5.3.2/QtWidgets -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui/5.3.2 -I../../../../include/QtGui/5.3.2/QtGui -I../../../../include/QtCore/5.3.2 -I../../../../include/QtCore/5.3.2/QtCore -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I/mnt/rasp-pi-rootfs/opt/vc/include -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vcos/pthreads -I/mnt/rasp-pi-rootfs/opt/vc/include/interface/vmcs_host/linux -o .obj/main.o main.cpp
                rm -f libqtaccessiblewidgets.so
                /home/vitor/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -Wl,-rpath-link,/mnt/rasp-pi-rootfs/opt/vc/lib -Wl,-rpath-link,/mnt/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/mnt/rasp-pi-rootfs/lib/arm-linux-gnueabihf --sysroot=/mnt/rasp-pi-rootfs -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/local/qt5pi/lib -shared -o libqtaccessiblewidgets.so .obj/main.o .obj/simplewidgets.o .obj/rangecontrols.o .obj/complexwidgets.o .obj/qaccessiblewidgets.o .obj/qaccessiblemenu.o .obj/itemviews.o -L/mnt/rasp-pi-rootfs/opt/vc/lib -L/home/vitor/opt/qt5/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread
                mv -f libqtaccessiblewidgets.so ../../../../plugins/accessible/
                make[4]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/accessible/widgets' make[3]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins/accessible'
                make[2]: Leaving directory /home/vitor/opt/qt5/qtbase/src/plugins' make[1]: *** [sub-plugins-make_first] Error 2 make[1]: Leaving directory /home/vitor/opt/qt5/qtbase/src'
                make: *** [sub-src-make_first] Error 2@

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

                  Can you run it in single thread mode, the error will be shown more clearly

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

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vitorcarvalhoml
                    wrote on last edited by
                    #9

                    I did it. The output was big..I put it in "gist":https://gist.github.com/vitorcarvalhoml/5b2f81ff164220505bbb.

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

                      You're not the first one hitting this, you can change the type like suggested and continue forward.

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

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vitorcarvalhoml
                        wrote on last edited by
                        #11

                        I didn't follow you. Ho can I change the type? Are you talking about this line?

                        @../../../../mkspecs/devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp:118:66: error: cannot convert ‘DISPMANX_TRANSFORM_T’ to ‘VC_IMAGE_TRANSFORM_T’ for argument ‘9’ to ‘int vc_dispmanx_element_change_attributes(DISPMANX_UPDATE_HANDLE_T, DISPMANX_ELEMENT_HANDLE_T, uint32_t, int32_t, uint8_t, const VC_RECT_T*, const VC_RECT_T*, DISPMANX_RESOURCE_HANDLE_T, VC_IMAGE_TRANSFORM_T)’@

                        Thanks!

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

                          Yes, that line

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

                          1 Reply Last reply
                          0
                          • V Offline
                            V Offline
                            vitorcarvalhoml
                            wrote on last edited by
                            #13

                            Is this a bug? I follow this "thread":http://qt-project.org/forums/viewthread/33587 and it works.

                            Thanks! ;)

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

                              Might be, you should check the "bug report system":http://bugreports.qt-project.org to see if something known, if now please consider opening a new report

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

                              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