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. Cross-Compile Tutroials, Getting Stuck
Forum Updated to NodeBB v4.3 + New Features

Cross-Compile Tutroials, Getting Stuck

Scheduled Pinned Locked Moved QtonPi
4 Posts 4 Posters 4.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.
  • J Offline
    J Offline
    JBaumbach
    wrote on last edited by
    #1

    Hi Everyone,

    I have tried several tutorials on setting up cross-compiling for the Raspberry Pi, but ran into a brick wall every time. Here are links to two popular tutorials I have tried and a short log where things go south:

    http://qt-project.org/wiki/RaspberryPi_Beginners_guide

    user@ubuntuvm:~/raspberry$ tar -xf gcc-4.7-linaro-rpi-gnueabihf.tbz
    bzip2: (stdin) is not a bzip2 file.
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now

    https://www.ics.com/blog/building-qt-5-raspberry-pi

    user@ubuntuvm:~/raspberry$ wget http://swap.tsmt.eu/gcc-4.7-linaro-rpi-gnueabihf.tbz
    --2014-09-05 14:47:14-- http://swap.tsmt.eu/gcc-4.7-linaro-rpi-gnueabihf.tbz
    Resolving swap.tsmt.eu (swap.tsmt.eu)... 5.39.84.121
    Connecting to swap.tsmt.eu (swap.tsmt.eu)|5.39.84.121|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2014-09-05 14:47:15 ERROR 404: Not Found.

    Can anyone help me figure this out and get QT5 up and cross-compiling on the Raspberry Pi?

    I have Ubuntu running in a VM under Windows 7 and the latest Raspberry Pi. Ideally I would like to develop under Windows, but if I need a flavor of Linux, so be it. I am a .Net developer with limited Linux experience, so this has been quite the learning curve for me.

    Thanks!

    Joe

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      bq. Connecting to swap.tsmt.eu (swap.tsmt.eu)|5.39.84.121|:80… connected.
      HTTP request sent, awaiting response… 404 Not Found
      2014-09-05 14:47:15 ERROR 404: Not Found.

      The Toolchain is not present at the location and hence the error and so not downloaded. Check the size of it.
      When you run the tar extract command, it will obviously fail.

      Try this "link":http://sourceforge.net/projects/rfidmonitor/files/crosscompilation-resources/gcc-4.7-linaro-rpi-gnueabihf.tbz/download for the toolchain. I checked the md5sum of this tar file with the one i had downloaded earlier from http://swap.tsmt.eu and it matches so they are identical.

      157

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fb29
        wrote on last edited by
        #3

        Hi Joe,

        try this
        wget https://www.dropbox.com/s/sl919ly0q79m1e6/gcc-4.7-linaro-rpi-gnueabihf.tbz

        It should work

        F@b

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LongChair
          wrote on last edited by
          #4

          You can also use the toolchain provided by raspberry pi foundation https://github.com/raspberrypi/tools.

          I have managed to cross compile qt5.4 in release, compiling in debug will fail with the following error : http://pastebin.com/M5KrCN1p

          Then if i use the release build, any project using QWebView will segfault (ie browser sample).

          Anyone experienced this ?

          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