User Details
- User Since
- Apr 22 2020, 10:47 AM (261 w, 4 h)
- Availability
- Available
Apr 30 2020
Ah, right. If you are using a normal sysroot for system libs, but conan for some libs then it makes sense!
Though... How does it come that you do not have SYSROOT set in your case? Won't that break in other cases?
The Build worked. So this solves the issue for me!
Apr 29 2020
looks good! yours is probably a bit more "CMakeish"! So feel free to continue with that one and close this.
My reason is basically the same. Will try this version too.
Hi @dfaure. It looks pretty much the same and I think it should work for us. I will kick off a build to confirm.
Apr 23 2020
Not having done much cross-compilation-library-setups naively I would have thought that when building a library which uses ECMGeneratePriFile and preparing it for cross-compilation, the installation prefix would be hardcoded into the generated artifacts.. Seems that instead files are relocated sometimes, changing their path & prefix, or tools snipping of some things?
Apr 22 2020
The SYSROOT variable should not (directly) impact that. The install directory is configured by ECM_MKSPECS_INSTALL_DIR, which usually will point to /usr/lib/mkspecs/modules/ on Linux. For a cross-compile toolchain it will however be additionally prefixed with separate path. But Qt and qmake will also be configured with that prefix so those know to lookup the mkspecs dir under that prefix. Issuing QT += <module> can then trigger the including of the include and lib paths from the .pri generated by this code. So the case I am trying to fix with this patch is the case where the .pri is found (so ECM_MKSPECS_INSTALL_DIR was specified correctly) but now the libs and include paths are pointing to /usr/{include,lib} and not to <cross-compile-prefix>/usr/{include,lib}. Now since <cross-compile-prefix> can differ depending on the installation dir of the tool chain it may not be possible to know that path during compile / install time. However, we can assume that Qt / qmake will know about the sysroot (which is the prefix essentially). So as long qmake is configured for the cross compile our Qt module now should be too.
will reopen using arc for preserving mail / git metadata