Skip to content

qt5-base[latest]:x64-windows - single configuration builds of Qt (eg. release) are currently not supported #10586

@heydojo

Description

@heydojo

Host Environment

  • OS: x64-windows
  • Compiler: Visual Studio 2019 Developer Command Prompt v16.5.0

To Reproduce

Steps to reproduce the behavior:
Set build types to release.
echo.set(VCPKG_BUILD_TYPE release)>> triplets\x64-windows.cmake
Install build Qt.
vcpkg install qt5-base[latest]:x64-windows
Build your Qt based C++ application with something like:
mkdir build && cd build
cmake .. -DQt5_DIR:PATH="%VCPKGDIR%\packages\qt5-base_x64-windows\share\cmake\Qt5"

Failure logs

-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:15 (message):
  The imported target "Qt5::Gui" references the file

     "H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/debug/bin/Qt5Guid.dll"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:37 (_qt5_Gui_check_file_exists)
  windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Gui/Qt5GuiConfig.cmake:177 (_populate_Gui_target_properties)
  windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:115 (find_package)
  windows/vcpkg/packages/qt5-base_x64-windows/share/cmake/Qt5/Qt5Config.cmake:28 (find_package)
  CMakeLists.txt:16 (find_package)


-- Configuring incomplete, errors occurred!
See also "H:/qt5/build/CMakeFiles/CMakeOutput.log".

Specifically:

The imported target "Qt5::Gui" references the file

     "H:/qt5/windows/vcpkg/packages/qt5-base_x64-windows/debug/bin/Qt5Guid.dll"

  but this file does not exist.

Additional context

Please fix or revert the regression.
f8165f7#diff-f322c6a00cca5779dfc2edc84a72c0d7

https://github.com/microsoft/vcpkg/blob/master/ports/qt5-base/fixcmake.py#L30

Thanks.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions