Results 1 to 4 of 4

Thread: Cross compilation from OS X to Windows

  1. #1
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Cross compilation from OS X to Windows

    Hello everyone (first post, and I hope I don't come off as too much off a newbie).

    Currently I'm developing a system that I want to get up and running for OS X and Windows but I'm having issues doing the compilation for Windows from OS X.

    The stage I'm at is I've got MinGW32 installed, which works as I've made some test .exe's which are all fine, but I'm either being a bit slow or I've missed something obvious as I just cannot get Qt files to compile at all, I just get:

    Qt Code:
    1. ld: unknown option: -enable-stdcall-fixup
    2. collect2: ld returned 1 exit status
    3. make[1]: *** [debug/tut2.exe] Error 1
    4. make: *** [debug] Error 2
    To copy to clipboard, switch view to plain text mode 

    Any ideas? Sorry if this has been covered before, I had a good search on the forums and couldn't spot it!

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Cross compilation from OS X to Windows

    Are you using qmake? That will create the appropriate makefiles for you.

  3. #3
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Cross compilation from OS X to Windows

    Quote Originally Posted by Brandybuck View Post
    Are you using qmake? That will create the appropriate makefiles for you.
    Yeah I'm using qmake, I originally had QMAKESPEC set to macx-g++ and I've tried various different things such as setting QMAKESPEC to win32-g++ and nothing seems to be generating correct makefiles.

  4. #4
    Join Date
    Jan 2009
    Posts
    31
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Cross compilation from OS X to Windows

    Actually I've worked out where I was messing up thanks to:

    http://www.jasonandshawnda.com/wordpress/?cat=6
    http://silmor.de/29

    Whilst they're focussed on Linux I think I should be able to modify the process they're using for OS X. Was hoping there'd be a slightly easier method but I suppose I'll skip the lazy developer part and do it properly.

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. qt-embedded cross compilation error help
    By aj2903 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 27th October 2008, 08:41
  3. QT 4.4.1 compilation problem on Windows using nmake
    By operis in forum Installation and Deployment
    Replies: 1
    Last Post: 1st September 2008, 10:08
  4. Qt compilation windows with g++
    By bonics in forum Qt Programming
    Replies: 2
    Last Post: 14th August 2007, 13:22
  5. 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.