Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. New to Qt, want to cross-compile for raspberry pi
QtWS25 Last Chance

New to Qt, want to cross-compile for raspberry pi

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.5k 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.
  • N Offline
    N Offline
    NCTinkerer
    wrote on last edited by
    #1

    I've recently downloaded Qt Creator and need help moving forward. What I want to do is develop applications using Qt Creator installed on a Win7 laptop. I've completed and tested the application on the Win7 platform, now I want to compile it for a raspberry Pi running the raspbian OS. The Qt Creator doesn't seem to have the correct compiler, etc., to get this done.
    What do I need to do to setup Qt Creator to cross compile for the raspberry Pi?

    Thanks.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leonardo.ramosantos
      wrote on last edited by
      #2

      Hi,

      You have a long path ahead... :D

      First of all. Raspbian OS is a Linux based OS. So, it's better you develop your applications on Linux (nobody develops linux application in windows).

      There is a tool for linux: Buildroot. When you configure this tool, it will generate all Qt packages for Rpi. So you just need to compile your application and test it on your board. If you connect your board in a Lan Network, you will able to debug your application in real time.

      This is a overview about what you have to do. Do more googling about this subject and tell when you can't move ahead.

      []'s

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NCTinkerer
        wrote on last edited by
        #3

        I was thinking of doing as you suggest. Installing Qt Creator on one of my Linux systems. But, even if Qt Creator is running on Linux, I'll still need the specific setup for a Raspberry Pi. So what is the purpose of cross-compiling if you have to run your IDE on the same platform as your target system?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leonardo.ramosantos
          wrote on last edited by
          #4

          Well, well, well...

          You can have the same OS, not the same platform. Your PC may be a x86 Linux Ubuntu. Your raspbery is a 32bit ARM. Because of this you have to cross-compile all your application to 32bit ARM.

          For doing this, you have a big allyie: Buildroot. It will do all the hard work for you.

          If you need some good tutorials, google can find a lot for you.

          []"s

          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