Faq /
MacOSX
How to build (X)MedCon on macOS?
MacPorts
Definitely the way to go when you need to compile the command line (CLI) as well as the graphical (GUI) tool. Here Gtk+2 is primarily based on X11. The Portfile is updated to a current version.
- install MacPorts for your macOS version;
- in a terminal run
"gcc -version"
; - when not available, you'll be asked to install Xcode: the small and snappy CLT flavour is sufficient (aka command line tools; beware that the full Xcode option will download around 8GB ...)
- in a terminal run
"sudo port install xorg-server"
. (the X server is a prerequisite for the GUI's display).
Either
- in a terminal run
"sudo port install xmedcon"
; (this will download, unpack, configure, make & install MacPort's current port version);
Or do this by yourself downloading the most recent source version.
After a restart of the system, you should be able to run "medcon"
or "xmedcon"
from your terminal. Running the GUI for the first time will take some delay because of X server loading.
Homebrew
- Gtk2 (<= 0.17.0)
Homebrew is fine for the command line tool. The GUI however doesn't run as smoothly because
- Gtk+2 seems solely based on (unmaintained) XQuartz.
- An unimplemented function
(gdk_font_load_for_display)
resulted in a woeful Gtk-ERROR. - Serious performance issues due to Apple deprecating OpenGL.
- Yet mysterious segmentation faults with zoom in / out, ...
None of those annoying issues are experienced with MacPorts/X11.
- Gtk3 (>= 0.21.0)
- $ brew install gtk+3
- $ brew install gdk-pixbuf
- $ brew install adwaita-icon-theme