New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qmake does not work on windows #8180
Comments
What is the output of |
after investigating: |
oh, sorry duyanning@EDU-NOTEBOOK F:\helloqt duyanning@EDU-NOTEBOOK F:\helloqt duyanning@EDU-NOTEBOOK F:\helloqt |
It seems qmake can't find qmake spec, after installed qt-base, it installed mkspec to share\qt5\ folder which contains qmake.conf. Reference find_qt_mkspec.cmake |
I still need: If you renamed/moved vcpkg after build the hardcoded paths in qmake are all wrong and you need to use a qt.conf. That is why I need to see the output of
has nothing to do with the problem. |
duyanning@EDU-NOTEBOOK C:\Users\duyanning\Desktop ** Visual Studio 2019 Developer Command Prompt v16.2.0 [vcvarsall.bat] Environment initialized for: 'x86' duyanning@EDU-NOTEBOOK C:\Users\duyanning\Desktop duyanning@EDU-NOTEBOOK C:\Users\duyanning\Desktop duyanning@EDU-NOTEBOOK C:\Users\duyanning\Desktop i use ConEmu |
As a workaround use either The paths should look like:
I could confirm the strange qt paths with another version of qt (build from git bash; maybe that is one problem?):
If you need an example for a From my point of view this looks like a Qt issue since we actually passed all the paths correctly. |
A another thing i just saw is that your debug build of qmake actually works as expected. |
The same problem here. With vcpkg Qt 5.12.5 update, Envrionment: OS: Win10 1903 |
The real funny part here is that the installation is done into the correct path. |
@spindensity. Ah this explains why I don't have the error in x64-windows-static because that file does not exists. It is still qt's fault since it is installing that file not vcpkg. but thats means it is easy to fix ;) |
* forward extra arguments to vcpkg_configure_qmake from submodules * make image format dependent on tiff and libwebp * make tools dependent on imageformat * build options must be passed a bit different then normal qmake options * add the required dependencies * a new dependency discovered in qt5-declarative * need webpdemux also * qt5-declarative is dependent on imageformats so we can drop it here * remove empty qt.conf if it exists. closes #8180 * add all recommended dependencies as dependencies in control.
Describe the bug
A clear and concise description of what the bug is.
Environment
`
F:\helloqt>"F:\vcpkg\installed\x86-windows\tools\qt5\debug\bin\qmake.exe" -tp quit.pro
WARNING: Unable to generate output for: F:/helloqt/Makefile.Debug [TEMPLATE quit.proapp]
QIODevice::write: device not open
WARNING: Unable to generate output for: F:/helloqt/Makefile.Release [TEMPLATE quit.proapp]
QIODevice::write: device not open
F:\helloqt>"F:\vcpkg\installed\x86-windows\tools\qt5\bin\qmake.exe" -tp quit.pro
Could not find qmake spec 'win32-msvc'.
Error processing project file: F:\helloqt\quit.pro
F:\helloqt>"F:\vcpkg\installed\x86-windows\tools\qt5-base\bin\qmake.exe" -tp quit.pro
Could not find qmake spec 'win32-msvc'.
Error processing project file: F:\helloqt\quit.pro
`
The text was updated successfully, but these errors were encountered: