Closed wickedwzrd closed 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.```
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
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{
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.
Meson terminal error
Meson error log