bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doubt about plotting on MAC OS X Catalina


From: Antonio Juan
Subject: Re: Doubt about plotting on MAC OS X Catalina
Date: Thu, 28 Nov 2019 10:31:44 +0100

Thanks for your replies I'm using OSX Catalina 10.15.1,

Like I commented, I have gnu-apl installed with homebrew and it works well except for the Plot feature.

So it was a problem with X11 and GTK, for the X11 Lib I need Xquartz from https://www.xquartz.org/
This puts the X11 on /opt/X11, I also have this strange behavior, that I asked on stack overflow: https://stackoverflow.com/questions/59072106/do-not-understanig-mac-osx-x11

Then I managed to Install Gtk with home-brew I installed gtk+ and gtk+3, like this:
https://stackoverflow.com/a/20114598/1900722

export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
brew info gtk+3
gtk+3: stable 3.24.12 (bottled)

brew info gtk
gtk+: stable 2.24.32 (bottled), HEAD

https://stackoverflow.com/questions/20098862/how-to-install-gtk-on-osx-for-use-with-g-gcc-compiler

Anf during make I get this error:

g++ -DHAVE_CONFIG_H -I. -I..    -Wall -I sql -Werror      -g -O2 -MT apl-Quad_PLOT.o -MD -MP -MF .deps/apl-Quad_PLOT.Tpo -c -o apl-Quad_PLOT.o `test -f 'Quad_PLOT.cc' || echo './'`Quad_PLOT.cc
Quad_PLOT.cc:79:1: error: control reaches end of non-void function
      [-Werror,-Wreturn-type]
}
^
1 error generated.
make[3]: *** [apl-Quad_PLOT.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I hope that I could explain it.


El 27 nov 2019, a las 16:48, Peter Teeson <address@hidden> escribió:

Hi:
The Macintosh operating system used to be called OS X 
Then it was renamed macOS. That was around the time Apple created a spin off iOS for their mobile devices.

So these days people refer to the hardware as Macs (both desktop and laptop)
And iPhone, iPad, iWatch for their mobile devices.

What make of Mac do you have? What version of macOS?

If you have questions I will try to help.

Peter

On Nov 27, 2019, at 7:12 AM, Dr. Jürgen Sauermann <mail@xn--jrgen-sauermann-zvb.de> wrote:

Hi,

there is a very nice description of how to install GNU APL on Macintosh written
by Peter Teeson. You can find in in the HOWTOs directory.

I don't know if Macintosh uses OSX, but Peters document is anyhow worthwhile reading.

BTW I have updated the ⎕PLOT error message to be more specific as to which library is missing.

Best Rgeards,
Jürgen Sauermann


On 11/27/19 12:32 PM, Antonio Juan wrote:
Thanks; I need to completely read the GNU-APL DOC, sorry about that

You are right the problem is with the libxcb.

⎕plot 1 2 3 4 5
SYNTAX ERROR+
      ⎕PLOT 1 2 3 4 5
      ^
      )MORE
⎕PLOT is not available because either no libxcb library was found on this
system when GNU APL was compiled, or because it was disabled in ./configure.

Exist a tutorials for building gnu-apl in OSX

Thanks for your time

Toni 

El 26 nov 2019, a las 17:27, Dr. Jürgen Sauermann <address@hidden> escribió:

Hi Toni,

the + character after
SYNTAX ERROR (or any other APL error) indicates that there
is more information available regarding that error. The additional information
can be displayed with command )MORE.

I suspect that in this particular case libraries needed for plotting (essentially libX11.so,
libxcb.so, and libX11-xcb.so) were missing on the platform where GNU APL was compiled
(i.e. your own machine if you compiled from source or the build machine of a package if
you installed a binary package).

For ⎕PLOT to work, you may need to compile the interpreter from source with the required
X libraries installed beforehand.

Best Regards,
Jürgen Sauermann


On 11/26/19 2:27 PM, Antonio Juan wrote:
Thanks for this awesome software. I have installed gnu plot 1.8 from brew package. It works well, and good integration with emacs. So it is a good environment for learning APL.

The only think is that when I try to plot I always get the following error:

       ⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
SYNTAX ERROR+
      ⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
      ^

I do not see anywhere, if is needed to load a workspace, or the needed for some environment configuration during installation. So really I do not know how to proceed.

Thanks for your time

Toni







reply via email to

[Prev in Thread] Current Thread [Next in Thread]