Results 1 to 11 of 11

Thread: Cross-Compiling Linux to Windows

  1. #1
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Cross-Compiling Linux to Windows

    Hi,

    I'm developing multiplatform projects. But I don't want to reboot my computer to build a Windows release.
    I have Debian Etch and MinGW for linux package installed.

    I have tried with Wine but it does not work

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Maybe you can use a virtual machine to run a Windows instance in one of your Linux windows ;-)

    QEmu and VirtualBox work fine, really fast.

  3. #3
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Quote Originally Posted by guilugi View Post
    Maybe you can use a virtual machine to run a Windows instance in one of your Linux windows ;-)

    QEmu and VirtualBox work fine, really fast.
    This is a valid solution for my home computer (Core 2 Duo 6420).

    But at work I only have a P4@2.8 GHz And QEmu it's toooooooooooo slow with XP

  4. #4
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Haha, QEmu only yes
    But did you try KQEmu ?

    http://kqemu.sourceforge.net

  5. #5
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Quote Originally Posted by guilugi View Post
    Haha, QEmu only yes
    But did you try KQEmu ?

    http://kqemu.sourceforge.net
    kqemu is a kernel module, and the processor must support it.

    And the link is from kqemu, the kommander script :P

  6. #6
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Lol, sorry ;-)

    Well, if your core support it, it would be great to use it : it improves greatly performances !

  7. #7
    Join Date
    Jan 2006
    Posts
    368
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    (I did not try it myself yet, but)

    How about "apt-get install mingw" ? I made simple exe's and maybe it's possible to compile qt4 under linux using mingw. That could be a fine waste of CPU cycles. I will try it myself now

  8. #8
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Sounds quite good ;-)

    Keep us in touch, that may be just awesome, if I could use distcc to compile win32 exes :-D

  9. #9
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Quote Originally Posted by guilugi View Post
    Lol, sorry ;-)

    Well, if your core support it, it would be great to use it : it improves greatly performances !
    My home-computer support it and the perfomance of Windows host is almost perfect

  10. #10
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Quote Originally Posted by elcuco View Post
    (I did not try it myself yet, but)

    How about "apt-get install mingw" ? I made simple exe's and maybe it's possible to compile qt4 under linux using mingw. That could be a fine waste of CPU cycles. I will try it myself now
    My mingw package has not mingw32-make

  11. #11
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cross-Compiling Linux to Windows

    Quote Originally Posted by xgoan View Post
    My mingw package has not mingw32-make
    Theoretically you don't need it... All you have to do is create a mkspecs for qmake (have a look at all the existing ones) so that mingw bins will be used instead of regular gcc ones; Then runninhg qmake and make should work smoothly... Please note that this remains theoretical... All my attempts to make cross-compiling of Qt-apps failed so far because of a linking error of Qt libs (using win-compiled ones) and I wasn't able to compile Qt using my cross compiler (but as a side note I shall metion that I wasn't able to compile it with regular gcc as well and was forced to use prebuilt binaries ...).
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. C code linux to windows
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 19th October 2006, 23:17
  2. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 16:29
  3. Porting Qt3 linux app to windows qt4
    By Philip_Anselmo in forum Qt Programming
    Replies: 7
    Last Post: 15th May 2006, 19:44
  4. Cross compiling QT3 on Linux, for win32
    By mjrich in forum Installation and Deployment
    Replies: 10
    Last Post: 6th March 2006, 19:58
  5. Replies: 4
    Last Post: 12th January 2006, 05:16

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.