Qt ftp on raspberry ...
modjo756 last edited by
Hi i'm trying to use QtFtp on my raspberry but with no success !
At first, this is my config :
- raspberry pi 2 raspbian jessie with Qt5.5.1 (i use this image : http://thebugfreeblog.blogspot.fr/, an incredible man that make a driver to use qtmultimedia in HW (gpu) !!! work very well , try it !)
- my host pc is under kubuntu 15.10 64 bit, with qt 5.5.1
- use cross compile to make my programs on the rasp
Why i need QtFtp when Qt advise to use networkManager ? because with QnetworkAccessManager we can't list the tree of ftp server, create a folder ... like the QFtp class ...
At first i have downloaded the source here : https://github.com/qtproject/qtftp
To test it, i build it for my workstation, works fine !
Now try to built it for the raspberry, for information my raspberry image (jessie with qt5.5.1) is mounted here on my workstation : */opt/rpi/sysroot/ and the compil *toolchain /opt/rpi/gcc-linaro-arm-linux-gnueabihf-raspbian/
Now, i copy the source of qtftp on /opt/rpi/sysroot/usr/local/Qt-rasp2-5.5.1/qtftp-master/
make a sync before the build :
/opt/rpi/sysroot/usr/local/Qt-rasp2-5.5.1/bin/syncqt.pl -version 5.5.1
and make :
and i have this error during the compilation :
/opt/rpi/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld.gold: error: cannot open /opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so
Do you know how i can resolve this ?
koahnig last edited by
error: cannot open /opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so
Do you have a cross compiled version of "libm" in this location?
That is apparently missing.
modjo756 last edited by modjo756
Hi, i don't know if it's a crosscompiled version of 'libm'. I use the image of raspbian jessie + qt5.5.1 of this Guy -> http://thebugfreeblog.blogspot.fr ?
At first i cry that i have a problem with the image that i mount since my pc because this lib is present but have a symbolique link. To correct this i mount directly the raspberry sd card on opt/rpi/sysroot but i have the same problem. If a put this on a shell :
modjo@Linux-corei5:/opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf$ ls -l | grep libm.so
lrwxrwxrwx 1 root root 34 sept. 6 03:59 libm.so -> /lib/arm-linux-gnueabihf/libm.so.6
We can see the link ! but yet this error: cannot open /opt/rpi/sysroot/usr/lib/arm-linux-gnueabihf/libm.so
Luc4 last edited by
libm.so points to /lib/arm-linux-gnueabihf/libm.so.6. It may be wrong if your sysroot is in /opt/rpi/sysroot. I'd try to make it relative. QtFtp seems to build for me, but I didn't test it.
modjo756 last edited by
Perhaps it's the problem ! Thank's for your time lucas and your work !