Qt 5.7 on OS X 10.11 (El Capitan) - maccocoaviewcontainer.pro is lacking an install target.
For some reason qt-everywhere-opensource-src-5.7.0 on OS X 10.11 (El Capitan) fails to build because of:
Project ERROR: /Users/mikaelsundell/git/test/qt-everywhere-opensource-src-5.7.0/qtbase/examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro is lacking an install target.
Anything I need to set in configure to make it build?
Not a direct answer but I'd recommend to disable example building when you build Qt yourself, it will save time and disk space.
As for your problem, the .pro file I have for that example looks fine.
Ok - will look into the .pro file and correct whatever is wrong thought this was a known problem on El Capitan.
For everyone's information, this issue relates to:
Thanks for sharing !
I have the same issue even after disabling examples. Here is my configuration for building Qt 5.7.0.
./configure -prefix $PWD/qtbase -commercial -nomake tests -no-compile-examples
Thanks @Haxus - if you don't want to skip all examples (can be useful when setting up Qt) you can't just apply the patch in the bugreport and the build will complete as expected on El Capitan.
Thank you very much. The solution was the ' -nomake examples ' option.
I don't know where I got the -no-make-examples option from. :P