Results 1 to 11 of 11

Thread: how to create standalone executable file for any ubuntu system

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to create standalone executable file for any ubuntu system

    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 Code:
    1. QT += core gui
    2.  
    3. TARGET = staticlink
    4. TEMPLATE = app
    5.  
    6.  
    7. SOURCES += main.cpp\
    8. widget.cpp
    9.  
    10. HEADERS += widget.h \
    11. ../statLib/statlib.h
    12.  
    13. FORMS += widget.ui
    14.  
    15. INCLUDEPATH += "/home/user1/statLib"
    16. 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,??
    Quote Originally Posted by yeye_olive View Post
    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).

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to create standalone executable file for any ubuntu system

    Do you have a commercial license for Qt? If you do not, then you have been developing your software with the LGPL version, and you are now bound by that license, which limits the ways in which you can distribute your application. If you distribute an executable that was statically linked with Qt, and you do not want to distribute your source code, then you must provide the object files and the Makefile to allow any user to relink your application with another version of Qt. See http://www.gnu.org/licenses/gpl-faq....taticVsDynamic.

  3. The following user says thank you to yeye_olive for this useful post:

    iswaryasenthilkumar (7th May 2015)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to create standalone executable file for any ubuntu system

    Quote Originally Posted by iswaryasenthilkumar View Post
    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
    This doesn't mean you have to make your binary static. You can deploy your executable along all the libraries it requires. Just like pretty much almost anyone else in the world does.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 4
    Last Post: 26th May 2014, 14:48
  2. How to create executable in Ubuntu
    By WingFalcon in forum Installation and Deployment
    Replies: 2
    Last Post: 19th June 2013, 13:20
  3. How to Create Executable file for my program
    By ay in forum Qt Programming
    Replies: 4
    Last Post: 29th September 2012, 15:39
  4. How to Create Executable file for my QT application
    By c_srikanth1984 in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2009, 04:02
  5. How to create a standalone executable?
    By Ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 15:04

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
  •  
Qt is a trademark of The Qt Company.