Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT Build for Raspberry 3B on Windows 10



  • Hi,
    I made a GUI on my Windows 10 pc which communicates to my main programm through TCP IP and it works perfect.
    But now I want to run my GUI on a RaspberryPi. The problem -> I have no idea how to build the QT Application for Raspi on my Windows PC.
    I´m always programming/working on windows so I have no real experience with Linux.
    In VisualStudio there is an option to add a Raspi to the Project (for example a C++ Console application) to cross compile it really easy.
    Is there a option in QT-Creator to do the same?

    I hope you guys can help me.

    Best regards,
    Leon


  • Lifetime Qt Champion

    @ElPadre said in QT Build for Raspberry 3B on Windows 10:

    I have no idea how to build the QT Application for Raspi on my Windows PC

    It would be easier to build your application directly on RaspberryPi.
    Simply install needed Qt packages there using "app install" and build your app.
    Doing cross compilation on Windows is difficult to set up (it is easier to cross compile from Linux to Linux).
    I have no experience with that, can't help.



  • Hi, thanks for your answer! Ok that sounds good but which files of the project do i have to copy to build them on the raspi? And won't be there any problems with missing libs because I made the project on windows?


  • Lifetime Qt Champion

    @ElPadre said in QT Build for Raspberry 3B on Windows 10:

    but which files of the project do i have to copy to build them on the raspi?

    Well, all the files belonging to your project (except *.pro.user file).

    "And won't be there any problems with missing libs because I made the project on windows?" - no, because you will rebuild your app. You, of course, need to install needed libs and their dev packages on RaspberryPi.



  • Oh wow ok I will try it.
    I will tell you if it workes.


Log in to reply