Compiling Prima on Mac OS X.

These days, OS X doesn't ship with X11. Fortunately, XQuartz is available from https://www.xquartz.org. That provides the Mac with X11 support and ships with freetype2 and PNG libraries including header files. XQuartz installs under /opt/X11.

Below, one may need to run with configure --prefix=/opt/X11 when building the GIF and JPEG libraries. For unknown reasons, Prima does not check /usr/local on my system.

GIF: https://sourceforge.net/projects/giflib/files/

tar xjf giflib-5.1.4.tar.bz2 cd giflib-5.1.4 ./configure --prefix=/opt/X11 make sudo make install

JPEG: http://www.ijg.org/files/

tar xf jpegsrc.v9b.tar.gz cd jpeg-9b ./configure --prefix=/opt/X11 make sudo make install

Prima: https://metacpan.org/pod/Prima

tar xf Prima-1.51.tar.gz cd Prima-1.51 PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig perl Makefile.PL X11BASE=/opt/X +11 WITH_GTK2=0 make sudo make install

Unfortunately, the fonts aren't as nice as running a Tk app. It did find freetype2 when building Prima. For help, I sent the author an email about why fonts have a staircase look.

Regards, Mario

Update: The author confirm Prima selecting bitmap (core X11 fonts) over freetypes.


In reply to Re: 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.