Results 1 to 3 of 3

Thread: converting unix exe to windows binary

  1. #1
    Join Date
    May 2006
    Posts
    68
    Thanks
    10
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default converting unix exe to windows binary

    Dear programmers

    Can somebody tell me how to convert Linux exe ( compiled by gcc) to windows exe
    I have made an application where I use Linux frontend(ie QT 3.1) and exe files of linux(unix)
    But now I have been told to make the same application with windows frontend.
    Frontend part I will handle with QT for windows but how to port these linux exe file directly to windows platform.

    In fact I tried to compile the same in C++ compilers but lot of errors are given. Where as with gcc on linux platform it easily compiles and gives the exe file.

    How can I use this exe in windows.( that's why my question above as to how to convert Linux exe ( compiled by gcc) to windows exe

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

    Default Re: converting unix exe to windows binary

    I don't think that you will find a tool that would do such thing. Better try the normal approach and simply compile your project on windows. You can use MinGW toolchain for this. Since you use Qt, there shouldn't be any problem with porting your source code to windows (unless you have used some Linux specific mechanisms).

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: converting unix exe to windows binary

    in addition to what jacek said, you could also try to use Cygwin.

Similar Threads

  1. Windows Binary Not Re-Painting Correctly
    By bpetty in forum Newbie
    Replies: 3
    Last Post: 6th September 2006, 23:22
  2. making a portable binary on windows
    By patcito in forum Qt Programming
    Replies: 10
    Last Post: 29th May 2006, 10:02
  3. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 23: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.