CMake path error in Qt 5.1.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtbase-opensource-src (Ubuntu) |
Fix Released
|
Critical
|
Timo Jyrinki |
Bug Description
Qt 5.1.1 pre-release gives a path error regarding CMake builds that did not occur with Qt 5.1.0:
---
CMake Error at /usr/lib/
The imported target "Qt5::Core" references the file
"/
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
"/
but not all the files it references.
Call Stack (most recent call first):
/usr/
CMakeLists.txt:51 (find_package)
---
Testable via ppa:canonical-
Changed in qtbase-opensource-src (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Timo Jyrinki (timo-jyrinki) |
tags: | added: qt5.1 |
Changed in qtbase-opensource-src (Ubuntu): | |
status: | New → In Progress |
Changed in qtbase-opensource-src (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in qtbase-opensource-src (Ubuntu): | |
importance: | High → Critical |
Changed in qtbase-opensource-src (Ubuntu): | |
status: | Fix Committed → Fix Released |
I found https:/ /bugzilla. redhat. com/show_ bug.cgi? format= multiple& id=929227 which has discussed a related problem before.
The problem replicates in all CMake files, so even if Qt5CoreConfig.cmake is manually added with set(_qt5Core_ install_ prefix "/usr"), the next one is eg. Qt5Qml. Furthermore hardcoding it to /usr is not probably what's wanted.
In the qtbase code, probably mkspecs/ features/ cmake_functions .prf is one place to look at.