Congratulations to our 2022 Qt Champions!

Include directory not found when cloning qt source on git

  • Am I supposed to copy it from elsewhere or is there something simple I'm failing to see?

  • It should be created when you will build qt libraries.

  • You mean when doing configure + nmake? I'm on Windows, by the way, my first post was scarce.
    When I execute this line:

    configure -platform win32-msvc2008 -debug-and-release

    It fails with this message:

    C:\Qt\4.8\src\corelib\global\qglobal.h(62) : fatal error C1083: Cannot open include file: 'QtCore/qconfig.h': No such file or directory

    Actually, now that I take a closer look, it seems it's failing when building qmake.

  • Make sure you have perl installed. The syncqt tool that configure uses to prepare the forwarding includes is a perl script.

  • That was it, thanks a lot!

    Is that something new? I was able to compile 4.7.3 without problems.

  • Stable, official releases don't require the syncqt tool to build the include/ directory. Building from git does require it.

  • That makes sense. Thanks!

  • Official releases have already have syncqt executed by the release team prior to zipping/tarballing. If building form git the onus is on the developer to do it.

Log in to reply