Faq /
MacOS
How to build (X)MedCon on macOS?
Tested within VirtualBox for Catalina & Monterey (x86_64)
1. prequisite
You need (X)MedCon version >= 0.21.0 for Gtk+3
Know how to open a terminal and do so.
2. development tools
Get Apple's command line tools for developers:
$ sudo xcode-select --install
3a. via Homebrew
Go get Homebrew; which installs in
/usr/local
.
Next, open a terminal and install required packages:
$ brew install gtk+3 $ brew install gdk-pixbuf $ brew install adwaita-icon-theme
Afterwards you can build (X)MedCon with the typical three steps
$ ./configure --prefix=/usr/local ; make ; sudo make install
Or instead you can use our Homebrew xmedcon.rb formula, which will load additional dependencies.
$ brew install --build-from-source xmedcon.rb
3b via MacPorts
Go get MacPorts for your macOS version; which installs in
/opt/local
.
Next, open a terminal and install required packages or load services:
$ sudo port install xorg-server $ sudo port install gtk3 $ sudo port install adwaita-icon-theme $ sudo port install pkgconfig $ sudo port load dbus
You will have to log out, and log back in for the Xorg server to be found.
Afterwards you can build (X)MedCon with the typical three steps
$ ./configure --prefix=/opt/local ; make ; sudo make install
Final remark for MacPorts: a first run of
xmedcon
will take some time due to preloading of the Xorg server.