Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Include directory not right when building Qt 5.1.1 from source
I have the regular 5.1.0 binary distribution installed on my old computer, but for my new development system I'm building 5.1.1 from source for a variety of reasons I won't bore you with. Everything seems to work well; the build completes without errors and everything ends up looking as I'd expect it to, except for the "include" directory which is generated in the working directory by 'make'.
My home-built 'include' directory has subdirectories for each of the major Qt modules, as I'd expect, but inside these subdirectories there are just single files - for example, the 'QtWidgets' subdirectory contains a single file called "QtWidgetsDepends" (with no suffix) instead of what I'd expect, namely qabstractbutton.h, qabstractitemdelegate.h etc.
I've experimented with various different configuration options, but none seem to make any difference; the result is the same in each case. For the record, here is my build batch file:
CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
configure -opensource -opengl desktop
Please can someone point out to me what I'm doing wrong here?
(Slaps head, says 'd-oh!')
I left out two important steps:
- Include '-prefix C:\Qt\5.1.1\x86_64' (for example) at the end of the 'configure' statement
- Put 'jom install' on the next line after the first 'jom' command.
...and now it works fine.
goblincoding last edited by
Pls edit your topic to include "SOLVED" :)
Aha, so that's how it works! I'd been trying to find a 'solved' check box on the web page to tick.