Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error_cannot open shared object file: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Error_cannot open shared object file: No such file or directory

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.7k 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.
  • K Offline
    K Offline
    Kycho
    wrote on last edited by
    #1

    I compiled the 'enumerator' example on another device.
    I saw this error code.

    error code

    /home/jiminkim/Qt/Examples/Qt-5.11.2/serialport/enumerator/enumerator: error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory
    11:35:42: Application finished with exit code 127.
    

    I found 'libQt5SerialPort.so.5' in the 'lib' folder.

    I do not know how to solve this problem.

    Please help me.

    1_1543545938984_스크린샷, 2018-11-30 11-36-23.png 0_1543545938980_스크린샷, 2018-11-30 11-41-07.png

    jsulmJ 1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Did you change the name of the *.so files ? I see so many serial so files in your directory. While compiling did you give different path for LIBS by chance ?

      Just to check it that qt is working, are you able to launch simple Qt app from Qt Creator ?

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      K 1 Reply Last reply
      1
      • K Kycho

        I compiled the 'enumerator' example on another device.
        I saw this error code.

        error code

        /home/jiminkim/Qt/Examples/Qt-5.11.2/serialport/enumerator/enumerator: error while loading shared libraries: libQt5SerialPort.so.5: cannot open shared object file: No such file or directory
        11:35:42: Application finished with exit code 127.
        

        I found 'libQt5SerialPort.so.5' in the 'lib' folder.

        I do not know how to solve this problem.

        Please help me.

        1_1543545938984_스크린샷, 2018-11-30 11-36-23.png 0_1543545938980_스크린샷, 2018-11-30 11-41-07.png

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Kycho Do you start your app from QtCreator?
        If not you first need to deploy it, see "Creating the Application Package" in http://doc.qt.io/qt-5/linux-deployment.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • dheerendraD dheerendra

          Did you change the name of the *.so files ? I see so many serial so files in your directory. While compiling did you give different path for LIBS by chance ?

          Just to check it that qt is working, are you able to launch simple Qt app from Qt Creator ?

          K Offline
          K Offline
          Kycho
          wrote on last edited by Kycho
          #4

          @dheerendra
          Thank you for your reply.
          1.I did not modify the path or name.
          2. It runs fine on my computer where QT is installed, but I get an error when remote compiling to an external device.

          jsulmJ 1 Reply Last reply
          0
          • K Kycho

            @dheerendra
            Thank you for your reply.
            1.I did not modify the path or name.
            2. It runs fine on my computer where QT is installed, but I get an error when remote compiling to an external device.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Kycho How do you deploy your app to your device? Do you have Qt libs on your device?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

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