Results 1 to 3 of 3

Thread: Compile binaries for all platforms from windows

  1. #1
    Join Date
    Jun 2009
    Location
    Gdansk, Poland
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Compile binaries for all platforms from windows

    Hi,
    Is that possible to use Qt Creator to build multiple targets for all supported platforms while woirking on windows without switching to linux or max to make build for them?
    Thanks in advance

  2. #2
    Join Date
    Jun 2009
    Location
    Gdansk, Poland
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Compile binaries for all platforms from windows

    I`ve tried to do this only by command line by following commands:

    Qt Code:
    1. qmake testApp.pro -spec linux-g++ -r CONIG+=release
    To copy to clipboard, switch view to plain text mode 

    and then:

    Qt Code:
    1. mingw32-make.exe -w
    To copy to clipboard, switch view to plain text mode 

    but I`ve got an error:

    Qt Code:
    1. c:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `c:/Users/alex/Documents/testApp'
    2. g++ -o yetiApp main.obj mainwindow.obj moc_mainwindow.obj -LC:/Qt/2009.02/qt/lib -lQtGuid -lQtCored
    3. c:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lQtGuid
    4. collect2: ld returned 1 exit status
    5. c:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [testApp] Error 1
    6. c:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `c:/Users/alex/Documents/testApp'
    To copy to clipboard, switch view to plain text mode 

    What`s wrong?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compile binaries for all platforms from windows

    You need to have a cross-compiler toolchain for each platform you want to compile for.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  2. Qt4.4 binaries for windows
    By mm in forum Installation and Deployment
    Replies: 3
    Last Post: 13th February 2008, 20:55
  3. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29
  4. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  5. Replies: 4
    Last Post: 12th January 2006, 04: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.