[Development] OSX CMake broken in 5.1.1

Daiwei Li daiweili at gmail.com
Fri Jun 7 23:18:49 CEST 2013


Hello,

I recently my version of Qt to 5.1.1 and it seems to have broken CMake on
OSX. I get the following error message:

CMake Error at
> /Users/daiweili/.bacon/thirdparty/qt/9d86cdfb2d648428afd462d5062571b5adef377c-osx/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:15
> (message):
>   The imported target "Qt5::Widgets" references the file
>
>  "/Users/daiweili/.bacon/thirdparty/qt/9d86cdfb2d648428afd462d5062571b5adef377c-osx/lib/QtWidgets.framework/QtWidgets/5.1.1"
>   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
>
>  "/Users/daiweili/.bacon/thirdparty/qt/9d86cdfb2d648428afd462d5062571b5adef377c-osx/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake"
>   but not all the files it references.
> Call Stack (most recent call first):
>
> /Users/daiweili/.bacon/thirdparty/qt/9d86cdfb2d648428afd462d5062571b5adef377c-osx/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:49
> (_qt5_Widgets_check_file_exists)
>   vcclient/find_qt.cmake:36 (find_package)
>   vcclient/CMakeLists.txt:60 (include)


It seems that frameworks on OSX breaks some assumptions about where files
should be located. I compared the generated Qt5WidgetConfig.cmake with a
previous version and it seems that the check is the only addition.

I tried commenting out the lines in qtbase/mkspecs/features/data/cmake/
Qt5BasicConfig.cmake.in and now my project builds fine, though that's
obviously not the right thing to do.

Should I go ahead and file a ticket for this problem, or was there some
user error on my part?

Daiwei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130607/6ff9f0e2/attachment.html>


More information about the Development mailing list