Installing WP43S on OSX (Mac)

General discussion about calculators, Swiss Micros or otherwise
Post Reply
Posts: 1
Joined: Sat Sep 21, 2019 1:54 pm

Installing WP43S on OSX (Mac)

Post by hoverbeek » Tue Sep 24, 2019 10:54 am

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: ... 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:

export LC_ALL="en_US"
export LANG="en_US"
export LANGUAGE="en_US"
export C_CTYPE="en_US"
export LC_NUMERIC=
export LC_TIME=en"en_US"

... or similar locale settings.

When you get this error:

dbus[1369]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!

use this:

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 += -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.

Post Reply