Post Reply 
x11-calc Updated
05-01-2024, 10:44 AM (This post was last modified: 05-01-2024 10:45 AM by Thomas Klemm.)
Post: #2
RE: x11-calc Updated
I've downloaded the latest release v0.14.0148.zip.
When I run make I get the following result:
Code:
makefile.bsd:43: *** missing separator.  Stop.
make[1]: *** [all] Error 2
make: *** [hp35] Error 2

I'm using an Apple M2 Pro with macOS Sonoma 14.4.1 (23E224).
make is /usr/bin/make:
Code:
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

After checking the file src/makefile.bsd I commented out the if-statements:
Code:
# Operating system specific settings
#.if ${OS} == "NetBSD"
#LANG   = LANG_en
#LDLIBS += -lcompat
#CFLAGS += -Wno-variadic-macros
#CFLAGS += -I/usr/X11R7/include/
#LDFLAGS    += -L/usr/X11R7/lib/ -R /usr/X11R7/lib
#.endif

#.if ${OS} == "Darwin" # MacOS
LANG    = LANG_en
CFLAGS  += -I/opt/X11/include/X11/
LDFLAGS += -L/opt/X11/lib/
#.endif

When running make after that I got:
Code:
x11-calc.c:330:10: fatal error: 'X11/Xlib.h' file not found
#include <X11/Xlib.h>  /* XOpenDisplay(), etc */
         ^~~~~~~~~~~~
1 error generated.
make[2]: *** [x11-calc.o_HP35] Error 1
make[1]: *** [all] Error 2
make: *** [hp35] Error 2

Based on the README.md I have installed xquartz.
The files are installed under /opt/X11/include and /opt/X11/lib.
Therefore I changed the path to:
Code:
CFLAGS  += -I/opt/X11/include/

And with these changes the programs compiled and I was able to start e.g. bin/x11-calc-15c --zoom 2.
How cool is that?

Thanks a lot for providing these emulators.

The classic (i.e. hp35 hp45 hp70 hp80) don't seem to work unfortunately.
I noticed that the state of the calculators are written to ~/.x11-calc-<model>.dat files.
The format seems to be just a dump of bytes written in ASCII.
Are there already tools to extract and store programs into those?
Otherwise that would be a nice enhancement.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
x11-calc Updated - Mike T. - 04-30-2024, 10:34 PM
RE: x11-calc Updated - Thomas Klemm - 05-01-2024 10:44 AM
RE: x11-calc Updated - Mike T. - 05-01-2024, 10:37 PM
RE: x11-calc Updated - rncgray - 05-02-2024, 07:18 AM
RE: x11-calc Updated - macmpi - 05-03-2024, 06:45 AM
RE: x11-calc Updated - Mike T. - 05-03-2024, 10:39 PM
RE: x11-calc Updated - Thomas Klemm - 05-02-2024, 07:28 AM
RE: x11-calc Updated - Mike T. - 05-02-2024, 08:02 PM
RE: x11-calc Updated - Mike T. - 05-02-2024, 08:22 PM
RE: x11-calc Updated - Thomas Klemm - 05-02-2024, 10:02 PM
RE: x11-calc Updated - Mike T. - 05-02-2024, 11:25 PM
RE: x11-calc Updated - Thomas Klemm - 05-03-2024, 04:26 PM
RE: x11-calc Updated - Mike T. - 05-03-2024, 10:45 PM
RE: x11-calc Updated - Thomas Klemm - 05-03-2024, 04:45 PM
RE: x11-calc Updated - Mike T. - 05-03-2024, 11:19 PM
RE: x11-calc Updated - Thomas Klemm - 05-03-2024, 06:38 PM
RE: x11-calc Updated - Mike T. - 05-03-2024, 11:47 PM
RE: x11-calc Updated - Thomas Klemm - 05-04-2024, 08:06 AM
RE: x11-calc Updated - Mike T. - 05-04-2024, 01:58 PM
RE: x11-calc Updated - Thomas Klemm - 05-04-2024, 08:37 AM
RE: x11-calc Updated - Mike T. - 05-04-2024, 02:27 PM
RE: x11-calc Updated - Thomas Klemm - 05-04-2024, 03:30 PM



User(s) browsing this thread: 7 Guest(s)