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

deploy-qtrpi.sh "unable to locate libinput5" #69

Open traviezo opened 7 years ago

traviezo commented 7 years ago

Good afternoon, I'm trying to run the deploy-qtrpi.sh but I get the error "unable to locate libinput5". I looked into the script and it is basically the following command line that causes the error: ssh $TARGET_HOST 'sudo apt-get install -y libts-0.0-0 libinput5 fontconfig' I was looking to download manually the libinput5 library to the raspian Jessie version I have but it seems that since it depends on other packages the manual installation is halted due to these dependencies missing. Would you please tell me if there is anything I may have overlooked while running this script. Any help would be greatly appreciated. Thank you.

franselectro commented 7 years ago

Hello, got same problem on brand new install stretch raspbian

Raspbian Stretch with desktop with desktop based on Debian Stretch Version: August 2017 Release date: 2017-08-16 Kernel version: 4.9

E: Unable to locate package libinput5
rm: cannot remove '/usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0': No such file or directory
rm: cannot remove '/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0': No such file or directory

I'm trying again with ./init-qtrpi-full.sh

EDIT: Full init doesn't work either :(

Best regards,

franselectro commented 7 years ago

Don't know if it could solve traviezo problem also, but I manage to fix the missing library by doing following steps (should no be accurate as I tried so many things...): apt-get install libx11-dev apt-get remove libgles2-mesa --purge (without removing dependencies) sudo apt-get install libgles2-mesa libgles2-mesa-dev

GuillaumeLazar commented 7 years ago

QtRpi expect a "Raspbian Jessie" version. Since august 2017, Raspbian switched from Debian Jessie to Debian Stretch.

Two solutions:

Hoangvietcuong commented 6 years ago

thanks GuillaumeLazar for your cmt, I'm using Raspbian stretch version and I got same problem on brand new install stretch raspbian.E: Unable to locate package libinput5 rm: cannot remove '/usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0': No such file or directory

Edit: I seached libinput in https://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=libinput5&searchon=all and the result was no package name libinput 5, now it was libinput10. Then I fixed the script in deploy-qtrpi.sh : ssh $TARGET_HOST 'sudo apt-get install -y libts-0.0-0 libinput5 fontconfig' to ssh $TARGET_HOST 'sudo apt-get install -y libinput10 fontconfig' and it worked. Hope it help.