Bug 368470

Summary: Building ext_qt on OSX 10.11.6 fails
Product: [Applications] krita Reporter: n7down
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: halla
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Homebrew (macOS)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description n7down 2016-09-09 00:11:35 UTC
When trying to building ext_qt 3rd party dependency for OSX 10.11.6, it fails. 

Reproducible: Always

Steps to Reproduce:
1. Installed git, cmake and xcode
2. Created top level directory and set it to BUILDROOT
3. Cloned krita repository
4. Created build, download and install directories
5. Entered the BUILDROOT/b directory
6. Ran 'export PATH=$BUILDROOT/i/bin cmake ../krita/3rdparty/ \ -DCMAKE_INSTALL_PREFIX=$BUILDROOT/i \ -DEXTERNALS_DOWNLOAD_DIR=$BUILDROOT/d \ -DINSTALL_ROOT=$BUILDROOT/i'
7. Ran 'cmake --build . --config RelWithDebInfo --target ext_qt'
8. Experienced the error in the logs

Actual Results:  
-- Omitted logs aboved this line --
/usr/share/fonts: skipping, no such directory
/Users/n7down/Source/krita/i/var/cache/fontconfig: cleaning cache directory
/Users/n7down/Source/krita/b/ext_fontconfig/ext_fontconfig-prefix/src/ext_fontconfig-build/fc-cache/.libs/fc-cache: succeeded
 /Users/n7down/Source/krita/b/ext_fontconfig/ext_fontconfig-prefix/src/ext_fontconfig/install-sh -c -d '/Users/n7down/Source/krita/i/lib/pkgconfig'
 /usr/bin/install -c -m 644 fontconfig.pc '/Users/n7down/Source/krita/i/lib/pkgconfig'
 /Users/n7down/Source/krita/b/ext_fontconfig/ext_fontconfig-prefix/src/ext_fontconfig/install-sh -c -d '/Users/n7down/Source/krita/i/share/xml/fontconfig'
 /usr/bin/install -c -m 644 /Users/n7down/Source/krita/b/ext_fontconfig/ext_fontconfig-prefix/src/ext_fontconfig/fonts.dtd '/Users/n7down/Source/krita/i/share/xml/fontconfig'
[ 53%] Completed 'ext_fontconfig'
[ 55%] Built target ext_fontconfig
[ 55%] No update step for 'ext_freetype'
[ 56%] Performing configure step for 'ext_freetype'
-- Building with ZLIB
-- Building with BZip2
-- Building with PNG
-- Checking for module 'harfbuzz>=0.9.7'
--   
-- Creating directory /Users/n7down/Source/krita/b/ext_freetype/ext_freetype-prefix/src/ext_freetype-build/include/freetype/config
-- Creating file /Users/n7down/Source/krita/b/ext_freetype/ext_freetype-prefix/src/ext_freetype-build/include/freetype/config/ftconfig.h
-- Creating file /Users/n7down/Source/krita/b/ext_freetype/ext_freetype-prefix/src/ext_freetype-build/include/freetype/config/ftoption.h
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/n7down/Source/krita/b/ext_freetype/ext_freetype-prefix/src/ext_freetype-build
[ 56%] Performing build step for 'ext_freetype'
[100%] Built target freetype
[ 56%] Performing install step for 'ext_freetype'
[100%] Built target freetype
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config/ftheader.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config/ftmodule.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config/ftstdlib.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/freetype.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftadvanc.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftautoh.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftbbox.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftbdf.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftbitmap.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftbzip2.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftcache.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftcffdrv.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftchapters.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftcid.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/fterrdef.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/fterrors.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftfntfmt.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftgasp.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftglyph.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftgxval.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftgzip.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftimage.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftincrem.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftlcdfil.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftlist.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftlzw.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftmac.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftmm.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftmodapi.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftmoderr.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftotval.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftoutln.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftpfr.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftrender.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftsizes.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftsnames.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftstroke.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftsynth.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftsystem.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/fttrigon.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftttdrv.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/fttypes.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ftwinfnt.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/t1tables.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ttnameid.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/tttables.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/tttags.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/ttunpat.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/ft2build.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config/ftconfig.h
-- Up-to-date: /Users/n7down/Source/krita/i/include/freetype2/freetype/config/ftoption.h
-- Up-to-date: /Users/n7down/Source/krita/i/lib/libfreetype.a
-- Up-to-date: /Users/n7down/Source/krita/i/lib/cmake/freetype/freetype-config.cmake
-- Installing: /Users/n7down/Source/krita/i/lib/cmake/freetype/freetype-config-relwithdebinfo.cmake
[ 57%] Completed 'ext_freetype'
[ 58%] Built target ext_freetype
[ 58%] Performing configure step for 'ext_qt'
+ cd qtbase
+ /Users/n7down/Source/krita/b/ext_qt/ext_qt-prefix/src/ext_qt/qtbase/configure -top-level -confirm-license -opensource -nomake examples -no-openssl -no-compile-examples -qt-freetype -qt-harfbuzz -opengl desktop -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtenginio -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -skip qtcharts -prefix /Users/n7down/Source/krita/i
Attempting to skip non-existent module qtcharts.
make[2]: *** [ext_qt/ext_qt-prefix/src/ext_qt-stamp/ext_qt-configure] Error 1
make[1]: *** [ext_qt/CMakeFiles/ext_qt.dir/all] Error 2
make: *** [all] Error 2


Expected Results:  
Should not experience the error given.
Comment 1 Halla Rempt 2016-09-09 08:59:26 UTC
Please try the nimmy/opengl-patch branch when building on OSX. This should be merged to master pretty soon and upgrades to Qt 5.7 plus a patch for fixing the opengl painter. I built qt using that on Tuesday, and it worked. The qt-charts module is part of Qt 5.7, so I'll remove that bit from master as well.
Comment 2 n7down 2016-09-11 03:55:15 UTC
Thanks, this fixed my issue.