blackhole89 / notekit

A GTK3 hierarchical markdown notetaking application with tablet support.
GNU General Public License v3.0
1.44k stars 61 forks source link

[macOS] Build fails on Sonoma: `error: 'mainwindow' cannot be captured because it does not have automatic storage duration` #158

Closed barracuda156 closed 4 months ago

barracuda156 commented 4 months ago
--->  Building notekit
Executing:  cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_gnome_notekit/notekit/work/build" && /opt/local/bin/ninja -j4 -v 
[1/10] /usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/about.cpp.o -MF notekit.p/about.cpp.o.d -o notekit.p/about.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/about.cpp
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/about.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/about.h:1:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:100:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy]
  SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
                   ^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
      ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:17: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class GTKMM_API SignalProxyChildProperty : public Glib::SignalProxyProperty
                ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
  return SignalProxyChildProperty(&child_, property_name_);
         ^
1 warning generated.
[2/10] /usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/main.cpp.o -MF notekit.p/main.cpp.o.d -o notekit.p/main.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp
FAILED: notekit.p/main.cpp.o 
/usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/main.cpp.o -MF notekit.p/main.cpp.o.d -o notekit.p/main.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:6:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:100:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy]
  SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
                   ^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
      ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:17: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class GTKMM_API SignalProxyChildProperty : public Glib::SignalProxyProperty
                ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
  return SignalProxyChildProperty(&child_, property_name_);
         ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:9:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/notebook.h:9:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm.h:176:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/buffer.h:34:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/language.h:35:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/stylescheme.h:33:
In file included from /opt/local/include/gtksourceview-3.0/gtksourceview/gtksource.h:35:
/opt/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:180:10: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
                                                                 GTimeVal      *modification_time);
                                                                 ^
/opt/local/include/glib-2.0/glib/gtypes.h:578:35: note: 'GTimeVal' has been explicitly marked deprecated here
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
                                  ^
/opt/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR'
#define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
                                            ^
/opt/local/include/glib-2.0/glib/gmacros.h:1324:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR'
#define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f)
                                    ^
/opt/local/include/glib-2.0/glib/gmacros.h:1272:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
                                           ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:9:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/notebook.h:9:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm.h:176:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/buffer.h:34:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/language.h:35:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/stylescheme.h:33:
In file included from /opt/local/include/gtksourceview-3.0/gtksourceview/gtksource.h:35:
/opt/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:184:10: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
                                                                 GTimeVal       modification_time);
                                                                 ^
/opt/local/include/glib-2.0/glib/gtypes.h:578:35: note: 'GTimeVal' has been explicitly marked deprecated here
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
                                  ^
/opt/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR'
#define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
                                            ^
/opt/local/include/glib-2.0/glib/gmacros.h:1324:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR'
#define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f)
                                    ^
/opt/local/include/glib-2.0/glib/gmacros.h:1272:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
                                           ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp:26:40: error: 'mainwindow' cannot be captured because it does not have automatic storage duration
        app->signal_activate().connect( [app,&mainwindow]() {
                                              ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/main.cpp:4:14: note: 'mainwindow' declared here
CMainWindow *mainwindow;
             ^
3 warnings and 1 error generated.
[3/10] /usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/imagewidgets.cpp.o -MF notekit.p/imagewidgets.cpp.o.d -o notekit.p/imagewidgets.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/imagewidgets.cpp
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/imagewidgets.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/imagewidgets.h:6:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:100:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy]
  SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
                   ^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
      ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:17: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class GTKMM_API SignalProxyChildProperty : public Glib::SignalProxyProperty
                ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
  return SignalProxyChildProperty(&child_, property_name_);
         ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/imagewidgets.cpp:116:
In file included from /opt/local/include/clatexmath/latex.h:5:
In file included from /opt/local/include/clatexmath/graphic/graphic.h:4:
/opt/local/include/clatexmath/graphic/graphic_basic.h:114:21: warning: unused parameter 'l' [-Wunused-parameter]
  Insets(int t, int l, int b, int r) : left(t), top(t), right(r), bottom(b) {}
                    ^
/opt/local/include/clatexmath/graphic/graphic_basic.h:150:39: warning: field 'join' will be initialized after field 'miterLimit' [-Wreorder-ctor]
    : lineWidth(1.f), cap(CAP_ROUND), join(JOIN_ROUND), miterLimit(0) {}
                      ~~~~~~~~~~~~~~  ^~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~
                      miterLimit(0)   cap(CAP_ROUND)    join(JOIN_ROUND)
/opt/local/include/clatexmath/graphic/graphic_basic.h:153:29: warning: field 'join' will be initialized after field 'miterLimit' [-Wreorder-ctor]
    : lineWidth(w), cap(c), join(j), miterLimit(ml) {}
                    ~~~~~~  ^~~~~~~  ~~~~~~~~~~~~~~
                    miterLimit(ml) cap(c) join(j)
4 warnings generated.
[4/10] /usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/drawing.cpp.o -MF notekit.p/drawing.cpp.o.d -o notekit.p/drawing.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.h:6:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:100:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy]
  SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
                   ^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
      ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:17: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class GTKMM_API SignalProxyChildProperty : public Glib::SignalProxyProperty
                ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
  return SignalProxyChildProperty(&child_, property_name_);
         ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:134:66: warning: unused parameter 'whole_stroke' [-Wunused-parameter]
void CBoundDrawing::EraseAt(float x, float y, float radius, bool whole_stroke)
                                                                 ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:226:59: warning: unused parameter 'event' [-Wunused-parameter]
bool CBoundDrawing::on_button_press_event(GdkEventButton* event)
                                                          ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:231:61: warning: unused parameter 'event' [-Wunused-parameter]
bool CBoundDrawing::on_button_release_event(GdkEventButton* event)
                                                            ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:236:60: warning: unused parameter 'event' [-Wunused-parameter]
bool CBoundDrawing::on_motion_notify_event(GdkEventMotion* event)
                                                           ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:324:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(buf,"%d,",(int) (4*raw_data.size()) );
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:373:34: warning: format specifies type 'void *' but the argument has type 'CBoundDrawing *' [-Wformat-pedantic]
        printf("Bound Drawing at %p:\n",this);
                                 ~~     ^~~~
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:375:15: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
        for(int i=0;i<strokes.size();++i) {
                    ~^~~~~~~~~~~~~~~
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:377:16: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
                for(int j=0;j<strokes[i].xcoords.size();++j) {
                            ~^~~~~~~~~~~~~~~~~~~~~~~~~~
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/drawing.cpp:386:55: warning: format specifies type 'void *' but the argument has type 'CBoundDrawing *' [-Wformat-pedantic]
        printf("drawing %p: select %.2f,%.2f -- %.2f,%.2f\n",this,x0,y0,x1,y1);
                        ~~                                   ^~~~
10 warnings generated.
[5/10] /usr/bin/clang++ -Inotekit.p -I. -I../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f -I/opt/local/include/gtkmm-3.0 -I/opt/local/lib/gtkmm-3.0/include -I/opt/local/include/atkmm-1.6 -I/opt/local/include/gtk-3.0/unix-print -I/opt/local/include/gdkmm-3.0 -I/opt/local/lib/gdkmm-3.0/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/pangomm-1.4 -I/opt/local/lib/pangomm-1.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/cairomm-1.0 -I/opt/local/lib/cairomm-1.0/include -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/fribidi -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/gtksourceviewmm-3.0 -I/opt/local/lib/gtksourceviewmm-3.0/include -I/opt/local/include/gtksourceview-3.0 -I/opt/local/include/libxml2 -I/opt/local/include/clatexmath -I/opt/local/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_ASSERTIONS=1 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c++14 -O0 -g -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -MD -MQ notekit.p/mainwindow.cpp.o -MF notekit.p/mainwindow.cpp.o.d -o notekit.p/mainwindow.cpp.o -c ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:6:
In file included from /opt/local/include/gtkmm-3.0/gtkmm.h:100:
In file included from /opt/local/include/glibmm-2.4/glibmm.h:92:
In file included from /opt/local/include/glibmm-2.4/glibmm/arrayhandle.h:21:
In file included from /opt/local/include/glibmm-2.4/glibmm/containerhandle_shared.h:24:
In file included from /opt/local/include/glibmm-2.4/glibmm/wrap.h:22:
In file included from /opt/local/include/glibmm-2.4/glibmm/objectbase.h:22:
/opt/local/include/glibmm-2.4/glibmm/signalproxy.h:69:20: warning: definition of implicit copy constructor for 'SignalProxyBase' is deprecated because it has a user-provided copy assignment operator [-Wdeprecated-copy-with-user-provided-copy]
  SignalProxyBase& operator=(const SignalProxyBase&); // not implemented
                   ^
/opt/local/include/glibmm-2.4/glibmm/propertyproxy_base.h:33:7: note: in implicit copy constructor for 'Glib::SignalProxyBase' first required here
class SignalProxyProperty : public SignalProxyBase
      ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy_base.h:36:17: note: in implicit copy constructor for 'Glib::SignalProxyProperty' first required here
class GTKMM_API SignalProxyChildProperty : public Glib::SignalProxyProperty
                ^
/opt/local/include/gtkmm-3.0/gtkmm/childpropertyproxy.h:153:10: note: in implicit move constructor for 'Gtk::SignalProxyChildProperty' first required here
  return SignalProxyChildProperty(&child_, property_name_);
         ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:9:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/notebook.h:9:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm.h:176:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/buffer.h:34:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/language.h:35:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/stylescheme.h:33:
In file included from /opt/local/include/gtksourceview-3.0/gtksourceview/gtksource.h:35:
/opt/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:180:10: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
                                                                 GTimeVal      *modification_time);
                                                                 ^
/opt/local/include/glib-2.0/glib/gtypes.h:578:35: note: 'GTimeVal' has been explicitly marked deprecated here
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
                                  ^
/opt/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR'
#define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
                                            ^
/opt/local/include/glib-2.0/glib/gmacros.h:1324:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR'
#define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f)
                                    ^
/opt/local/include/glib-2.0/glib/gmacros.h:1272:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
                                           ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:1:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.h:9:
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/notebook.h:9:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm.h:176:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/buffer.h:34:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/language.h:35:
In file included from /opt/local/include/gtksourceviewmm-3.0/gtksourceviewmm/stylescheme.h:33:
In file included from /opt/local/include/gtksourceview-3.0/gtksourceview/gtksource.h:35:
/opt/local/include/gtksourceview-3.0/gtksourceview/gtksourcefile.h:184:10: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
                                                                 GTimeVal       modification_time);
                                                                 ^
/opt/local/include/glib-2.0/glib/gtypes.h:578:35: note: 'GTimeVal' has been explicitly marked deprecated here
typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime);
                                  ^
/opt/local/include/glib-2.0/glib/glib-visibility.h:656:45: note: expanded from macro 'GLIB_DEPRECATED_TYPE_IN_2_62_FOR'
#define GLIB_DEPRECATED_TYPE_IN_2_62_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
                                            ^
/opt/local/include/glib-2.0/glib/gmacros.h:1324:37: note: expanded from macro 'GLIB_DEPRECATED_TYPE_FOR'
#define GLIB_DEPRECATED_TYPE_FOR(f) G_DEPRECATED_FOR(f)
                                    ^
/opt/local/include/glib-2.0/glib/gmacros.h:1272:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
                                           ^
In file included from ../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:17:
In file included from /opt/local/include/clatexmath/latex.h:5:
In file included from /opt/local/include/clatexmath/graphic/graphic.h:4:
/opt/local/include/clatexmath/graphic/graphic_basic.h:114:21: warning: unused parameter 'l' [-Wunused-parameter]
  Insets(int t, int l, int b, int r) : left(t), top(t), right(r), bottom(b) {}
                    ^
/opt/local/include/clatexmath/graphic/graphic_basic.h:150:39: warning: field 'join' will be initialized after field 'miterLimit' [-Wreorder-ctor]
    : lineWidth(1.f), cap(CAP_ROUND), join(JOIN_ROUND), miterLimit(0) {}
                      ~~~~~~~~~~~~~~  ^~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~
                      miterLimit(0)   cap(CAP_ROUND)    join(JOIN_ROUND)
/opt/local/include/clatexmath/graphic/graphic_basic.h:153:29: warning: field 'join' will be initialized after field 'miterLimit' [-Wreorder-ctor]
    : lineWidth(w), cap(c), join(j), miterLimit(ml) {}
                    ~~~~~~  ^~~~~~~  ~~~~~~~~~~~~~~
                    miterLimit(ml) cap(c) join(j)
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:435:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(buf,"color%d",i);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:451:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(buf,"notebook.color%d",i);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:473:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(buf,"#color%d { -gtk-icon-palette: warning rgba(%d,%d,%d,%s); }\n", i, (int)(255*std::get<0>(color)), (int)(255*std::get<1>(color)), (int)(255*std::get<2>(color)), alpha_buffer);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:472:10: warning: unused variable 'alpha' [-Wunused-variable]
                gchar* alpha = g_ascii_dtostr(alpha_buffer, 5, std::get<3>(color));
                       ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:634:41: warning: unused parameter 'any_event' [-Wunused-parameter]
bool CMainWindow::on_close(GdkEventAny* any_event)
                                        ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:749:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(error_msg,"( Failed to open %s. Please create or open a file. ) ",filename.c_str());
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
../notekit-ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/mainwindow.cpp:923:55: warning: unused parameter 'e' [-Wunused-parameter]
bool CMainWindow::on_search_lost_focus(GdkEventFocus* e)
                                                      ^
13 warnings generated.
ninja: build stopped: subcommand failed.
Command failed:  cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_gnome_notekit/notekit/work/build" && /opt/local/bin/ninja -j4 -v 
Exit code: 1
sp1ritCS commented 4 months ago

You need to apply Apple/llvm.patch in order for notekit to build. The homebrew package does this automatically.

barracuda156 commented 4 months ago

You need to apply Apple/llvm.patch in order for notekit to build. The homebrew package does this automatically.

@sp1ritCS Thank you, will try that. The patch is only needed if building with Clang, not with GCC, right?

UPD. Clang build works now, thank you. I will try if it is needed with GCC.

barracuda156 commented 4 months ago

@sp1ritCS Builds on Sonoma, but segfaults:

svacchanda@43-42 files % /opt/local/bin/notekit

(process:18440): glibmm-CRITICAL **: 04:38:14.328: Class::register_derived_type(): base_query.type_name is NULL.
WARNING: Could not create default base path '/Users/svacchanda/.local/share/notekit'. Falling back to current working directory.
== This is notekit, built at Thu Mar 14 09:08:54 2024. ==
Detected paths:
Default notes path: notesbase
Resource path: .
JSON config path: /Users/svacchanda/.config/notekit

(notekit:18440): GLib-GIO-CRITICAL **: 04:38:14.525: g_settings_new_full: assertion 'schema != NULL' failed
zsh: segmentation fault  /opt/local/bin/notekit

Did I do something wrong here? Only that patch being applied.

sp1ritCS commented 4 months ago

This is caused by

(notekit:18440): GLib-GIO-CRITICAL **: 04:38:14.525: g_settings_new_full: assertion 'schema != NULL' failed.

Which means it's unable to find the gsettings schema. It shoud automatically get installed in the right location when doing ninja install, but maybe not on osx. Maybe check if (and where) it gets installed and that glib-compile-schemas was invoked in the right directory.

Are you just attempting to build NoteKit by itself (maybe try the meson devenv), or are you attempting to package it? (in this case you might need to run glib-compile-schemas as install scriptlet)

Note: notekit also looks up the schema in it's resources dir, which in your case falls back to . so it insn't installed correctly.

barracuda156 commented 4 months ago

@sp1ritCS I am writing a port for it for MacPorts.

Here what gets installed:

a ./opt
a ./opt/local
a ./opt/local/bin
a ./opt/local/share
a ./opt/local/share/icons
a ./opt/local/share/applications
a ./opt/local/share/metainfo
a ./opt/local/share/glib-2.0
a ./opt/local/share/notekit
a ./opt/local/share/notekit/sourceview
a ./opt/local/share/notekit/data
a ./opt/local/share/notekit/data/toolbar.glade
a ./opt/local/share/notekit/data/preferences.glade
a ./opt/local/share/notekit/data/default_config.json
a ./opt/local/share/notekit/data/stylesheet.css
a ./opt/local/share/notekit/data/icons
a ./opt/local/share/notekit/data/fonts
a ./opt/local/share/notekit/data/fonts/Charter Bold.otf
a ./opt/local/share/notekit/data/fonts/Charter license.txt
a ./opt/local/share/notekit/data/fonts/Charter Bold Italic.otf
a ./opt/local/share/notekit/data/fonts/Charter Regular.otf
a ./opt/local/share/notekit/data/fonts/Charter Italic.otf
a ./opt/local/share/notekit/data/icons/hicolor
a ./opt/local/share/notekit/data/icons/hicolor/index.theme
a ./opt/local/share/notekit/data/icons/hicolor/scalable
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/large-pen-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/pick-color-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/maximize-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/maximize.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/minimize.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/medium-pen-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/pen-tool-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/small-pen-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/minimize-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/select-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/text-symbolic.svg
a ./opt/local/share/notekit/data/icons/hicolor/scalable/emblems/eraser-tool-symbolic.svg
a ./opt/local/share/notekit/sourceview/markdownlisting.lang
a ./opt/local/share/notekit/sourceview/language.rng
a ./opt/local/share/notekit/sourceview/markdown.lang
a ./opt/local/share/notekit/sourceview/language.dtd
a ./opt/local/share/notekit/sourceview/classic.xml
a ./opt/local/share/notekit/sourceview/markdown.lang.in
a ./opt/local/share/notekit/sourceview/language2.rng
a ./opt/local/share/notekit/sourceview/notekit.xml
a ./opt/local/share/notekit/sourceview/markdown-basic.lang
a ./opt/local/share/notekit/sourceview/def.lang
a ./opt/local/share/notekit/sourceview/styles.rng
a ./opt/local/share/glib-2.0/schemas
a ./opt/local/share/glib-2.0/schemas/com.github.blackhole89.notekit.gschema.xml
a ./opt/local/share/metainfo/com.github.blackhole89.notekit.metainfo.xml
a ./opt/local/share/applications/com.github.blackhole89.notekit.desktop
a ./opt/local/share/icons/hicolor
a ./opt/local/share/icons/hicolor/128x128
a ./opt/local/share/icons/hicolor/scalable
a ./opt/local/share/icons/hicolor/scalable/apps
a ./opt/local/share/icons/hicolor/scalable/apps/com.github.blackhole89.notekit.svg
a ./opt/local/share/icons/hicolor/128x128/apps
a ./opt/local/share/icons/hicolor/128x128/apps/com.github.blackhole89.notekit.png
a ./opt/local/bin/notekit

So yeah, it looks in a wrong directory for some reason.

barracuda156 commented 4 months ago

@sp1ritCS Perhaps it installs in a standard Unix way, but the code arbitrarily assumes app bundle?

UPD. Ah, that’s why, search paths are wrong: https://github.com/blackhole89/notekit/blob/ff37a8b9115bd3a023ca8c6d80ad923af8d9df8f/README.md?plain=1#L92

UPD2. Fixing the path in mainwindow did not fix the issue on its own. Will look into this further.

barracuda156 commented 4 months ago

Okay, fixed, should have called explicitly

post-activate {
    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
barracuda156 commented 4 months ago

@sp1ritCS Okay, done: https://ports.macports.org/port/notekit/details

Builds and works on PowerPC :) Here I destroy some random README: notekit