Results 1 to 11 of 11

Thread: making a portable binary on windows

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Thanks
    4
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: making a portable binary on windows

    You used to be able to configure Qt to build static libs. I presume you can still do that.(? - I'm not at a machine I can check...)

    If you can get the mingw source and build configuration, you should be able to create static mingw libs.

    Threads don't matter whether static or dll, as far as I know.

    Ditto for any other third party libs.

    You're definitely probing outside the box, it will require you to do a lot of building on your own, but it should be possible. Whether it's worthwhile vs. just distributing the .dlls or not is another question. It can be a lot of work.

    rickb

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: making a portable binary on windows

    <<<If you can get the mingw source and build configuration, you should be able to create static mingw libs.>>>>

    Yes i can build libs but the code from mingw is so large....... wahts file take????


    OK MingW impossibel!.....

    You think Borland Compiler is Better to make portable exe .....? or Other Window compiler....
    Last edited by patrik08; 27th May 2006 at 21:23.

  3. #3
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Thanks
    4
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: making a portable binary on windows

    Quote Originally Posted by patrik08
    <<<If you can get the mingw source and build configuration, you should be able to create static mingw libs.>>>>

    Yes i can build libs but the code from mingw is so large....... wahts file take????


    OK MingW impossibel!.....
    It would be a matter of reconfiguring the make file/project to create static libs. They might provide a configuration to do that. I haven't gotten into mingw, so can't tell you.

    You think Borland Compiler is Better to make portable exe .....? or Other Window compiler....
    Not sure what you mean by 'portable'. If the systems are configured identically, one exe should work on all, but you may have to pull over the extra pieces, like dlls, etc., if the .exe is not fully resolved on its own.

    Back in the old days, we used to have hot debates about Borland vs. Microsoft. In the end, we wound up with the Microsoft compiler, because we knew that's what the OS was built with, what Windows was built with, and we wouldn't have any compatibility issues, especially with kits like MFC. And MS was naturally ahead of the curve on anything Windows.

    Since you're using mingw, it shouldn't matter, frankly. (I presume you're not using the cygwin mingw, which brings in whole other issues.)

    I'm using the MS compiler, because I still have to use MS toolkits.

    rickb

  4. #4
    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: making a portable binary on windows

    Give this a try:
    Qt4 with Visual Studio and static C runtime

    PS. There's a free version of VS2005 (express) out there..
    J-P Nurmi

Similar Threads

  1. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 22:33

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.