IConfuguring QT for remote development on a Windows PC
-
Hello,
I'm starting again with QT on a Windows PC and would like to develop C++ programs for a Raspberry there.
I have the latest QT 12 (community) installed.
Likewise, I installed this toolchain
"https://gnutoolchains.com/raspberry/".
Is there a tutorial somewhere on how to configure QT for remote development?
Since I have often received qualified help here, I would be very happy about help.
Thank you very much
Kurt -
https://drive.google.com/file/d/1-Dd228_crhvV1VJnNjqLCAl3O6_cWeJ4/view?usp=drive_link
Above is the link to download
-
@Ronel_qtmaster
Thank you very much for your quick answer. I'll get to it tomorrow and try it out. Let's see if it still works with Qt12.
I'll let you know how it went.
If I need additional libraries on the Raspberry do I need to synchronize it again?
greeting
Kurt -
@K-Str said in IConfuguring QT for remote development on a Windows PC:
Qt12
There is no Qt12, we are currently at version 6.7...
-
@Christian-Ehrlicher you are right, I use QT-Creator 12.0.2 which is based on QT 6.6.0 (MSVC 2019, x86_64)!
Sorry. -
@Ronel_qtmaster Tthanks for your help.
But there are some differences to your QT version.
But step 6 is not really clear for me:Create a new folder called qtraspberry Go to path_of_installed_qt\Qt5.13.2\5.13.2 and copy Src folder to qtraspberry Go to qtraspberry\Src and open the file \qtbase\mkspecs\linux-arm-gnueabi- g++\qmake.conf in a textEditor Replace arm-linux-gnueabi- with arm-linux-gnueabihf- in the whole file Go to \qtbase\mkspecs\win32-g++\qmake.conf and add -U__STRICT_ANSI__ to CXXFLAGS Results should be like this:
I can not find a Src folder in the QT folder and nor qmake.conf on the PC.
Where is this? -
@K-Str Good Morining.Sorry i did not notice that you was using Qt6.Anyway, the procedure is globally the same.
Well Src folder is just the folder containing sources of Qt.When you install qt, you can select sources so that the program downloads them as well. -
@Ronel_qtmaster Thanks for your answer! can I reinstall the Src? or must I install qt completely?
-
@K-Str said in IConfuguring QT for remote development on a Windows PC:
or must I install qt completely?
No, just download Qt source code for your platform (https://download.qt.io/archive/qt/6.6/6.6.3/single/) - for Windows you need the zip archive.
-
-
@K-Str Hi.Did you install Mingw as specified in the guide?You may also verify if the version in the guide correspond to what you have downloaded.In fact, mysys helps you to run linux like command line environment in windows.
-
@Ronel_qtmaster yes I did everything as requested. The only I havn't done I did not install python. Is this the reason?
Maybe there is something wrong. because the directoryname is diffrent:
-
@Ronel_qtmaster did you take mingw with the gcc version of 4.8.1?
-
@Ronel_qtmaster , no I used this one:
mingw32-gcc12.2.0.
Is it better to use 4.8.1?
How can I remove the wrong version?