in reply to Re^2: Prima + MCE::Hobo demonstration
in thread Prima + MCE::Hobo demonstration

Hi Mario,

On my Mac setup, you actually don't even need to say WITH_GTK2=0.


Replies are listed 'Best First'.
Re^4: Prima + MCE::Hobo demonstration
by marioroy (Parson) on May 03, 2017 at 20:48 UTC

    Hi dk,

    Some time ago, I tried Mono (C#) on the Mac. That ships with Gtk2 libraries and header files. For Prima to compile successfully, I'm having to specify WITH_GTK2=0. Otherwise, I get the following error: 'gdk/gdkx.h' file not found.

    perl Makefile.PL make ... cc -c -Iinclude -Iinclude/generic -I/opt/X11/include -I/opt/X11/include/freetype2 -I/opt/X11/include/cairo -I/opt/X11/include/pixman-1 -I/opt/X11/include/libpng16 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/gtk-2.0 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/lib/gtk-2.0/includ +e -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/atk-1.0 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/gdk-pixbuf +-2.0 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/pango-1.0 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/4.8.1/lib/glib-2.0/inclu +de -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include -I/Library/Frameworks/Mono.framework/Versions/4.8.1/include/libpng14 -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -Os -DVERSION=\"1.51\" -DXS_VER +SION=\"1.51\" "-I/System/Library/Perl/5.18/darwin-thread-multi-2leve +l/CORE" unix/gtk.c -o unix/gtk.o unix/gtk.c:15:10: fatal error: 'gdk/gdkx.h' file not found #include <gdk/gdkx.h> ^ 1 error generated. make: *** [unix/gtk.o] Error 1

    I'm curious and like to try building Gtk+ on the Mac. That means building PCRE, libffi, GLib, ATK, gdk-pixbuf, Cairo, Pango, and GTK+ 2. I'm not sure if this list covers all the dependencies, but is a start. Then will build Prima again with Gtk+. If successful, will post the steps taken.

    Regards, Mario

    Update: Prima in trunk now builds successfully with the Gtk headers and libraries included in Mono. Thank you, Dmitry. Ensure Mono is in your PATH inside .bash_profile and restart the terminal application. Or simply add the PATH manually.