Reputation: 121
I'm looking for a way to cross-compile my C++ project in Qt-Creator. I have the arm-gcc set up and ready, but i cannot figure out how to setup the right kit for building in qt-creator.
Does anyone have a working kit config for that?
Thank you very much.
Upvotes: 1
Views: 5411
Reputation: 11
To build a custom kit for cross-compilation in Qt Creator, you have to have the toolchain (which you have) and a cross compiled Qt library.
If you do not have a cross compiled Qt library, there's a wiki article to building Qt for Raspberry Pi. It also explains how to set up a kit.
To sum it up though in case those who are similarly confused.
Under Options > Build & Run > Compilers, add your toolchain by pointing by locating your arm-linux-gcc or similar compiler.
Then under Qt Versions tab, add the path to your cross-compiled qt library by locating the subseqent cross-compiled qmake binary.
Finally, you bring those items together under the Kits tab where you add a kit, name it, select your compiler well as your Qt version you added.
Upvotes: 1