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. Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3)
Forum Update on Monday, May 27th 2025

Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
28 Posts 5 Posters 10.6k 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.
  • B Offline
    B Offline
    BadBlood
    wrote on 23 May 2017, 16:19 last edited by
    #21

    Sorry but the files was cutted. Now i have the correct one:

    https://1drv.ms/u/s!As3fa8j7GVzZl3pQPdL3ROQsNCpe

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 May 2017, 19:32 last edited by
      #22

      You can try the workaround described here.

      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
      • B Offline
        B Offline
        BadBlood
        wrote on 28 May 2017, 07:57 last edited by BadBlood
        #23

        Hi SGaist,

        I had another error but the last disappered, i will link the log file.

        https://1drv.ms/u/s!As3fa8j7GVzZl3som_ciawx9hu50

        First lines were cutted, but there are the most important about the error.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 May 2017, 20:36 last edited by
          #24

          I'd still opt for changing to a more recent version of gcc like 4.9

          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
          • B Offline
            B Offline
            BadBlood
            wrote on 29 May 2017, 05:45 last edited by
            #25

            I tried to use gcc 4.9, but it returns the error during cross compiling configuration, I linked few weeks ago. The cross compiler I chose is in the directory:

            /home/michele/opt/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin
            
            1 Reply Last reply
            0
            • B Offline
              B Offline
              BadBlood
              wrote on 12 Jun 2017, 20:08 last edited by BadBlood 6 Dec 2017, 20:10
              #26

              I was able to create a raspbian with Qt5 following the guide at this link:

              https://medium.com/@amirmann/how-to-cross-compile-qt-for-raspberry-pi-3-on-linux-ubuntu-for-beginners-75acf2a078c

              Next I put the image onto SD card, and there was all files.
              But i had problems to find raspberry with the laptop through QT5 running on that, I' m going to open an other topic for that. Thank you.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TV_man
                wrote on 9 Jul 2017, 14:28 last edited by
                #27

                If it hasn't already been noticed the path setting script checks the number of parameters passed and is expecting 1 but 2 are being passed. I changed "$#" -ne 1 to "$#" -ne 2 and it ran without the error message.

                The second parameter is used in the script so it is needed.

                However I now get an error 'Cannot run compiler '/home/sam/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++'

                (It does exist there)

                J 1 Reply Last reply 10 Jul 2017, 05:58
                0
                • T TV_man
                  9 Jul 2017, 14:28

                  If it hasn't already been noticed the path setting script checks the number of parameters passed and is expecting 1 but 2 are being passed. I changed "$#" -ne 1 to "$#" -ne 2 and it ran without the error message.

                  The second parameter is used in the script so it is needed.

                  However I now get an error 'Cannot run compiler '/home/sam/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++'

                  (It does exist there)

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 10 Jul 2017, 05:58 last edited by
                  #28

                  @TV_man said in Problem cross-compiling Qt5 from Ubuntu to Raspbian(Raspberry pi3):

                  /home/sam/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++

                  can you run it manually from a terminal?

                  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