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 while running the Qt program on linux
Forum Updated to NodeBB v4.3 + New Features

Error while running the Qt program on linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 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.
  • T Offline
    T Offline
    thippu
    wrote on 27 Sept 2018, 10:45 last edited by thippu
    #1

    Hi guys,
    I'm getting this error :

    /home/pratip/Downloads/crossCMac/crossCMac/oscilloscope: error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
    

    while running the qwt example which was created on Qt mac os and again compiled on the Qt linux.

    after I got know this error I did try

    sudo updatedb
    locate libqwt //library location was exist.
    sudo ln -s new/path  duplicate/path/libqwt 
    
    

    app not running please help me .

    J 1 Reply Last reply 27 Sept 2018, 14:41
    0
    • T thippu
      27 Sept 2018, 10:45

      Hi guys,
      I'm getting this error :

      /home/pratip/Downloads/crossCMac/crossCMac/oscilloscope: error while loading shared libraries: libqwt.so.6: cannot open shared object file: No such file or directory
      

      while running the qwt example which was created on Qt mac os and again compiled on the Qt linux.

      after I got know this error I did try

      sudo updatedb
      locate libqwt //library location was exist.
      sudo ln -s new/path  duplicate/path/libqwt 
      
      

      app not running please help me .

      J Offline
      J Offline
      JonB
      wrote on 27 Sept 2018, 14:41 last edited by JonB
      #2

      @thippu
      Running ldd /home/pratip/Downloads/crossCMac/crossCMac/oscilloscope will show you what shared libraries are missing. Doubtless that will show libqwt.so.6. You need to put that in the right place. It's impossible to know whether your "censored" sudo ln -s new/path duplicate/path/libqwt is doing the right thing.

      Furthermore, even if it does find libqwt.so.6, it is my experience that if that in turn requires another ....so library file which is not found, Linux will report the error against against the top-level libqwt.so.6 it was seeking when really it should be against the secondary .so file which that wants. So again use ldd against wherever you have put the libqwt.so.6 it finds and see what that outputs.

      T 2 Replies Last reply 28 Sept 2018, 05:33
      0
      • J JonB
        27 Sept 2018, 14:41

        @thippu
        Running ldd /home/pratip/Downloads/crossCMac/crossCMac/oscilloscope will show you what shared libraries are missing. Doubtless that will show libqwt.so.6. You need to put that in the right place. It's impossible to know whether your "censored" sudo ln -s new/path duplicate/path/libqwt is doing the right thing.

        Furthermore, even if it does find libqwt.so.6, it is my experience that if that in turn requires another ....so library file which is not found, Linux will report the error against against the top-level libqwt.so.6 it was seeking when really it should be against the secondary .so file which that wants. So again use ldd against wherever you have put the libqwt.so.6 it finds and see what that outputs.

        T Offline
        T Offline
        thippu
        wrote on 28 Sept 2018, 05:33 last edited by
        #3

        @JonB I was running this app in release mode.

        1 Reply Last reply
        0
        • J JonB
          27 Sept 2018, 14:41

          @thippu
          Running ldd /home/pratip/Downloads/crossCMac/crossCMac/oscilloscope will show you what shared libraries are missing. Doubtless that will show libqwt.so.6. You need to put that in the right place. It's impossible to know whether your "censored" sudo ln -s new/path duplicate/path/libqwt is doing the right thing.

          Furthermore, even if it does find libqwt.so.6, it is my experience that if that in turn requires another ....so library file which is not found, Linux will report the error against against the top-level libqwt.so.6 it was seeking when really it should be against the secondary .so file which that wants. So again use ldd against wherever you have put the libqwt.so.6 it finds and see what that outputs.

          T Offline
          T Offline
          thippu
          wrote on 28 Sept 2018, 06:55 last edited by
          #4

          @JonB okay, I'll show you the output after doing the

          ldd 
          

          on

          /usr/local/qwt-6.1.3/lib
          
          T 1 Reply Last reply 28 Sept 2018, 07:14
          0
          • T thippu
            28 Sept 2018, 06:55

            @JonB okay, I'll show you the output after doing the

            ldd 
            

            on

            /usr/local/qwt-6.1.3/lib
            
            T Offline
            T Offline
            thippu
            wrote on 28 Sept 2018, 07:14 last edited by thippu
            #5

            @thippu
            I did do like this:

            pratip@debian:/usr/local/qwt-6.1.3/lib$ ldd /usr/local/qwt-6.1.3/lib 
            

            output was:

            ldd: /usr/local/qwt-6.1.3/lib$: not regular file
            
            J 1 Reply Last reply 28 Sept 2018, 09:20
            0
            • T thippu
              28 Sept 2018, 07:14

              @thippu
              I did do like this:

              pratip@debian:/usr/local/qwt-6.1.3/lib$ ldd /usr/local/qwt-6.1.3/lib 
              

              output was:

              ldd: /usr/local/qwt-6.1.3/lib$: not regular file
              
              J Offline
              J Offline
              JonB
              wrote on 28 Sept 2018, 09:20 last edited by
              #6

              @thippu
              Please take the time to at least go man ldd before you ask! Does ldd say anywhere it accepts a directory? No? Hence your error message.

              1 Reply Last reply
              0

              1/6

              27 Sept 2018, 10:45

              • Login

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