Results 1 to 3 of 3

Thread: Static linking with Commercial trial 4.3.2 for VC7.1 ?

  1. #1
    Join Date
    Dec 2007
    Location
    Colorado, USA
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Static linking with Commercial trial 4.3.2 for VC7.1 ?

    <alert comment="Qt newbie">

    I've developed a freeware app with MFC for Windows, and want to convert it to use Qt4. Eventually, I want to port to Linux, Pocket-PC, and possibly for Mac.

    I've never used MinGW, so my impression is that the easiest way for me to get "up to speed" with Qt4 is to install the 30 day commercial 4.3.2 trial for Visual C++ 7.1 (Visual Studio 2003). I've built several of the tutorial examples and been able to step around with the VC7.1 ide debugger, so the installation seems ok.

    The app is fairly simple ... it uses a tree-widget, check-box-widgets, drop-down-combobox-widget, list-widget, basic menu, and rich-text-widget,

    When I get to the point of releasing the app, I don't want to ship the large QtCore4.dll (1.5mb) and QtGui4.dll (6.2mb) with the application. My understanding is that I will want to statically link the application. I'm trying to get some ball-park idea of how large the resulting executable will be.

    > But with the trial it's not possible to recompile Qt for static linking
    I came across a thread with the above comment, so I wanted to check if there was a way to configure the 4.3.2 commercial trial to link statically.

    </alert>

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Static linking with Commercial trial 4.3.2 for VC7.1 ?

    I've developed a freeware app with MFC for Windows, and want to convert it to use Qt4. Eventually, I want to port to Linux, Pocket-PC, and possibly for Mac.

    I've never used MinGW, so my impression is that the easiest way for me to get "up to speed" with Qt4 is to install the 30 day commercial 4.3.2 trial for Visual C++ 7.1 (Visual Studio 2003). I've built several of the tutorial examples and been able to step around with the VC7.1 ide debugger, so the installation seems ok.
    You can use Qt 4.3.2 Open Source Edition with VC++ 2005 Express, so there's no need to use the trial version.

    When I get to the point of releasing the app, I don't want to ship the large QtCore4.dll (1.5mb) and QtGui4.dll (6.2mb) with the application. My understanding is that I will want to statically link the application. I'm trying to get some ball-park idea of how large the resulting executable will be.
    ...
    I think it will be bigger, with static linking. Therefore will eat more system resources.

  3. #3
    Join Date
    Dec 2007
    Location
    Colorado, USA
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Static linking with Commercial trial 4.3.2 for VC7.1 ?

    Quote Originally Posted by marcel View Post
    I think it will be bigger, with static linking. Therefore will eat more system resources.
    I'm sure the MyApp.exe will be much larger with static linking (compared to dynamic linking), but the overall size of the MyAppSetup.exe will be much smaller because I won't have to include QtCOre4.dll and QtGui4.dll

    Thanks for the info about Express 2005.

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12

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.