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.

PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/4.8.1/bin

In reply to Re^4: Prima + MCE::Hobo demonstration by marioroy
in thread Prima + MCE::Hobo demonstration by marioroy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.