neuronalmotion / qtrpi

An easy-to-use environment to cross-compile Qt applications for Raspberry Pi from your desktop.
MIT License
104 stars 40 forks source link

Installing 3rd party libraries #82

Closed Include-sys closed 6 years ago

Include-sys commented 6 years ago

It's actually a request. :)

I tried to install opencv libraries to local sysroot(development machine), tried both sshfs and chroot(like your bash scripts does) but failed.

There is no usr/share/arm-... path like in sshfs tutorial. https://gist.github.com/hrshovon/70612b719bfda0becde46f0b9d2dfa36

And when i tried chroot method. qemu always failed.

debian@developer:/opt/qtrpi/raspbian$ ls raspbian_latest.img sysroot sysroot-minimal raspbian_latest.zip sysroot-full debian@developer:/opt/qtrpi/raspbian$ sudo mount -o bind /proc sysroot-full/proc[sudo] password for debian: debian@developer:/opt/qtrpi/raspbian$ sudo mount -o bind /dev sysroot-full/dev debian@developer:/opt/qtrpi/raspbian$ sudo mount -o bind /sys sysroot-full/sys debian@developer:/opt/qtrpi/raspbian$ sudo chroot sysroot-full /bin/bash -c 'apt-get update' qemu-arm-static: /build/qemu-DqynNa/qemu-2.8+dfsg/translate-all.c:175: tb_lock: Assertion !have_tb_lock' failed. qemu-arm-static: /build/qemu-DqynNa/qemu-2.8+dfsg/translate-all.c:175: tb_lock: Assertion!have_tb_lock' failed. Segmentation fault

So how can I install 3rd party libraries to local sysroot?

GuillaumeLazar commented 6 years ago

No easy way to do it with qtrpi.

You can try to to compile your own qtrpi version updating the ssyroot preparation. Check the bottom of this file prepare-sysroot-full.sh

Include-sys commented 6 years ago

@GuillaumeLazar

I solved. I dont remember exactly but I run qemu successfully somehow and downloaded opencv source and compiled it then it worked.

GuillaumeLazar commented 6 years ago

Great, I close the issue.