Cross compile and qmake persistent properties
-
Hi,
I've setup Qt6 to cross compile to ARM successfully. For some reason, a given 3rd party tool won't compile, because the configure script choose the wrong persistent property. Example:QT_INSTALL_PREFIX:/home/someone/Qt/6.2.4/Boot2Qt/raspberrypi3/toolchain/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/opt/Qt/raspi QT_INSTALL_PREFIX/raw:/opt/Qt/raspi
It uses the QT_INSTALL_PREFIX instead of QT_INSTALL_PREFIX/raw. How can I tell qmake to use /raw prefix?
Thanks and Best
Fred -
Hi,
What is that
/raw
?In any case, it does not make sense where you put it. On the left sign of the equal signal is a variable name.
-
Hi,
I've setup Qt6 to cross compile to ARM successfully. For some reason, a given 3rd party tool won't compile, because the configure script choose the wrong persistent property. Example:QT_INSTALL_PREFIX:/home/someone/Qt/6.2.4/Boot2Qt/raspberrypi3/toolchain/sysroots/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/opt/Qt/raspi QT_INSTALL_PREFIX/raw:/opt/Qt/raspi
It uses the QT_INSTALL_PREFIX instead of QT_INSTALL_PREFIX/raw. How can I tell qmake to use /raw prefix?
Thanks and Best
FredI think you should be something like:
QT_INSTALL_PREFIX_RAW:$$[QT_INSTALL_PREFIX]/raw/opt/Qt/raspi
You define a new variable with /raw and add your prefix path.
Dont know if my syntax is correct. I dont use qmake that much :-)Edit:
Also cant tell from your approach where your /raw dir is actually located. So adjust to your structure.
Btw: AFAIK you cant change the QT_INSTALL_PREFIX variable. But as I wrote above you can set your custom PREFIX -
I think you should be something like:
QT_INSTALL_PREFIX_RAW:$$[QT_INSTALL_PREFIX]/raw/opt/Qt/raspi
You define a new variable with /raw and add your prefix path.
Dont know if my syntax is correct. I dont use qmake that much :-)Edit:
Also cant tell from your approach where your /raw dir is actually located. So adjust to your structure.
Btw: AFAIK you cant change the QT_INSTALL_PREFIX variable. But as I wrote above you can set your custom PREFIXThanks a lot for your replys, to be honest, i didn't check the idea behind these variables. I don't want them and I don't need them :-D
I've configured the qt6 as follows in my build directory:
../qt6/configure -nomake examples -nomake tests -qt-host-path /opt/qt6 -prefix /opt/qt6/raspi -- /opt/qt6/raspi
These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties
-
Thanks a lot for your replys, to be honest, i didn't check the idea behind these variables. I don't want them and I don't need them :-D
I've configured the qt6 as follows in my build directory:
../qt6/configure -nomake examples -nomake tests -qt-host-path /opt/qt6 -prefix /opt/qt6/raspi -- /opt/qt6/raspi
These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties
@FredJupiter said in Cross compile and qmake persistent properties:
These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties
ok, interesting. Didn't know that this
/raw
is actually a thing.
If I understood correctly, the/raw
property is a fallback of/get
?!But I'm not the ideal person to ask this ;-)
I just thought initially your syntax is wrong and you connected the vars and dirs in a wrong way ;-) -
@FredJupiter said in Cross compile and qmake persistent properties:
These /raw variables are created magically somehow during configuration and build process. See: https://wiki.qt.io/Qmake_properties
ok, interesting. Didn't know that this
/raw
is actually a thing.
If I understood correctly, the/raw
property is a fallback of/get
?!But I'm not the ideal person to ask this ;-)
I just thought initially your syntax is wrong and you connected the vars and dirs in a wrong way ;-)@Pl45m4 Unfortunately, it's not easy as that :-D The interesting thing is, I've made another build, for another target but with basically same parameters, there is no fancy /xxx variables in qmake.