Results 1 to 8 of 8

Thread: How to build library-independent executable?

  1. #1
    Join Date
    Feb 2006
    Location
    Lublin, Poland
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to build library-independent executable?

    Hi there,
    I wrote an application in Qt 4.1 and I would like to build a win32 .exe file which could be launched on every windows system, whether or not the Qt libraries are installed. Is it possible? I think that I should link it somehow to insert needed libraries into the executable, but I don't know how.
    Any suggestions?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to build library-independent executable?

    You can either distribute Qt DLLs along with your program, or compile the static version of the Qt and use static linking ("CONFIG += static", AFAIR).

  3. #3
    Join Date
    Feb 2006
    Location
    Lublin, Poland
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to build library-independent executable?

    And how do I know which dlls will my app need?

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

    Default Re: How to build library-independent executable?

    Quote Originally Posted by hoborg
    And how do I know which dlls will my app need?
    Application Dependencies

  5. #5
    Join Date
    Feb 2006
    Location
    Lublin, Poland
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to build library-independent executable?

    What a great tool, thanks

  6. #6
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to build library-independent executable?

    Does the "depends" tool come with the open source version for windows?

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

    Default Re: How to build library-independent executable?

    The dependency walker util is not related to Qt.

  8. #8
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to build library-independent executable?

    Doh!
    I guess I missed where that was pointed out......

Similar Threads

  1. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37
  2. Build error on mac Platform::WaitMouseMoved
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th July 2007, 13:18

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.