Results 1 to 4 of 4

Thread: how to run it?

  1. #1
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default how to run it?

    Hello

    I have a really simple question. I made a runnable programm file with Qt4.0 under a Linux environment. Now I would like to run this file on an other Linux environment, actually on one, where there is no Qt 4.0 (only Qt 3.2). I cannot do this, I got an error message:
    ./ulti-gui: error while loading shared libraries:
    libQtGui_debug.so.4: cannot open shared object file:
    No such file or directory
    My programm's project files and makefiles were mainly automatically generated with the commands:
    qmake -project
    qmake
    (I added only one line manually to the project file : QT += network)
    and than I just used make to create the runnable.
    So what should I do to be able to run it on other Linux systems?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

  3. #3
    Join Date
    Mar 2006
    Posts
    10
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to run it?

    Thanks

    I tried the static-linking method. I did everything according to the tutorial, but it still does not seem to work. At least ldd says exactly the same as before. Also, very strangely, the newly created executable is much smaller than the old one. Should'nt it be rather bigger?
    There is also a strange passage in the above mentioned tutorial. I think about this:

    cd /path/to/Qt
    ./configure -static -prefix /path/to/Qt <other parameters>
    make sub-src

    Than it says:
    We specify the prefix so that we do not overwrite the existing Qt installation

    But if we specify the prefix to be the same don't we just overwrite the existing installation?

    Well if I have time I can still try the shared librarys method. However...

    Thanks for your answers
    Peter

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to run it?

    It means you didn't statically compile Qt or at least didn't statically link your app with it. You should compile static Qt libs and make sure you do link with them and not with the shared version. If you use the same prefix for this installation, you might need to move the shared libs out of the way, so it might prove better to use some other prefix. And remember that you can only make the sub-src target to get the libs compiled. It should finish in much less time then.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.