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. Error while loading shared libraries during cross-compiling

Error while loading shared libraries during cross-compiling

Scheduled Pinned Locked Moved Solved QtonPi
cross-compiling
4 Posts 2 Posters 2.3k Views
  • 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.
  • F Offline
    F Offline
    feniks_fire
    wrote on 23 Aug 2016, 13:37 last edited by
    #1

    Well if I add this in my *.pro file:

    QT += core
    

    I have error when I try cross-compiling:

    error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
    

    Anyone knows the solution? Maybe I must installing some library in rpi?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 23 Aug 2016, 20:43 last edited by
      #2

      Hi,

      Did you cross-compile Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        feniks_fire
        wrote on 24 Aug 2016, 08:23 last edited by feniks_fire
        #3

        I not very understand what you mean.
        I think the raspberry don't have the library, maybe install qt in raspberry would help?

        1 Reply Last reply
        0
        • F Offline
          F Offline
          feniks_fire
          wrote on 24 Aug 2016, 18:09 last edited by
          #4

          Yeah, I have right. I copy all Qt library to RPI and use this in rpi terminal:

              export LD_LIBRARY_PATH="/home/pi/QtBase-5.7.0/lib"
              ./Test
          

          and everything work.
          Tomorrow I'll try just install qt in rpi, and this should work without terminal.
          Another topic solved.

          1 Reply Last reply
          0

          2/4

          23 Aug 2016, 20:43

          • Login

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