Results 1 to 2 of 2

Thread: Deployment under linux platform

  1. #1
    Join Date
    Mar 2014
    Posts
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Deployment under linux platform

    I want to deploy my first software under linux platforms.
    a lot of distribution does not support Qt5 yet.
    so i need to include runtime libraries in my program
    my question is:
    where can i find shared libraries (.so) files? (libQt5Gui.so, libQt5Core.so, ... )
    and should i put them in the same compiled program directory or somewhere else?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Deployment under linux platform

    You can put the into the same directory as the executable or in any subfolder of your install path, e.g. a "lib" subdirectory.

    Your application's start script then sets the $LD_LIBRARY_PATH variable such that this directory is part of the search path for libraries.

    Something like
    Qt Code:
    1. #!/bin/bash
    2. INSTALL_FULLPATH=$(readlink -f "$0")
    3. INSTALL_PATH=$(dirname "$INSTALL_FULLPATH")
    4. LIB_PATH="$INSTALL_PATH"/lib
    5. BIN_PATH="$INSTALL_PATH/bin"
    6.  
    7. export LD_LIBRARY_PATH="$LIB_PATH":$LD_LIBRARY_PATH
    8.  
    9. "$BIN_PATH"/program "$@"
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

Similar Threads

  1. Replies: 9
    Last Post: 23rd May 2014, 16:40
  2. Deployment Linux Tutorial Tanslation for Newbie
    By mergele in forum Installation and Deployment
    Replies: 2
    Last Post: 9th September 2013, 09:04
  3. Deployment in Linux
    By sanchitsamuel in forum Installation and Deployment
    Replies: 7
    Last Post: 26th August 2013, 11:52
  4. Linux deployment issue, dependency not satisfiable.
    By skepticalgeek in forum General Programming
    Replies: 1
    Last Post: 29th November 2010, 14:23
  5. Replies: 3
    Last Post: 13th October 2009, 16:31

Tags for this Thread

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.