Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt cross compile for Raspbian Jessie
Forum Updated to NodeBB v4.3 + New Features

Qt cross compile for Raspbian Jessie

Scheduled Pinned Locked Moved Solved QtonPi
raspberrycross compilejessie
23 Posts 2 Posters 10.2k 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
    vish
    wrote on 3 Nov 2015, 20:46 last edited by vish 11 Mar 2015, 20:48
    #3

    I was trying https://wiki.qt.io/RaspberryPi_Beginners_Guide with jessie and latest qt from repo...
    Till the point Compiling other modules I was successful without any big problem. In module compilation I can compile imageformat. But than in svg module i am facing problem.

    /home/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ -c -include .pch/Qt5Svg -pipe -marm -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk -mabi=aapcs-linux -mfloat-abi=hard --sysroot=/mnt/rasp-pi-rootfs -O2 -std=c++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_BUILD_SVG_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtSvg -I../../include/QtSvg/5.6.0 -I../../include/QtSvg/5.6.0/QtSvg -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/5.6.0 -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtCore/5.6.0/QtCore -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/5.6.0 -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui/5.6.0/QtGui -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/include/QtGui -I/mnt/rasp-pi-rootfs/usr/local/qt5pi/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 -I/usr/local/qt5pi/mkspecs/devices/linux-rasp-pi-g++ -o .obj/moc_qsvgwidget.o .moc/moc_qsvgwidget.cpp
    qgraphicssvgitem.h:53: Error: Undefined interface
    Makefile:1174: recipe for target '.moc/moc_qgraphicssvgitem.cpp' failed
    make[2]: *** [.moc/moc_qgraphicssvgitem.cpp] Error 1
    make[2]: *** Waiting for unfinished jobs....
    In file included from .moc/moc_qsvgwidget.cpp:9:0:
    .moc/../qsvgwidget.h:41:31: fatal error: QtWidgets/qwidget.h: No such file or directoryIn file included from qsvgwidget.cpp:34:0:
    qsvgwidget.h:41:31: fatal error: QtWidgets/qwidget.h: No such file or directory

    compilation terminated.

    This is my error text.

    Development is possible at any level.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 Nov 2015, 21:00 last edited by
      #4

      Are you sure /mnt/rasp-pi-rootfs/usr/local/qt5pi/includeis accessible ?

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

      V 1 Reply Last reply 3 Nov 2015, 21:11
      0
      • V Offline
        V Offline
        vish
        wrote on 3 Nov 2015, 21:03 last edited by
        #5

        Also my question is from qt5.2 jsondb and jsbackend modules are removed. So do i need them separately or their support wll be provided in some othr module.

        Development is possible at any level.

        1 Reply Last reply
        0
        • S SGaist
          3 Nov 2015, 21:00

          Are you sure /mnt/rasp-pi-rootfs/usr/local/qt5pi/includeis accessible ?

          V Offline
          V Offline
          vish
          wrote on 3 Nov 2015, 21:11 last edited by
          #6

          @SGaist Ya it is accessible.. Hence i can compile and install imageformat module without any issue.

          Development is possible at any level.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 3 Nov 2015, 21:28 last edited by
            #7

            jsondb and jsbackend ? Where did you had them ?

            Can you locate qwidget.h in /mnt/rasp-pi-rootfs/usr/local/qt5pi/include ?

            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
              vish
              wrote on 3 Nov 2015, 21:46 last edited by vish 11 Mar 2015, 21:55
              #8

              No i dont have tht file in /include path..How come ?? Does ths mean my qtbase is not installed properly

              Development is possible at any level.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 3 Nov 2015, 22:20 last edited by
                #9

                Looks like it, what option did you give to configure ?

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

                V 1 Reply Last reply 3 Nov 2015, 22:21
                0
                • S SGaist
                  3 Nov 2015, 22:20

                  Looks like it, what option did you give to configure ?

                  V Offline
                  V Offline
                  vish
                  wrote on 3 Nov 2015, 22:21 last edited by
                  #10

                  @SGaist ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -hostprefix /usr/local/qt5pi
                  same as mentioned in http://wiki.qt.io/Raspberrypi_beginners_guide

                  Development is possible at any level.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 3 Nov 2015, 22:23 last edited by
                    #11

                    That looks correct, do you have the configure summary ?

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

                    V 1 Reply Last reply 3 Nov 2015, 22:29
                    0
                    • S SGaist
                      3 Nov 2015, 22:23

                      That looks correct, do you have the configure summary ?

                      V Offline
                      V Offline
                      vish
                      wrote on 3 Nov 2015, 22:29 last edited by
                      #12

                      @SGaist

                      Configure summary

                      Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
                      Building for: devices/linux-rasp-pi-g++ (arm, CPU features: none detected)
                      Platform notes:

                              - Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
                      

                      Build options:
                      Configuration .......... accessibility audio-backend c++11 clock-gettime clock-monotonic compile_examples concurrent cross_compile dbus egl eglfs eglfs_brcm enable_new_dtags evdev eventfd freetype full-config getaddrinfo getifaddrs harfbuzz iconv inotify ipv6ifname large-config largefile linuxfb medium-config minimal-config mremap nis opengl opengles2 pcre png posix_fallocate precompile_header qpa qpa reduce_exports release rpath shared small-config system-png system-zlib threadsafe-cloexec
                      Build parts ............ libs
                      Mode ................... release
                      Using sanitizer(s)...... none
                      Using C++ standard ..... c++11
                      Using gold linker....... no
                      Using new DTAGS ........ yes
                      Using PCH .............. yes
                      Target compiler supports:
                      Neon ................. no

                      Qt modules and options:
                      Qt D-Bus ............... yes (loading dbus-1 at runtime)
                      Qt Concurrent .......... yes
                      Qt GUI ................. yes
                      Qt Widgets ............. yes
                      Large File ............. yes
                      QML debugging .......... yes
                      Use system proxies ..... no

                      Support enabled for:
                      Accessibility .......... yes
                      ALSA ................... no
                      CUPS ................... no
                      Evdev .................. yes
                      FontConfig ............. no
                      FreeType ............... yes (bundled copy)
                      Glib ................... no
                      GStreamer .............. no
                      GTK theme .............. no
                      HarfBuzz ............... yes (bundled copy)
                      Iconv .................. yes
                      ICU .................... no
                      Image formats:
                      GIF .................. yes (plugin, using bundled copy)
                      JPEG ................. yes (plugin, using bundled copy)
                      PNG .................. yes (in QtGui, using system library)
                      libinput................ no
                      Logging backends:
                      journald ............... no
                      syslog ............... no
                      mtdev .................. no
                      Networking:
                      getaddrinfo .......... yes
                      getifaddrs ........... yes
                      IPv6 ifname .......... yes
                      libproxy.............. no
                      OpenSSL .............. no
                      NIS .................... yes
                      OpenGL / OpenVG:
                      EGL .................. yes
                      OpenGL ............... yes (OpenGL ES 2.0+)
                      OpenVG ............... no
                      PCRE ................... yes (bundled copy)
                      pkg-config ............. yes
                      PulseAudio ............. no
                      QPA backends:
                      DirectFB ............. no
                      EGLFS ................ yes
                      EGLFS i.MX6....... . no
                      EGLFS KMS .......... no
                      EGLFS Mali ......... no
                      EGLFS Raspberry Pi . yes
                      EGLFS X11 .......... no
                      LinuxFB .............. yes
                      Mir client............ no
                      XCB .................. no
                      Session management ..... yes
                      SQL drivers:
                      DB2 .................. no
                      InterBase ............ no
                      MySQL ................ no
                      OCI .................. no
                      ODBC ................. no
                      PostgreSQL ........... no
                      SQLite 2 ............. no
                      SQLite ............... yes (plugin, using bundled copy)
                      TDS .................. no
                      tslib .................. no
                      udev ................... no
                      xkbcommon-x11........... no
                      xkbcommon-evdev......... no
                      zlib ................... yes (system library)

                      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.

                      Development is possible at any level.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 3 Nov 2015, 22:33 last edited by
                        #13

                        Looks good…

                        Might be a glitch when you ran make install

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

                        V 1 Reply Last reply 7 Nov 2015, 06:39
                        0
                        • S SGaist
                          3 Nov 2015, 22:33

                          Looks good…

                          Might be a glitch when you ran make install

                          V Offline
                          V Offline
                          vish
                          wrote on 7 Nov 2015, 06:39 last edited by
                          #14

                          @SGaist I tries some stuff but not able to fix it. Can u guide me how to fix this and wht could be reason for this ??

                          Development is possible at any level.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 7 Nov 2015, 21:15 last edited by
                            #15

                            Well, basically and if I understood you correctly, you are able to cross-compile without any problem, correct ? When calling make install did you have the root file system of the Pi mounted correctly ?

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

                            V 1 Reply Last reply 8 Nov 2015, 07:04
                            0
                            • S SGaist
                              7 Nov 2015, 21:15

                              Well, basically and if I understood you correctly, you are able to cross-compile without any problem, correct ? When calling make install did you have the root file system of the Pi mounted correctly ?

                              V Offline
                              V Offline
                              vish
                              wrote on 8 Nov 2015, 07:04 last edited by vish 11 Aug 2015, 07:05
                              #16

                              @SGaist I checked install log properly it should make QtWidget, QtPlateformHeaders, QtPlateformSupport, QtTest, QtOpenGL, QtPrintSupport, QtConcurrent, QtCore, QtDBus, QtGui, QtNetwork , QtPositioning, QtScript, QtSensors, QtSql , QtXml , QtXmlPatterns folders. But after finishing installation i m getting only QtConcurrent, QtCore, QtDBus, QtGui, QtNetwork , QtPositioning, QtScript, QtSensors, QtSql , QtXml , QtXmlPatterns folders in my install and similar in lib directory. So it cant install QtWidget, QtPlateformHeaders, QtPlateformSupport, QtTest, QtOpenGL, QtPrintSupport modules. I did nt find anything unusual in log.

                              Development is possible at any level.

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 8 Nov 2015, 21:14 last edited by
                                #17

                                Did you build only qtbase or all of Qt ?

                                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
                                  vish
                                  wrote on 8 Nov 2015, 21:21 last edited by
                                  #18

                                  well according to https://wiki.qt.io/RaspberryPi_Beginners_Guide i have to build and install qtbase and than other modules. So I could not finish this step and I am blocked.

                                  Development is possible at any level.

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 8 Nov 2015, 21:30 last edited by
                                    #19

                                    That's correct. Do you have libQtWidget.so somewhere in your build folder ?

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

                                    V 1 Reply Last reply 8 Nov 2015, 21:37
                                    0
                                    • S SGaist
                                      8 Nov 2015, 21:30

                                      That's correct. Do you have libQtWidget.so somewhere in your build folder ?

                                      V Offline
                                      V Offline
                                      vish
                                      wrote on 8 Nov 2015, 21:37 last edited by
                                      #20

                                      @SGaist Nope...

                                      Development is possible at any level.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 8 Nov 2015, 22:05 last edited by
                                        #21

                                        That one's really puzzling…

                                        What happens if you call make -C src/widgets in your builder ?

                                        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
                                          vish
                                          wrote on 9 Nov 2015, 21:46 last edited by
                                          #22

                                          Hi @SGaist ,
                                          I dont know what exactly was the problem. But I re cloned repo and than tried all steps and it works as expected. Could be a problem of broken download. But it neither gave me any unexpected error message not it failed. :P
                                          But now i m happy tht i wll have kernel 4.1 with qt in my pi.. thanks for your time and support man.

                                          Development is possible at any level.

                                          1 Reply Last reply
                                          0

                                          12/23

                                          3 Nov 2015, 22:29

                                          • Login

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