Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt ftp on raspberry ...
Forum Updated to NodeBB v4.3 + New Features

Qt ftp on raspberry ...

Scheduled Pinned Locked Moved Unsolved QtonPi
ftpnetworkaccessmajessieraspberry
5 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    modjo756
    wrote on 28 Nov 2015, 17:59 last edited by
    #1

    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

    qmake :
    /opt/rpi/sysroot/usr/local/Qt-rasp2-5.5.1/bin/qmake ./qtftp.pro

    and make :
    export PATH=/opt/rpi/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
    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 ?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on 28 Nov 2015, 20:04 last edited by
      #2

      @modjo756 said:

      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.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        modjo756
        wrote on 28 Nov 2015, 21:49 last edited by modjo756
        #3

        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

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Luc4
          wrote on 29 Nov 2015, 01:00 last edited by
          #4

          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.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            modjo756
            wrote on 29 Nov 2015, 08:18 last edited by
            #5

            Perhaps it's the problem ! Thank's for your time lucas and your work !

            1 Reply Last reply
            0

            5/5

            29 Nov 2015, 08:18

            • Login

            • Login or register to search.
            5 out of 5
            • First post
              5/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved