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. Cross - compilation error Qt5 for Raspberry Pi 2 [SOLVED]
QtWS25 Last Chance

Cross - compilation error Qt5 for Raspberry Pi 2 [SOLVED]

Scheduled Pinned Locked Moved Mobile and Embedded
qt5cross-compileraspberry pi 2
6 Posts 2 Posters 3.9k Views
  • 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.
  • MarKSM Offline
    MarKSM Offline
    MarKS
    wrote on last edited by MarKS
    #1

    I was following this link
    http://exploreembedded.tumblr.com/post/115333857238/guide-to-cross-compile-qt-54-for-the-raspberry-pi to setup my cross tool chain for Raspberry pi 2.
    I ran into error when i tried to execute
    ./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$RPI_TOOLCHAIN -sysroot $RPI_SYSROOT -opensource -confirm-license -optimized-qmake -reduce-exports -release -make libs -prefix /usr/local/qt5pi -skip qtwebkit

    This is the Qt Open Source Edition.

    You are licensed to use this software under the terms of
    the Lesser GNU General Public License (LGPL) versions 2.1.
    You are also licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) versions 3.

    You have already accepted the terms of the Open Source license.

    Creating qmake...
    ..Done.
    Running configuration tests...
    Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
    Note: PKG_CONFIG_SYSROOT_DIR automatically set to /mnt/rasp-pi-rootfs

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    The OpenGL ES 2.0 functionality test failed!
    Use of pkg-config is not enabled, maybe you want to pass -force-pkg-config?
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in
    /home/ya/Qt/5.5/Src/qtbase/mkspecs/devices/linux-rasp-pi2-g++.
    ya@ya-pc:~/Qt/5.5/Src/qtbase$ make
    make: *** No targets specified and no makefile found. Stop.

    Tried to find a way around on the internet but couldn't get it working.

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

      Hi,

      Did you mount the Raspberry Pi root file system in /mnt/rasp-pi-rootfs ?

      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
      • MarKSM Offline
        MarKSM Offline
        MarKS
        wrote on last edited by
        #3

        I am getting this :

        ya@ya-pc:~$ sudo mount –o loop,offset=62914560 /Downloads/2015-05-05-wheezy-raspbian.img /mnt/rasp-pi-rootfs
        Usage: mount -V : print version
        mount -h : print this help
        mount : list mounted filesystems
        mount -l : idem, including volume labels
        So far the informational part. Next the mounting.
        The command is `mount [-t fstype] something somewhere'.
        Details found in /etc/fstab may be omitted.
        mount -a [-t|-O] ... : mount all stuff from /etc/fstab
        mount device : mount device at the known place
        mount directory : mount known device here
        mount -t type dev dir : ordinary mount command
        Note that one does not really mount a device, one mounts
        a filesystem (of the given type) found on the device.
        One can also mount an already visible directory tree elsewhere:
        mount --bind olddir newdir
        or move a subtree:
        mount --move olddir newdir
        One can change the type of mount containing the directory dir:
        mount --make-shared dir
        mount --make-slave dir
        mount --make-private dir
        mount --make-unbindable dir
        One can change the type of all the mounts in a mount subtree
        containing the directory dir:
        mount --make-rshared dir
        mount --make-rslave dir
        mount --make-rprivate dir
        mount --make-runbindable dir
        A device can be given by name, say /dev/hda1 or /dev/cdrom,
        or by label, using -L label or by uuid, using -U uuid .
        Other options: [-nfFrsvw] [-o options] [-p passwdfd].
        For many more details, say man 8 mount .

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

          What do you get with:
          mount -v -o offset=62914560 -t ext4 /Downloads/2015-05-05-wheezy-raspbian.img /mnt/rasp-pi-rootfs
          ?

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

          MarKSM PheonixP 2 Replies Last reply
          1
          • SGaistS SGaist

            What do you get with:
            mount -v -o offset=62914560 -t ext4 /Downloads/2015-05-05-wheezy-raspbian.img /mnt/rasp-pi-rootfs
            ?

            MarKSM Offline
            MarKSM Offline
            MarKS
            wrote on last edited by
            #5

            @SGaist Thank you for the help. I checked that the /mnt/rasp-pi-rootfs was not mounted properly so hence the error. SOLVED.

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

              Good !

              Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

              Also, while browsing the forum, consider up-voting answer that helped you, that will make them easier to find for everybody :)

              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