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 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 .

    JonBJ 1 Reply Last reply
    0
    • T thippu

      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 .

      JonBJ Online
      JonBJ Online
      JonB
      wrote on 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
      0
      • JonBJ JonB

        @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 last edited by
        #3

        @JonB I was running this app in release mode.

        1 Reply Last reply
        0
        • JonBJ JonB

          @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 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
          0
          • T thippu

            @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 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
            
            JonBJ 1 Reply Last reply
            0
            • T thippu

              @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
              
              JonBJ Online
              JonBJ Online
              JonB
              wrote on 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

              • Login

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