Bug 1166 - Workrave needs a few minor fixes to compile on OS X Mavericks
Status:
RESOLVED WONTFIX
Component:
Core :: UNIX
Version:
daily
Hardware:
Macintosh Mac OS
Importance:
P5 major
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
May 31 2014 09:36:09 UTC
by:
Sean
Modified:
Dec 23 2015 20:17:58 UTC
CC List:
Sean
WhoWhenWhatRemovedAdded
SeanMay 31 2014 09:36:41 UTCccSean
Rob CaelersDec 23 2015 20:17:58 UTCstatusNEWRESOLVED
resolutionWONTFIX
Description
Sean  May 31 2014 09:36:09 UTC
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 you 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


------------------------What I did-----------------

Install/Upgrade Xcode: https://developer.apple.com/xcode/downloads/
run 'xcode-select —install’ to install the CLI tools
Install/Upgrade XQuartz: http://xquartz.macosforge.org/landing/
Install Homebrew: http://brew.sh/

brew update
brew install gtk+ gtkmm gettext automake autoconf git python wget
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install cheetah
git clone gi**@gi**.com: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
Comment 1
Rob Caelers  Dec 23 2015 20:17:58 UTC
The Gtk OS X port of Workrave is not longer maintained (at least not by me). I'm currently porting Workrave to Qt5. Feel free to submit pull request to fix the Gtk/OSX port. But I'm not going to fix any Gtk/OSX issues anymore.