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 compile error
Forum Updated to NodeBB v4.3 + New Features

Cross compile error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 1.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.
  • S Offline
    S Offline
    Softtoon
    wrote on last edited by
    #1

    Hello

    When i run
    ./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

    i get the error below.
    I am a newbie in the world of cross compiling for my Raspberry pi. What could be the problem here

    Error:
    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/tonnie/Qt/5.4/Src/qtbase/mkspecs/devices/linux-rasp-pi-g++.

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

      Hi and welcome to devnet,

      What do RPI_TOOLCHAIN and RPI_SYSROOT contain ?

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

        Hello

        I have sent these commands
        export RPI_SYSROOT=/mnt/rasp-pi-rootfs
        export RPI_TOOLCHAIN=~/crosscompile-tools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
        Here i followed the tutorial from https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c

        In the mean time i am folling another turorial on "http://wiki.qt.io/Raspberry_Pi_Beginners_Guide" website called "Raspberry Pi Beginners Guide"

        Here you have to donwload the cross compile toolchain. I downloaded it from
        "wget http://de.sourceforge.jp/projects/sfnet_rfidmonitor/downloads/crosscompilation-resources/gcc-4.7-linaro-rpi-gnueabihf.tbz"
        When i execuut "tar -xf gcc-4.7-linaro-rpi-gnueabihf.tbz", i get this error

        bzip2: (stdin) is not a bzip2 file.
        tar: Child returned status 2
        tar: Error is not recoverable: exiting now

        I have done the file command like "file gcc-4.7-linaro-rpi-gnueabihf.tbz"
        Result : gcc-4.7-linaro-rpi-gnueabihf.tbz: HTML document, UTF-8 Unicode text, with very long lines, with CRLF, LF line terminators

        Both turorials gave me trouble :)
        My goal is to use the Raspberry pi3 B+ with QT5

        Thanks for your help.

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

          You’re downloading the page where the download should happen. You don’t have direct access to the file.

          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
          1
          • S Offline
            S Offline
            Softtoon
            wrote on last edited by
            #5

            Hello

            How do i download the file and not the HTML page in the terminal window ?

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

              The fasted it to just go on the page and wait for the download to start.

              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
              1

              • Login

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