Here is a step by step solution if you want the WP43S to run on OSX.
1 Install XCode from the App Store.
2 Clone the source code of the WP43S project by opening Xcode and clone a project using this link:
(Cloning the project has some advantages over downloading the code.
It makes sure XCode tracks the changes for example.)
I first tried to use Homebrew for all the packages we need. However that gave me issues and I switched to Macports. So:
3 Install MacPorts using this guide:
https://guide.macports.org/chunked/inst ... ports.html
4 After install the following macports one by one:
sudo port install gcc9
sudo port install gtk3
sudo port install freeType
sudo port install pkgconfig
sudo port install x11
sudo port install dbus
5 Then run the makefile form the root directory of the project (probably wp43s)
6 When the project has successfully compiled, run the program, for example like this: ./wp43s
From the terminal window I got the following warning:
Gtk-WARNING **: 11:23:52.903: Locale not supported by C library.
Using the fallback 'C' locale.
Solve this by entering:
... or similar locale settings.
When you get this error:
dbus: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist
After that I get no more warnings or error messages:
On the first 'make' I got error messages about header files that could not be found. I solved this by adding the following lines to the makefile,
else ifeq ($(detected_OS),Darwin) # Mac OS X
CFLAGS += -D OSX
CFLAGS += -I/opt/local/include/
CFLAGS += -I/opt/local/include/glib-2.0/
CFLAGS += -I/opt/local/lib/glib-2.0/include/
CFLAGS += -I/opt/local/include/gtk-3.0/
CFLAGS += -I/opt/local/include/pango-1.0/
CFLAGS += -I/opt/local/include/cairo/
CFLAGS += -I/opt/local/include/gdk-pixbuf-2.0/
CFLAGS += -I/opt/local/include/atk-1.0/
CFLAGS += -I/opt/local/include/freetype2
On my machine I put the project into ~/wp43s.
However, the application searches for the wp43s_pre.css in the local home directory. If no calculator window comes up, copy the css-file:
cp wp43s_pre.css ~
Let me know if this does not work.
General discussion about calculators, Swiss Micros or otherwise
1 post • Page 1 of 1