I think i have setup the sysroot correctly. In the "Preferences" -> "Kits" and under the Sysroot, i have defined:
/opt/fsl-imx-wayland/6.6-scarthgap-imx-full-image/sysroots/cortexa7t2hf-neon-poky-linux-gnueabi
@kingfranz said in cross compiling for ubuntu 21.10 on raspberry pi 4:
/usr/lib, /usr/include and /opt
Yes, you do not have to copy whole root file system.
"I haven't found any info of what is needed" - what is needed heavilly depends on what parts of Qt you want to build. What you can do is: run configure with your current sysroot, see which tests fail and for those you need check why they fail (check configure.log file) and install missing dev packages.
@glassez Well, brief is brief. That's what I said. After all, connect returns a boolean result, to tell (briefly) if it has succeeded or failed. Deliberate and consequent ignorance of such results in class constructors is a gamble. If you believe that the reason may be OpenWRT, so be it. I tend to believe in (and briefly summarize) what I see.
Thank you jsulm.
I tried rsync of target's usr/lib and /usr/include, and set compiler which comes from toolchain. But I didn't success compile.
So I gave up to cross compile. It is too difficult for me.
I'll try other way to make app with gui ( e.g. Web application style (flask, django ...))
@JKSH Thank you. I had hoped that there was a simpler way I didn't know about, maybe twerk some configure options and it'll enable and build xcb... But if there's not there's not, I'll just cross compile xcb as you and Christ both suggested.