Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to compile source?
Forum Updated to NodeBB v4.3 + New Features

How to compile source?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scarleton
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      "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

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scarleton
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved