<div dir="ltr"><div><div><div><div><div><div>I'm building an application on a linux host computer for a target imx6-based device. I built the Qt version myself configured for cross-compilation. So far I've only used qbs via QtCreator and the kits configured there, and this works fine.</div><div><br></div><div>When using cross-compilation, the host tools such as qmake are separated from the installed Qt headers and libraries that are installed into the target device's sysroot.</div><div><br></div><div>/hostqt contains the host tools</div><div>/targetsysroot is the root of the target sysroot, in my case i've got Qt installed in</div><div>/targetsysroot/opt/qt<br></div><div><br></div>I'll have to build from a build server as well, and now I tried running qbs from the command line, setting up the qt version I'm using using "qbs setup-qt". I got some warnings from it, is this a bug or can it be ignored? Seems like setup-qt is expecting to find the Qt libraries in the path relative to where qmake is installed.<br></div><div><br></div>qbs setup-qt /hostqt/bin/qmake crossprofile<br><br></div>gives<br><br>Creating profile 'crossprofile'.<br>Skipping prl file '/targetsysroot/opt/qt/lib/libQt5QmlDevTools.prl', because it cannot be opened (No such file or directory).<br>Skipping prl file '/targetsysroot/opt/qt/lib/libQt5Bootstrap.prl', because it cannot be opened (No such file or directory).<br>WARNING: You need to set up toolchain information before you can use this Qt version for building. However, no toolchain profile was found. Either create one using qbs-setup-toolchains and set it as this profile's base profile or add the toolchain settings manually to this profile.<br><br></div>The files that qbs is looking for here are not in the target rootfs, but rather in<br><br></div>/hostqt/lib</div><div><br></div><div>Would qbs have been able to figure out the toolchain if the files were found properly? Building using this qmake binary creates proper makefiles for cross compilation without any further configuration necessary, so the information IS there somewhere. <br></div><div><br></div><div>Cheers,</div><div>Ola</div><div><br></div><br><div><div><div><div><div><div><div><br> </div></div></div></div></div></div></div></div>