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?
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
Code:
#!/bin/bash
INSTALL_FULLPATH=$(readlink -f "$0")
INSTALL_PATH=$(dirname "$INSTALL_FULLPATH")
LIB_PATH="$INSTALL_PATH"/lib
BIN_PATH="$INSTALL_PATH/bin"
export LD_LIBRARY_PATH="$LIB_PATH":$LD_LIBRARY_PATH
"$BIN_PATH"/program "$@"
Cheers,
_