Results 1 to 5 of 5

Thread: [Q] how to build Qt executables only?

  1. #1
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default [Q] how to build Qt executables only?

    Hi, I have tried to build a version of Qt for execution only
    on WInXP or Linux. I tried to remove doc, demo, and examples
    with no luck.

    Does anyone know if there is an executable only version of Qt
    or how to configure a build for a nice small installation?

    thanks,
    Ken - newbie

  2. #2
    Join Date
    Dec 2008
    Location
    Qt Reference Documentation
    Posts
    62
    Thanks
    25
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Lightbulb Re: [Q] how to build Qt executables only?

    I'm not sure I got you right,
    If you are planning to build a version of Qt which is smaller than the original, and for execution only, then it looks like you want to deploy that version with your application, am I right?

    in that case, you can try to static link the portions of Qt which your application uses, thus have a single stand-alone exe file to deploy alone.
    you can learn more about that here.

    HTH

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

    khopper (1st December 2008)

  4. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: [Q] how to build Qt executables only?

    Quote Originally Posted by khopper View Post
    I tried to remove doc, demo, and examples
    with no luck.
    On X11 you can pass "-nomake demos -nomake examples" to the configure script. Unfortunately the Windows version of the configure script doesn't support those arguments, so you'll have to comment them out from the projects.pro file. Alternatively you can run "make sub-src" to compile the libraries only.
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    khopper (1st December 2008)

  6. #4
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [Q] how to build Qt executables only?

    Thank you very much HTH for the link to the "How to Deploy" webpage.
    Yes, that is what I was looking for and I missed this great info.
    thanks again for helping a newbie,
    Ken - Naperville, IL USA

  7. #5
    Join Date
    Dec 2008
    Location
    Qt Reference Documentation
    Posts
    62
    Thanks
    25
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Talking Re: [Q] how to build Qt executables only?

    You're welcome.

    BTW, HTH is an abbreviation of "Hope This Helps"

Similar Threads

  1. Qt + Linux + Eclipse - debug using debug build?
    By will49 in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2012, 06:27
  2. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 06:53
  3. Replies: 2
    Last Post: 8th November 2007, 20:15
  4. Build error on mac Platform::WaitMouseMoved
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2007, 13:18
  5. QMAKE: Specifying Build Dependencies
    By JohnSuykerbuyk in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2006, 09:46

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.