Open Dima-369 opened 3 years ago
Hmm. So, I've been able to build this on 2 machines running Big Sur. I don't have access to Mojave unfortunately, but this feels like an upstream problem -- somehow the OpenGL libraries are not being found in their expected location. However, I haven't found any mention of it online. I will keep looking, but it is actually possible that updating your command line tools could solve the problem. Can you give it a shot?
Oh, also when you install it can you try brew install --debug --verbose incidentist/nyxt/webkitgtk
? That should give more info about what it thinks the OpenGL situation is.
Updating the command line tools did not change anything in the error message.
same error on Catalina 10.15.7
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/webkitgtk/2.32.1 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -GNinja -DPORT=GTK -DENABLE_X11_TARGET=OFF -DENABLE_WAYLAND_TARGET=OFF -DENABLE_QUARTZ_TARGET=ON -DENABLE_TOOLS=ON -DENABLE_MINIBROWSER=OFF -DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DENABLE_GEOLOCATION=OFF -DENABLE_WEBGL=OFF -DUSE_LIBNOTIFY=ON -DUSE_LIBHYPHEN=OFF -DENABLE_GAMEPAD=OFF -DUSE_SYSTEMD=OFF -DUSE_APPLE_ICU=OFF -- The C compiler identification is AppleClang 12.0.0.12000032 -- The CXX compiler identification is AppleClang 12.0.0.12000032 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- The CMake build type is: Release -- Found Perl: /usr/bin/perl (found suitable version "5.18.4", minimum required is "5.10.0") -- Found PerlModules: TRUE found components: JSON::PP -- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.16", minimum required is "2.7.0") -- Found Ruby: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/ruby (found suitable version "2.6.3", minimum required is "1.9") -- Enabling ccache: Couldn't find ccache program. Not enabling it. -- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing -- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing -- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success -- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions -- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions -- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti -- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare -- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare - Success -- Performing Test C_COMPILER_SUPPORTS_-Wcast-align -- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success -- Performing Test C_COMPILER_SUPPORTS_-Wformat-security -- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success -- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute -- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success -- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith -- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success -- Performing Test C_COMPILER_SUPPORTS_-Wundef -- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success -- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings -- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align -- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security -- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute -- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith -- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wundef -- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings -- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success -- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments -- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed -- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality -- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation -- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success -- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi -- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Failed -- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments -- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Failed -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Failed -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type -- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success -- Performing Test C_COMPILER_SUPPORTS_-Wall -- Performing Test C_COMPILER_SUPPORTS_-Wall - Success -- Performing Test C_COMPILER_SUPPORTS_-Wextra -- Performing Test C_COMPILER_SUPPORTS_-Wextra - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wall -- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success -- Performing Test CXX_COMPILER_SUPPORTS_-Wextra -- Performing Test CXX_COMPILER_SUPPORTS_-Wextra - Success -- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics -- Performing Test C_COMPILER_SUPPORTS_-fcolor-diagnostics - Success -- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always -- Performing Test C_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics -- Performing Test CXX_COMPILER_SUPPORTS_-fcolor-diagnostics - Success -- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always -- Performing Test CXX_COMPILER_SUPPORTS_-fdiagnostics-color=always - Success -- Performing Test ATOMICS_ARE_BUILTIN -- Performing Test ATOMICS_ARE_BUILTIN - Success -- Performing Test STD_FILESYSTEM_IS_AVAILABLE -- Performing Test STD_FILESYSTEM_IS_AVAILABLE - Success -- Looking for features.h -- Looking for features.h - not found -- Looking for errno.h -- Looking for errno.h - found -- Looking for langinfo.h -- Looking for langinfo.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for pthread_np.h -- Looking for pthread_np.h - not found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/timeb.h -- Looking for sys/timeb.h - found -- Looking for linux/memfd.h -- Looking for linux/memfd.h - not found -- Looking for _aligned_malloc -- Looking for _aligned_malloc - not found -- Looking for IsDebuggerPresent -- Looking for IsDebuggerPresent - not found -- Looking for localtime_r -- Looking for localtime_r - found -- Looking for malloc_trim -- Looking for malloc_trim - not found -- Looking for strnstr -- Looking for strnstr - found -- Looking for timegm -- Looking for timegm - found -- Looking for vasprintf -- Looking for vasprintf - found -- Looking for regexec -- Looking for regexec - found -- Looking for SIGTRAP -- Looking for SIGTRAP - found -- Performing Test HAVE_STAT_BIRTHTIME_value -- Performing Test HAVE_STAT_BIRTHTIME_value - Success -- Performing Test HAVE_TM_GMTOFF_value -- Performing Test HAVE_TM_GMTOFF_value - Success -- Performing Test HAVE_TM_ZONE_value -- Performing Test HAVE_TM_ZONE_value - Success -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of __int128_t -- Check size of __int128_t - done -- Found Cairo: /usr/local/lib/libcairo.dylib (found suitable version "1.16.0", minimum required is "1.14.0") -- Found Fontconfig: /usr/local/lib/libfontconfig.dylib (found suitable version "2.13.1", minimum required is "2.8.0") -- Found Freetype: /usr/local/lib/libfreetype.dylib (found suitable version "2.11.0", minimum required is "2.4.2") -- Found LibGcrypt: /usr/local/lib/libgcrypt.dylib (found suitable version "1.9.3", minimum required is "1.6.0") -- Found GLIB: /usr/local/include/glib-2.0;/usr/local/lib/glib-2.0/include (found suitable version "2.68.3", minimum required is "2.44.0") -- Found the following HarfBuzz libraries: -- HarfBuzz (required): /usr/local/lib/libharfbuzz.dylib -- ICU (required): /usr/local/lib/libharfbuzz-icu.dylib -- Found HarfBuzz: /usr/local/include/harfbuzz (found suitable version "2.8.2", minimum required is "0.9.18") -- Found the following ICU libraries: -- data (required) -- i18n (required) -- uc (required) -- Found ICU: /usr/local/opt/icu4c/include (found suitable version "69.1", minimum required is "60.2") -- Found JPEG: /usr/local/lib/libjpeg.dylib (found version "90") -- Found LibXml2: /usr/lib/libxml2.dylib (found suitable version "2.9.4", minimum required is "2.8.0") -- Found ZLIB: /usr/local/opt/zlib/lib/libz.dylib (found version "1.2.11") -- Found PNG: /usr/local/lib/libpng.dylib (found version "1.6.37") -- Found SQLite3: /usr/local/opt/sqlite/lib/libsqlite3.dylib (found version "3.36.0") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Checking for module 'atk' -- Found atk, version 2.36.0 -- Found ATK: /usr/local/include/atk-1.0 (found suitable version "2.36.0", minimum required is "2.16.0") -- Found the following WebP libraries: -- WebP (required): /usr/local/lib/libwebp.dylib -- demux (required): /usr/local/lib/libwebpdemux.dylib -- Found WebP: /usr/local/include -- Checking for module 'atspi-2' -- No package 'atspi-2' found -- Could NOT find ATSPI (missing: ATSPI_INCLUDE_DIRS ATSPI_LIBRARIES) (Required is at least version "2.5.3") -- Checking for module 'egl' -- No package 'egl' found -- Could NOT find EGL (missing: EGL_INCLUDE_DIRS EGL_LIBRARIES) -- Checking for module 'gl' -- No package 'gl' found -- Found OpenGL: /usr/X11R6/include -- Looking for include file GL/glx.h -- Looking for include file GL/glx.h - found -- Checking for module 'glesv2' -- No package 'glesv2' found -- Found OpenGLES2: /usr/X11R6/include -- Disabling ENABLE_MEDIA_CONTROLS_SCRIPT since ENABLE_VIDEO is disabled. -- Disabling ENABLE_MEDIA_SOURCE since ENABLE_VIDEO is disabled. -- Disabling ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN since ENABLE_VIDEO is disabled. -- Disabling USE_GSTREAMER_GL since ENABLE_VIDEO is disabled. -- Disabling USE_WPE_RENDERER since ENABLE_WAYLAND_TARGET is disabled. -- Checking for module 'gtk+-3.0' -- Found gtk+-3.0, version 3.24.30 -- Checking for module 'gtk+-unix-print-3.0' -- Found gtk+-unix-print-3.0, version 3.24.30 -- Found GTK: 3.24.30 (Required is at least version "3.22.0") -- Found LibSoup: /usr/local/include/libsoup-2.4 (found suitable version "2.72.0", minimum required is "2.54.0") -- Found LibXslt: /usr/lib/libxslt.dylib (found suitable version "1.1.29", minimum required is "1.1.7") -- Checking for module 'libsecret-1' -- Found libsecret-1, version 0.20.4 -- Found Libsecret: /usr/local/Cellar/libffi/3.3_3/include;/usr/local/Cellar/pcre/8.45/include;/usr/local/Cellar/glib/2.68.3/include;/usr/local/Cellar/glib/2.68.3/include/glib-2.0;/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include;/usr/local/opt/gettext/include;/usr/local/Cellar/libsecret/0.20.4/include/libsecret-1;/usr/local/Cellar/zlib/1.2.11/include -- Checking for module 'gobject-introspection-1.0' -- Found gobject-introspection-1.0, version 1.68.0 -- Checking for module 'libtasn1' -- Found libtasn1, version 4.17.0 -- Found Libtasn1: /usr/local/lib/libtasn1.dylib CMake Error at Source/cmake/OptionsGTK.cmake:339 (message): Either GLX or EGL is needed. Call Stack (most recent call first): Source/cmake/WebKitCommon.cmake:212 (include) CMakeLists.txt:16 (include) -- Configuring incomplete, errors occurred! See also "/tmp/webkitgtk-20210807-29667-5h852i/webkitgtk-2.32.1/CMakeFiles/CMakeOutput.log". See also "/tmp/webkitgtk-20210807-29667-5h852i/webkitgtk-2.32.1/CMakeFiles/CMakeError.log". /usr/local/Homebrew/Library/Homebrew/shims/scm/git --version /usr/bin/curl --version /usr/local/Homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise' BuildError: Failed executing: cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/webkitgtk/2.32.1 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DBUILD_TESTING=OFF -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -GNinja -DPORT=GTK -DENABLE_X11_TARGET=OFF -DENABLE_WAYLAND_TARGET=OFF -DENABLE_QUARTZ_TARGET=ON -DENABLE_TOOLS=ON -DENABLE_MINIBROWSER=OFF -DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DENABLE_GEOLOCATION=OFF -DENABLE_WEBGL=OFF -DUSE_LIBNOTIFY=ON -DUSE_LIBHYPHEN=OFF -DENABLE_GAMEPAD=OFF -DUSE_SYSTEMD=OFF -DUSE_APPLE_ICU=OFF
Thank you for your work on this! I, too, am encountering this build error (Catalina 10.15.7). I get a slightly different set of warnings
I hope that the
Error: A newer Command Line Tools release is available.
is not the issue here ;)