Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.1.1
-
None
-
Debian sid (unstable).
Description
After upgrading to 5.1.1 from 5.1.0 I get in one of my projects:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake:27 (message): The imported target "Qt5::Network" references the file "/usr/lib/include/qt5/" 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 "/usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/Qt5Network/Qt5NetworkConfig.cmake:62 (_qt5_Network_check_file_exists) CMakeLists.txt:67 (find_package)
The problem seems to be in mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in, possibly introduced in 880f73d1f0382d4ac91f54f47e1c6be0b760c393. Timo Jyrinki from Ubuntu forced setting _qt5$${CMAKE_MODULE_NAME}_install_prefix and the problem got solved. The patch, which is not suitable for pushing upstream, is http://bazaar.launchpad.net/~kubuntu-packagers/kubuntu-packaging/qtbase-opensource-src/view/head:/debian/patches/force_qt_install_prefix.patch