Closed Margelator closed 2 years ago
Did you checked if all the folders rysnced properly before compiling? Also, did you make any changes to instructions given in our guide? And finally what's your environment(Host OS, Target OS, Host machine, Target machine)?
Target machine? (exact raspberry pi model)
Yes,i checked. no change. Host OS:Ubuntu 20.04.4 LTS Target OS:Raspberry Pi OS with desktop bullseye. Host machine: x86_64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz Target machine: Raspberry Pi 4B
Looks like sysroot issue. Can you paste the URL or Name(compressed file name) of Toolchain you downloaded from sourceforge for compiling?
You setup is fine, but sysroot is problematic. You either missed a step or sysroot isn't properly configured. Can you go to rootfs
folder and run this command:
tree -H ./ > result.html
Then paste result.html
here. Also paste the content of PI.cmake
file.
OK. sysroot_result.html url is here: https://t.wss.ink/f/8acc8co2ey5 home_user_result.html url is here: https://t.wss.ink/f/8accrd68tzh sorry,i don't know PI.cmake
sorry,i don't know PI.cmake
Aren't you following this guide? https://github.com/abhiTronix/raspberry-pi-cross-compilers/wiki/Cross-Compiler-CMake-Usage-Guide-with-rsynced-Raspberry-Pi-32-bit-OS#cross-compiler-cmake-usage-guide-with-rsynced-raspberry-pi-32-bit-os
No, I only follow this guide: https://github.com/abhiTronix/raspberry-pi-cross-compilers/blob/master/QT_build_instructions.md
Then this issue is cannot be resolved currently, as QT is broken for new bullseye OS since FAKE KMS is no longer available for this OS, See #101, we need to switch to alternatives. But you can try bare-minimum example given in https://github.com/abhiTronix/raspberry-pi-cross-compilers/wiki/Cross-Compiler-CMake-Usage-Guide-with-rsynced-Raspberry-Pi-32-bit-OS#cross-compiler-cmake-usage-guide-with-rsynced-raspberry-pi-32-bit-os to check if Toolchain works or not.
OK, Thank you very much for your reply.
I'm closing this now, and will be resolved with #101 and other related issues.
ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.