Results 1 to 4 of 4

Thread: Qt libraries on server ?

  1. #1
    Join Date
    Feb 2009
    Posts
    7
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt libraries on server ?

    I have write some cgi-programs using Qt. These "scripts" are build with QCore and QSql and without gui.
    On computer with Kubuntu it works fine, but now I would like to transfer that’s programs to the server without Qt.
    Is it possible (and how) to copy necessary libraries in ~/lib and to set environment to programs works ?

    Thanks in advance,

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt libraries on server ?

    Hava a look at the "Deployment" section of the Qt documentation.

    In general, you don't need to set anything up for the program to work, just include all the libraries necessary.

  3. #3
    Join Date
    Feb 2009
    Posts
    7
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt libraries on server ?

    Quote Originally Posted by rexi View Post
    In general, you don't need to set anything up for the program to work, just include all the libraries necessary.
    Problem is that my program has hard-coded paths to libraries to /usr/lib (I don't have access to that folder on server). I only want to program work with libraries at ../ .

    I have read mentioned documentations and all that I have found that could help is use of file qt.conf . It is unclear to me how this should be used. Existence of this file during compilation doesn't make any difference. The same situation is as while runtime.

  4. #4
    Join Date
    Feb 2009
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt libraries on server ?

    What do you mean with hardcoded? You load the libs at runtime from your code or you used the linker flag to specify the /usr/lib location?

    If it is the ladder one then I think you can just copy the .so files to the executable directory.

Similar Threads

  1. Replies: 3
    Last Post: 29th November 2009, 20:24
  2. How to ping a server ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 23rd April 2007, 11:27
  3. Qt 3.3 libraries
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st December 2006, 17:25
  4. How a server can write "Hello" to a browser ?
    By probine in forum Qt Programming
    Replies: 2
    Last Post: 1st December 2006, 14:43
  5. synching client readings to server output
    By OnionRingOfDoom in forum Qt Programming
    Replies: 14
    Last Post: 28th January 2006, 18:15

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.