ahodesuka / ahoviewer

A GTK image viewer, manga reader, and booru browser
MIT License
486 stars 31 forks source link

Issue building on OSX 14.6 #134

Closed wickedwzrd closed 2 years ago

wickedwzrd commented 2 years ago

I'm running into when trying to build 2.0.0-beta. I currently have 1.6.5-1-g208482e installed and wanted to update. I have updated my system to recognize the version of curl installed through homebrew but meson will not pick this up. I am not sure on how to proceed at this point.

curl 7.80.0 (x86_64-apple-darwin18.7.0) libcurl/7.80.0 (SecureTransport) OpenSSL/1.1.1m zlib/1.2.11 brotli/1.0.9 zstd/1.5.0 libidn2/2.3.2 libssh2/1.10.0 nghttp2/1.46.0 librtmp/2.3 OpenLDAP/2.6.0
Release-Date: 2021-11-10
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL TLS-SRP UnixSockets zstd

Meson terminal error

The Meson build system
Version: 0.60.3
Source dir: /Users/user/Downloads/ahoviewer-2.0.0-beta
Build dir: /Users/user/Downloads/ahoviewer-2.0.0-beta/build
Build type: native build
Project name: ahoviewer
Project version: 1.6.5
C compiler for the host machine: cc (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C linker for the host machine: cc ld64 530
C++ compiler for the host machine: c++ (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C++ linker for the host machine: c++ ld64 530
Host machine cpu family: x86_64
Host machine cpu: x86_64
Run-time dependency threads found: YES
Found pkg-config: /usr/local/bin/pkg-config (0.29.2)
Run-time dependency glibmm-2.4 found: YES 2.66.2
Run-time dependency sigc++-2.0 found: YES 2.10.7
Run-time dependency gtk+-3.0 found: YES 3.24.30
Run-time dependency gtkmm-3.0 found: YES 3.24.5
Run-time dependency x11 found: YES 1.7.3.1
Run-time dependency libconfig++ found: YES 1.7.3
Run-time dependency libxml-2.0 found: YES 2.9.4
Dependency libcurl found: NO found 7.54.0 but need: '>= 7.58.0'
Found CMake: /usr/local/bin/cmake (3.22.1)
Run-time dependency libcurl found: NO (tried framework and cmake)

meson.build:28:0: ERROR: Invalid version of dependency, need 'libcurl' ['>= 7.58.0'] found '7.54.0'.

A full log can be found at /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-logs/meson-log.txt

Meson error log

Build started at 2021-12-23T16:59:26.265326
Main binary: /usr/local/opt/python@3.10/bin/python3.10
Build Options: 
Python system: Darwin
The Meson build system
Version: 0.60.3
Source dir: /Users/user/Downloads/ahoviewer-2.0.0-beta
Build dir: /Users/user/Downloads/ahoviewer-2.0.0-beta/build
Build type: native build
Running command: /bin/sh version.sh --
--- stdout ---
1.6.5

--- stderr ---

Project name: ahoviewer
Project version: 1.6.5
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -L/usr/local/opt/curl/lib
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C linker for the host machine: cc ld64 530
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -L/usr/local/opt/curl/lib
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/sanitycheckcpp.exe
C++ compiler for the host machine: c++ (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C++ linker for the host machine: c++ ld64 530
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -L/usr/local/opt/curl/lib
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C linker for the build machine: cc ld64 530
Sanity testing C++ compiler: c++
Is cross compiler: False.
Sanity check compiler command line: c++ sanitycheckcpp.cc -o sanitycheckcpp.exe -L/usr/local/opt/curl/lib
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/sanitycheckcpp.exe
C++ compiler for the build machine: c++ (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.17)")
C++ linker for the build machine: c++ ld64 530
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Run-time dependency threads found: YES
Pkg-config binary for MachineChoice.HOST is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/local/bin/pkg-config (0.29.2)
Determining dependency 'glibmm-2.4' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion glibmm-2.4` -> 0
2.66.2
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags glibmm-2.4` -> 0
-I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/glibmm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/glibmm-2.4/include -I/usr/local/Cellar/glib/2.70.2/include -I/usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/libsigc++@2/2.10.7/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++@2/2.10.7/lib/sigc++-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs glibmm-2.4` -> 0
-L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/libsigc++@2/2.10.7/lib -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lintl -lsigc-2.0
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs glibmm-2.4` -> 0
-L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -L/usr/local/Cellar/libsigc++@2/2.10.7/lib -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lintl -lsigc-2.0
Running compile:
Working directory:  /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpyx3h_n7l
Command line:  c++ -L/usr/local/opt/curl/lib /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpyx3h_n7l/testfile.cpp -o /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpyx3h_n7l/output.exe -O0 -fpermissive -Werror=implicit-function-declaration 

Code:
 #include<stdio.h>

        int main(void) {
            printf("%ld\n", (long)(sizeof(void *)));
            return 0;
        }
Compiler stdout:

Compiler stderr:

Program stdout:

8

Program stderr:

Running compile:
Working directory:  /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpe03_zj1r
Command line:  c++ /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpe03_zj1r/testfile.cpp -o /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/tmpe03_zj1r/output.obj -c -O0 -fpermissive -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument --print-search-dirs 

Code:

Compiler stdout:
 programs: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
libraries: =/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0

Compiler stderr:

Run-time dependency glibmm-2.4 found: YES 2.66.2
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'sigc++-2.0' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion sigc++-2.0` -> 0
2.10.7
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags sigc++-2.0` -> 0
-I/usr/local/Cellar/libsigc++@2/2.10.7/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++@2/2.10.7/lib/sigc++-2.0/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs sigc++-2.0` -> 0
-L/usr/local/Cellar/libsigc++@2/2.10.7/lib -lsigc-2.0
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs sigc++-2.0` -> 0
-L/usr/local/Cellar/libsigc++@2/2.10.7/lib -lsigc-2.0
Run-time dependency sigc++-2.0 found: YES 2.10.7
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gtk+-3.0' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion gtk+-3.0` -> 0
3.24.30
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags gtk+-3.0` -> 0
-I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0 -I/usr/local/Cellar/glib/2.70.2/include/gio-unix-2.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/libepoxy/1.5.9/include -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/fribidi/1.0.11/include/fribidi -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I/usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.3.1/include -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libtiff/4.3.0/include -I/usr/local/Cellar/glib/2.70.2/include -I/usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/xorgproto/2021.5/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs gtk+-3.0` -> 0
-L/usr/local/Cellar/gtk+3/3.24.30_1/lib -L/usr/local/Cellar/pango/1.50.3/lib -L/usr/local/Cellar/harfbuzz/3.2.0/lib -L/usr/local/Cellar/atk/2.36.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/gdk-pixbuf/2.42.6/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -lgtk-3 -lgdk-3 -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs gtk+-3.0` -> 0
-L/usr/local/Cellar/gtk+3/3.24.30_1/lib -L/usr/local/Cellar/pango/1.50.3/lib -L/usr/local/Cellar/harfbuzz/3.2.0/lib -L/usr/local/Cellar/atk/2.36.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/gdk-pixbuf/2.42.6/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -lgtk-3 -lgdk-3 -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
Run-time dependency gtk+-3.0 found: YES 3.24.30
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'gtkmm-3.0' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion gtkmm-3.0` -> 0
3.24.5
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags gtkmm-3.0` -> 0
-I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/gtkmm3/3.24.5/include/gtkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gtkmm-3.0/include -I/usr/local/Cellar/atkmm@2.28/2.28.2/include/atkmm-1.6 -I/usr/local/Cellar/atkmm@2.28/2.28.2/lib/atkmm-1.6/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0/unix-print -I/usr/local/Cellar/gtkmm3/3.24.5/include/gdkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gdkmm-3.0/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/giomm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/giomm-2.4/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0 -I/usr/local/Cellar/glib/2.70.2/include/gio-unix-2.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/libepoxy/1.5.9/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/pangomm@2.46/2.46.2/include/pangomm-1.4 -I/usr/local/Cellar/pangomm@2.46/2.46.2/lib/pangomm-1.4/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/glibmm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/glibmm-2.4/include -I/usr/local/Cellar/cairomm@1.14/1.14.3/include/cairomm-1.0 -I/usr/local/Cellar/cairomm@1.14/1.14.3/lib/cairomm-1.0/include -I/usr/local/Cellar/libsigc++@2/2.10.7/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++@2/2.10.7/lib/sigc++-2.0/include -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/fribidi/1.0.11/include/fribidi -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I/usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.3.1/include -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libtiff/4.3.0/include -I/usr/local/Cellar/glib/2.70.2/include -I/usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/xorgproto/2021.5/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs gtkmm-3.0` -> 0
-L/usr/local/Cellar/gtkmm3/3.24.5/lib -L/usr/local/Cellar/atkmm@2.28/2.28.2/lib -L/usr/local/Cellar/gtkmm3/3.24.5/lib -L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/gtk+3/3.24.30_1/lib -L/usr/local/Cellar/atk/2.36.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/Cellar/pangomm@2.46/2.46.2/lib -L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/cairomm@1.14/1.14.3/lib -L/usr/local/Cellar/libsigc++@2/2.10.7/lib -L/usr/local/Cellar/pango/1.50.3/lib -L/usr/local/Cellar/harfbuzz/3.2.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/gdk-pixbuf/2.42.6/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lgtk-3 -lgdk-3 -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics -latk-1.0 -lcairo-gobject -lgio-2.0 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs gtkmm-3.0` -> 0
-L/usr/local/Cellar/gtkmm3/3.24.5/lib -L/usr/local/Cellar/atkmm@2.28/2.28.2/lib -L/usr/local/Cellar/gtkmm3/3.24.5/lib -L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/gtk+3/3.24.30_1/lib -L/usr/local/Cellar/atk/2.36.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/Cellar/pangomm@2.46/2.46.2/lib -L/usr/local/Cellar/glibmm@2.66/2.66.2/lib -L/usr/local/Cellar/cairomm@1.14/1.14.3/lib -L/usr/local/Cellar/libsigc++@2/2.10.7/lib -L/usr/local/Cellar/pango/1.50.3/lib -L/usr/local/Cellar/harfbuzz/3.2.0/lib -L/usr/local/Cellar/cairo/1.16.0_5/lib -L/usr/local/Cellar/gdk-pixbuf/2.42.6/lib -L/usr/local/Cellar/glib/2.70.2/lib -L/usr/local/opt/gettext/lib -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lgtk-3 -lgdk-3 -Wl,-framework,Cocoa -Wl,-framework,Carbon -Wl,-framework,CoreGraphics -latk-1.0 -lcairo-gobject -lgio-2.0 -lpangomm-1.4 -lglibmm-2.4 -lcairomm-1.0 -lsigc-2.0 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl
Run-time dependency gtkmm-3.0 found: YES 3.24.5
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'x11' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion x11` -> 0
1.7.3.1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags x11` -> 0
-I/usr/local/Cellar/libx11/1.7.3.1/include -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/xorgproto/2021.5/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs x11` -> 0
-L/usr/local/Cellar/libx11/1.7.3.1/lib -lX11
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs x11` -> 0
-L/usr/local/Cellar/libx11/1.7.3.1/lib -lX11
Run-time dependency x11 found: YES 1.7.3.1
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libconfig++' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion libconfig++` -> 0
1.7.3
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags libconfig++` -> 0
-I/usr/local/Cellar/libconfig/1.7.3/include
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libconfig++` -> 0
-L/usr/local/Cellar/libconfig/1.7.3/lib -lconfig++
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libconfig++` -> 0
-L/usr/local/Cellar/libconfig/1.7.3/lib -lconfig++
Run-time dependency libconfig++ found: YES 1.7.3
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libxml-2.0' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion libxml-2.0` -> 0
2.9.4
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags libxml-2.0` -> 0
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libxml2
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libxml-2.0` -> 0
-L/usr/lib -lxml2
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libxml-2.0` -> 0
-lxml2
Run-time dependency libxml-2.0 found: YES 2.9.4
Pkg-config binary for MachineChoice.HOST is cached.
Determining dependency 'libcurl' with pkg-config executable '/usr/local/bin/pkg-config'
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --modversion libcurl` -> 0
7.54.0
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --cflags libcurl` -> 0

env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libcurl` -> 0
-L/usr/lib -lcurl
env[PKG_CONFIG_PATH]: 
Called `/usr/local/bin/pkg-config --libs libcurl` -> 0
-lcurl
Dependency libcurl found: NO found 7.54.0 but need: '>= 7.58.0'
Invalid version of dependency, need 'libcurl' ['>= 7.58.0'] found '7.54.0'.
Finding framework path by running:  c++ -v -E - 

Looking for framework libcurl in /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks
CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Found CMake: /usr/local/bin/cmake (3.22.1)
Extracting basic cmake information
CMake Toolchain: Calling CMake once to generate the compiler state
Calling CMake (['/usr/local/bin/cmake']) in /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/__CMake_compiler_info__ with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-G"
  - "Ninja"
  - "-DCMAKE_TOOLCHAIN_FILE=/Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/__CMake_compiler_info__/CMakeMesonTempToolchainFile.cmake"
  - "."
Try CMake generator: auto
Calling CMake (['/usr/local/bin/cmake']) in /Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/cmake_libcurl with:
  - "--trace-expand"
  - "--trace-format=json-v1"
  - "--no-warn-unused-cli"
  - "--trace-redirect=cmake_trace.txt"
  - "-DCMAKE_TOOLCHAIN_FILE=/Users/user/Downloads/ahoviewer-2.0.0-beta/build/meson-private/cmake_libcurl/CMakeMesonToolchainFile.cmake"
  - "."
  -- Module search paths:    ['/', '/Applications', '/Applications/Xcode.app/Contents/Applications', '/Applications/Xcode.app/Contents/Developer/Applications', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr', '/Library/Frameworks', '/System/Library/Frameworks', '/Users/user/Applications', '/opt', '/usr', '/usr/local', '/usr/local/Cellar/cmake/3.22.1']
  -- CMake root:             /usr/local/Cellar/cmake/3.22.1/share/cmake
  -- CMake architectures:    []
  -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share']
Preliminary CMake check failed. Aborting.
Run-time dependency libcurl found: NO (tried framework and cmake)

meson.build:28:0: ERROR: Invalid version of dependency, need 'libcurl' ['>= 7.58.0'] found '7.54.0'.
wickedwzrd commented 2 years ago

I was able to get meson running by adding set -gx PKG_CONFIG_PATH "/usr/local/opt/curl/lib/pkgconfig" to my fish config. However now I have an issue running ninja.

I could end up figuring it out but I wanted to update that I fixed the meson issue and see if you might know the issue with ninja.


[6/38] Generating src/version.h with a custom command
fatal: not a git repository (or any of the parent directories): .git
[20/38] Compiling C++ object src/ahoviewer.p/image.cc.o
FAILED: src/ahoviewer.p/image.cc.o 
c++ -Isrc/ahoviewer.p -Isrc -I../src -I../ext/entities -I../ext/date/include -I../ext/json -I../ext/libnsgif -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/glibmm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/glibmm-2.4/include -I/usr/local/Cellar/glib/2.70.2/include -I/usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/libsigc++@2/2.10.7/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++@2/2.10.7/lib/sigc++-2.0/include -I/usr/local/Cellar/gtkmm3/3.24.5/include/gtkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gtkmm-3.0/include -I/usr/local/Cellar/atkmm@2.28/2.28.2/include/atkmm-1.6 -I/usr/local/Cellar/atkmm@2.28/2.28.2/lib/atkmm-1.6/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0/unix-print -I/usr/local/Cellar/gtkmm3/3.24.5/include/gdkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gdkmm-3.0/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/giomm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/giomm-2.4/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0 -I/usr/local/Cellar/glib/2.70.2/include/gio-unix-2.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/libepoxy/1.5.9/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/pangomm@2.46/2.46.2/include/pangomm-1.4 -I/usr/local/Cellar/pangomm@2.46/2.46.2/lib/pangomm-1.4/include -I/usr/local/Cellar/cairomm@1.14/1.14.3/include/cairomm-1.0 -I/usr/local/Cellar/cairomm@1.14/1.14.3/lib/cairomm-1.0/include -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/fribidi/1.0.11/include/fribidi -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I/usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.3.1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libtiff/4.3.0/include -I/usr/local/Cellar/xorgproto/2021.5/include -I/usr/local/Cellar/libconfig/1.7.3/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -I/usr/local/Cellar/curl/7.80.0_1/include -fcolor-diagnostics -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O0 -g -Wno-attributes -DHAS_REMOTE_API=1 -DHAS_UNCAUGHT_EXCEPTIONS=1 -MD -MQ src/ahoviewer.p/image.cc.o -MF src/ahoviewer.p/image.cc.o.d -o src/ahoviewer.p/image.cc.o -c ../src/image.cc
../src/image.cc:196:38: error: implicit instantiation of undefined template 'std::__1::array<unsigned char, 4>'
        std::array<unsigned char, 4> data;
                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
1 error generated.
[25/38] Compiling C++ object src/ahoviewer.p/imagelist.cc.o
ninja: build stopped: subcommand failed.```
ahodesuka commented 2 years ago

First issue was because your curl version was less than 7.58.0. The recent compiler error seems like there's a missing #include <array> in src/image.cc

wickedwzrd commented 2 years ago

I had to add #include <array> in the mainwindow.cc file as well

[3/4] Compiling C++ object src/ahoviewer.p/mainwindow.cc.o
FAILED: src/ahoviewer.p/mainwindow.cc.o 
c++ -Isrc/ahoviewer.p -Isrc -I../src -I../ext/entities -I../ext/date/include -I../ext/json -I../ext/libnsgif -I/usr/local/Cellar/libffi/3.4.2/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/glibmm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/glibmm-2.4/include -I/usr/local/Cellar/glib/2.70.2/include -I/usr/local/Cellar/glib/2.70.2/include/glib-2.0 -I/usr/local/Cellar/glib/2.70.2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -I/usr/local/Cellar/libsigc++@2/2.10.7/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++@2/2.10.7/lib/sigc++-2.0/include -I/usr/local/Cellar/gtkmm3/3.24.5/include/gtkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gtkmm-3.0/include -I/usr/local/Cellar/atkmm@2.28/2.28.2/include/atkmm-1.6 -I/usr/local/Cellar/atkmm@2.28/2.28.2/lib/atkmm-1.6/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0/unix-print -I/usr/local/Cellar/gtkmm3/3.24.5/include/gdkmm-3.0 -I/usr/local/Cellar/gtkmm3/3.24.5/lib/gdkmm-3.0/include -I/usr/local/Cellar/glibmm@2.66/2.66.2/include/giomm-2.4 -I/usr/local/Cellar/glibmm@2.66/2.66.2/lib/giomm-2.4/include -I/usr/local/Cellar/gtk+3/3.24.30_1/include/gtk-3.0 -I/usr/local/Cellar/glib/2.70.2/include/gio-unix-2.0 -I/usr/local/Cellar/cairo/1.16.0_5/include/cairo -I/usr/local/Cellar/libepoxy/1.5.9/include -I/usr/local/Cellar/atk/2.36.0/include/atk-1.0 -I/usr/local/Cellar/pangomm@2.46/2.46.2/include/pangomm-1.4 -I/usr/local/Cellar/pangomm@2.46/2.46.2/lib/pangomm-1.4/include -I/usr/local/Cellar/cairomm@1.14/1.14.3/include/cairomm-1.0 -I/usr/local/Cellar/cairomm@1.14/1.14.3/lib/cairomm-1.0/include -I/usr/local/Cellar/pango/1.50.3/include/pango-1.0 -I/usr/local/Cellar/harfbuzz/3.2.0/include/harfbuzz -I/usr/local/Cellar/fribidi/1.0.11/include/fribidi -I/usr/local/Cellar/graphite2/1.3.14/include -I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 -I/usr/local/Cellar/fontconfig/2.13.1/include -I/usr/local/opt/freetype/include/freetype2 -I/usr/local/Cellar/libpng/1.6.37/include/libpng16 -I/usr/local/Cellar/libxcb/1.14_1/include -I/usr/local/Cellar/libxrender/0.9.10/include -I/usr/local/Cellar/libxext/1.3.4/include -I/usr/local/Cellar/libx11/1.7.3.1/include -I/usr/local/Cellar/libxau/1.0.9/include -I/usr/local/Cellar/libxdmcp/1.1.3/include -I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 -I/usr/local/Cellar/libtiff/4.3.0/include -I/usr/local/Cellar/xorgproto/2021.5/include -I/usr/local/Cellar/libconfig/1.7.3/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -I/usr/local/Cellar/curl/7.80.0_1/include -fcolor-diagnostics -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O0 -g -Wno-attributes -DHAS_REMOTE_API=1 -DHAS_UNCAUGHT_EXCEPTIONS=1 -MD -MQ src/ahoviewer.p/mainwindow.cc.o -MF src/ahoviewer.p/mainwindow.cc.o.d -o src/ahoviewer.p/mainwindow.cc.o -c ../src/mainwindow.cc
../src/mainwindow.cc:912:33: error: no viable constructor or deduction guide for deduction of template arguments of 'array'
    static constexpr std::array ui_names{