Google some did not understand , heroes who came here to explain .
please say a little more detail .
------ Solution ---------------------------------------- ----
one way is to put your program , and use the Qt library , packaged into a tar and then publish
Another way is to publish your program into a deb or rpm and other formats , and then package management system handles dependency
------ Solution ----------- ---------------------------------
+1
----- - Solution --------------------------------------------
methods one is the most simple, static compilation. How no one thought of this ?
Second method, dynamic linking , then you need to file executable files and so on together , and then write a script , the script is run after it. To the same file name , add . Sh
script below.
#!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
LD_LIBRARY_PATH=$dirname
export LD_LIBRARY_PATH
$dirname/$appname "$@"
Reference Links
Deploying an Application on X11 Platforms
BTW: CSDN recent study on the role of public opinion . Replies everyone abreast of a wizard . If the floor statically linked mentioned , a lot of people will mention .
It seems the role of the first floor is still very great , and of course mighty oriented. For example zhu_xz
------ eference ------------------------------------ ---
other computer is a linux system or windows system , if the windows system , you also installed on windows QT, and then take over the code to compile a release version, and then bring the QT library to be published a few and then look at your program uses the above module , use the database to bring the database if those dll on it. .
------ eference --------------------------------------- < br>
In the Linux system , the machine is not installed QT, how to do it
------ eference -------------------- -------------------
LINUX in QT wrote a program , and now want to put the QT is not installed on the computer running , the same Linux system , ask how QT release program ?
Google some did not understand , heroes who came here to explain .
please say a little more detail .
------ eference --------------------------------------- < br> qt few qt3 library on a mtqt
qt4 also have several core gui library copy past on the line
------ eference ----------------------- ----------------
grace . The release of those few QT library copy with the past can be, and the other to see what modules you use , put together with the libraries that module next copy past just fine.
------ eference --------------------------------------- < br> LS +1
There is a way that you can look at your first ldd program depends on what the QT libraries , qt qt libraries are beginning with the prefix , and then write a sh script that will deploy qt library systems usr / lib directory
------ eference -------------------------------------- -
statically compiled , then how to do it ? I had the software installed is qt-sdk-linux-x86-opensource-2010.05.1.bin, which side do static compilation
------ eference ----------- ----------------------------
found yourself , the most famous discussion of Qt is how static compiler .
------ eference ------------------------------------ ---
------ eference ------------------------------------ ---
Hello I am using this script when there is a problem
[sunday @ sunday rms-flux] $ sudo chmod + x rms-flux.sh
[sunday @ sunday rms-flux] $ sudo sh rms-flux.sh
rms-flux.sh: line 10: / run/media/sunday/000B9D8C000C8A68/rms-flux/./rms-flux: insufficient privileges
How can we solve ?
------ eference --------------------------------------- < br> statically compiled with statically compiled libraries have now , and in the use of its compiler
没有评论:
发表评论