Results 1 to 3 of 3

Thread: How to make qt add -static to g++ and gcc commands

  1. #1
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to make qt add -static to g++ and gcc commands

    What do I have to put in the .pro file so qmake creates a Makefile that adds -static to the gcc and g++ compilation and linking commands?

  2. #2
    Join Date
    Feb 2007
    Posts
    73
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make qt add -static to g++ and gcc commands

    this works for me:
    Qt Code:
    1. CONFIG += static
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make qt add -static to g++ and gcc commands

    also you have to compile static qt libraries in order to compile your application.

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21

Tags for this Thread

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.