Building Qt Desktop for Windows with MinGW and MinGW64



  • Hey guys, I've given the "wiki page":http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MinGW a little facelift. So if you are interested in how to build Desktop Qt yourself you are welcome to try the howto and give a feedback. Please feel free to ask if there are any errors or misunderstandings.

    The reason why I have written the howto is that I have looked for a good solution to build Qt for 32bit and 64bit targets from a single version Qt-source-tree and also a cross environment to build on 32bit for x64 targets. There were some hours searching the net to find a one-at-all solution but in my opinion there wasn't. So I collected all the information I found and this leads to the described way that I found very usable for me, however, there are probably alternate ways. I have currently used Qt 4.7.4.

    If I have the time I will describe how to build the cross 32/64 Qt my way and to build Qt Creator with the self-built Qt tools.


  • Moderators

    Thanks for the great work. You have progressed the page significantly from a rudimentary stage to something useful.



  • where can i find an article about the same process in mac?
    Thanks


  • Lifetime Qt Champion

    Hi salvador,

    Do you mean building Qt 32 and 64 bit on OS X ?



  • Yes, i have these warnings
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtWidgets.framework/QtWidgets, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtGui.framework/QtGui, file was built for unsupported file format which is not the architecture being linked (i386)@
    @:-1: warning: in /Applications/Qt5.0.1/5.0.1/clang_64/lib/QtCore.framework/QtCore, file was built for unsupported file format which is not the architecture being linked (i386)@
    and i think that the solution is in this wiki but i want the instruction for mac osx


  • Lifetime Qt Champion

    Then it's not the right wiki, this one is to do Windows build using mingw either 32 or 64.

    You seem to be trying to compile your project in 32bit and try to link to a 64bit Qt.



  • I am a little bit confused (and noob) so excuse me. My mac is 64bit and i have the Qt 64bit version. I can't undestand where is the problem


  • Lifetime Qt Champion

    Ok, then open a new thread and explain what your current problem is (showing the content of your pro file can be a good idea) what setup you use (QtCreator/XCode etc..)

    We'll continue there


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.