How to compile source?



  • I have been using 4.7.3 on Windows for a long time now, it had been installed in D:\Qt\4.7.3, until my hard drive crashed hard and I cannot recover any of it. Now I am installing the new SDK thing where I have the binary in D:\QtSDK\Desktop\Qt\4.7.4\msvc2008 and the source code in D:\QtSDK\QtSources\4.7.4.

    The question is: how do I compile the 4.7.4 source? I am running the vcvar32.bat file to sets up VS2008 environment, then adding D:\QtSDK\Desktop\Qt\4.7.4\msvc2008\bin to the path and then run the following commend line from the source folder:

    configure -debug-and-release -opensource -plugin-sql-sqlite -plugin-sql-ibase -no-qt3support -platform win32-msvc2008 -no-phonon

    And I get an error:

    D:\QtSDK\QtSources\4.7.4\src\corelib\global\qglobal.h(62) : fatal error C1083: Cannot open include file: 'QtCore/qconfig.h'

    What am I doing wrong? Are there new instructions somewhere on how to get the source code to compile?

    Sam


  • Moderators

    "Did you follow this wiki?":http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC

    There is also a pre-compiled vc2008 version available for "qt 4.7.4 in the ftp archive.":ftp://ftp.qt.nokia.com/qt/source/qt-win-opensource-4.7.4-vs2008.exe



  • I know it comes with pre-compiled vc2008, I just need to do some custom stuff.

    I have never seen that link, no, so I am working through it now. I still have some questions though...

    Q: Since I am compiling it myself, should I be using the Qt SDK version 1.2.1 or should I download the source myself and forgo the whole sdk?

    Q: If I do use the Qt SDK version 1.2.1 (which is already installed) is D:\QtSDK\Desktop\Qt\4.7.4\msvc2008 even relavent to me, or in compiling everything, will D:\QtSDK\QtSources\4.7.4 become the root of everything?


Log in to reply
 

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