Compiling Workrave on OS X Mavericks - 2014 Edition
"Sean P. Kane" <[email protected]> Sat, 31 May 2014 02:32:34 -0700
| Newsgroups | gmane.comp.misc.workrave.user |
|---|---|
| Message-ID | <CAPo7HaQWD2GsboEC4jxmOc9iBY5ciz5HEqcT8eTdgb1j2MrEqQ@mail.gmail.com> |
So way back in 2009, I got workrave compiling somewhat on OS X. Due to a recent request from someone who stumbled across my old post, I decided to give it another try. It is doable, although a bit clunky. Outside of mostly installing pre-requisites I had to edit 3 files to get everything to compile cleanly and run. These were configure, ./backend/src/Makefile, and ./frontend/common/src/x11/Makefile. I could submit patches, but honestly, I'm not sure exactly what changes need to be made to get the Makefiles to generate properly. It would be great if the project devs would put in the required changes for the Darwin platform, so that the makefile generate properly for the platform and the only thing really required is installing the dependencies. Sean ------------------------ Install/Upgrade Xcode: *https://developer.apple.com/xcode/downloads/ <https://developer.apple.com/xcode/downloads/>* run '*xcode-select —install’ to install the CLI tools* Install/Upgrade XQuartz: *http://xquartz.macosforge.org/landing/ <http://xquartz.macosforge.org/landing/>* Install Homebrew: *http://brew.sh/ <http://brew.sh/>* brew update brew install gtk+ gtkmm gettext automake autoconf git python wget wget *https://bootstrap.pypa.io/get-pip.py <https://bootstrap.pypa.io/get-pip.py>* python *get-pip.py* pip install cheetah git clone [email protected]:rcaelers/workrave.git cd workrave #This gets autopoint into the path export PATH=$PATH:/usr/local/Cellar/gettext/0.18.3.2/bin/ ./autogen.sh export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig” vi ./configure MODIFY THIS LINE TO LOOK LIKE THIS: DEFS="-DHAVE_CONFIG_H -D_DARWIN_C_SOURCE" ./configure vi ./backend/src/Makefile MODIFY THIS LINE TO LOOK LIKE THIS: SUBDIRS = unix win32 vi ./frontend/common/src/x11/Makefile MODIFY THIS LINE TO LOOK LIKE THIS: libworkrave_frontend_common_x11_la_CXXFLAGS = \ -DWORKRAVE_PKGDATADIR="\"${pkgdatadir}\"" \ -D_XOPEN_SOURCE=600 \ -W -I$(top_srcdir)/frontend/common/src \ -I$(top_srcdir)/frontend/common/include \ -I$(top_srcdir)/common/include -I$(top_srcdir)/backend/include -I/opt/X11/include.. ./make install Launch XQuartz /usr/local/bin/workrave ---------------------------------------------------------------------------------------------------------- Sean P. Kane [email protected] ---------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Workrave-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/workrave-user