nerves-web-kiosk / webengine_kiosk

Qt WebEngine-based kiosk
Other
73 stars 14 forks source link

Kiosk System on RPi 0 #33

Open MAkcanca opened 3 years ago

MAkcanca commented 3 years ago

I'm aware it would be much slower but how can we achieve this? When I manually add webengine_kiosk to deps and use nerves_system_rpi0, it builds for x86_64 not ARM. Possibly related to this nerves-web-kiosk/webengine_kiosk#29 although they don't exactly explain how did they solve it. How can I port this into RPi0? I know it's possible to do it since there are tutorials explaining how to achieve this on Raspbian. Is this happening because it's using my computers Qt and not an arm based Qt?

Any help is appreciated. Thanks!

pavels commented 3 years ago

Hi

the main problem was incompatibility with gnueabi based toolchain (soft FP) used in older nerves images, which is now gone. Modern nerves images all uses gnueabihf so it may actually work - maybe.

You will need custom nerves image for this.

If you want to try yourself, you can take this https://github.com/nerves-web-kiosk/kiosk_system_rpi3 as base and modify it according to this https://github.com/nerves-project/nerves_system_rpi0 and than try to build the image.

MAkcanca commented 3 years ago

What is the difference between kiosk_system_rpi3 and nerves_system_rpi3 ? I'm trying to figure out what should I change.

MAkcanca commented 3 years ago
Got:
 readelf:Advanced Micro Devices X86-64;0x0

Expecting:
 readelf:ARM;0x5000400, Version5 EABI, hard-float ABI

This file was compiled for the host or a different target and probably
will not work.

mix firmware throws this error. So in somewhere I must specify qt to compile for arm instead of x86-64?