Yes olive i need a standalone executable file,,because if my friend or client need my project means i want to givce only exe file and also i should not show the code ,i should give only my exe file,thats why i asked i want to create or procedure to do standalone executable file for any ubuntu system
above friends suggested me to create static libraires for qt and to link with my app,,i also did well successfuly
my finame.pro
QT += core gui
TARGET = staticlink
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h \
../statLib/statlib.h
FORMS += widget.ui
INCLUDEPATH += "/home/user1/statLib"
LIBS += "/home/user1/statLib-build-desktop-Qt_4_8_1_in_PATH__System__Release/libstatLib.a"
QT += core gui
TARGET = staticlink
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h \
../statLib/statlib.h
FORMS += widget.ui
INCLUDEPATH += "/home/user1/statLib"
LIBS += "/home/user1/statLib-build-desktop-Qt_4_8_1_in_PATH__System__Release/libstatLib.a"
To copy to clipboard, switch view to plain text mode
now i got 4 folder myfilename,myfilebuild(release),staicfolder,static build(release),,did i created my standalone executable file,??

Originally Posted by
yeye_olive
Bundling libraries with an application is discouraged on Ubuntu, not to mention licensing issues. Do you really need a standalone executable or are you just looking for a way to package your application for any Ubuntu system? In the latter case, this kind of problem is solved by the package management system. You need to build a package (.deb file) from your application and declare its dependencies (including the relevant Qt packages).
Bookmarks