Can't setup Qt version (and kit) with cross-compiled Qt6 in QtCreator
-
Hi!
I just cross-compiled Qt6 (6.3.0-beta1) for QRM64. The cross-compilation went fine. But now I'm facing some issues in QtCreator (6.0.2). I'm trying to add my newly compiled Qt libraries (Tools -> Options ->Kits -> Qt Version) by clicking the "Add..." button.
Before when I cross-compiled Qt5 I just selected my qmake and the libraries was added. But since Qt6 there are no host version of qmake built when doing a cross-compilation. So to my question. How am I suppose to add my Qt libraries and create a kit so I can use QtCreator to cross-compile an application?
-
One step forward - but still not happy.
I found that one misstake was to have the cmake flag "-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON" set. That generates the tools for my ARM64 platform. But when removing this I get a script file of qmake.
That script will call med host Qt:s qmake with another configuration.
Running that from the command line works fine. For exampleqmake -query
return correct paths for my cross-compilation.But when using this qmake inside QtCreator i get the result.
Invalid Qt version