Running STFL (Terminal UI) on the Mac is possible. Four small changes are needed inside three files.

diff -ur stfl-0.24/Makefile stfl-0.24.new/Makefile --- stfl-0.24/Makefile 2015-02-12 07:14:33.000000000 -0600 +++ stfl-0.24.new/Makefile 2017-10-10 02:40:59.000000000 -0500 @@ -22,7 +22,7 @@ export CC = gcc -pthread export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC -export LDLIBS += -lncursesw +export LDLIBS += -lncurses -liconv SONAME := libstfl.so.0 VERSION := 0.24 @@ -39,7 +39,7 @@ libstfl.so.$(VERSION): public.o base.o parser.o dump.o style.o bindin +g.o iconv.o \ $(patsubst %.c,%.o,$(wildcard widgets/*.c)) - $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $(LDLIBS) $^ + $(CC) -shared -Wl,-install_name,$(SONAME) -o $@ $(LDLIBS) $^ clean: rm -f libstfl.a example core core.* *.o Makefile.deps diff -ur stfl-0.24/perl5/Makefile.PL stfl-0.24.new/perl5/Makefile.PL --- stfl-0.24/perl5/Makefile.PL 2007-09-03 11:13:49.000000000 -0500 +++ stfl-0.24.new/perl5/Makefile.PL 2017-10-10 02:37:34.000000000 - +0500 @@ -3,6 +3,6 @@ "NAME" => "stfl", # The -D_LARGEFILE64_SOURCE -D_GNU_SOURCE are needed by perl (not + STFL!) on some systems "CCFLAGS" => "-pthread -I.. -D_LARGEFILE64_SOURCE -D_GNU_SOURCE +", - "LIBS" => ["-lpthread -lncursesw"], + "LIBS" => ["-lpthread -lncurses -liconv"], "OBJECT" => "stfl_wrap.o ../libstfl.a" ); diff -ur stfl-0.24/stfl_internals.h stfl-0.24.new/stfl_internals.h --- stfl-0.24/stfl_internals.h 2015-01-05 04:47:32.000000000 -0600 +++ stfl-0.24.new/stfl_internals.h 2017-10-10 02:23:32.000000000 -0 +500 @@ -28,7 +28,7 @@ #endif #include "stfl.h" -#include <ncursesw/ncurses.h> +#include <ncurses.h> #include <pthread.h> struct stfl_widget_type;

Swig is needed for making the Perl module later on.

$ tar xzf $HOME/Downloads/swig-3.0.12.tar.gz $ cd swig-3.0.12 $ ./configure $ make $ sudo make install

Afterwards, follow the instructions found here.

Regards, Mario


In reply to Re: STFL Terminal UI - Concurrency Demonstrations by marioroy
in thread STFL Terminal UI - Concurrency Demonstrations 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.