Open ERP (formerly named Tiny ERP) is an open source ERP/CRM system.
http://openerp.com/
The current stable version is v4.2.3.4 and a v5.0.0 RC3 (release
candidate 3 i.e. non stable) is also available for download on OpenERP
website.
Taktik is currently working on the OpenERP code to provide custom
implementation of this ERP to his clients.
As we, at Taktik, are developing on Apple Mac machines, we decided to
look for a decent Mac OS X 10.5 Leopard client for Open ERP.
On the OpenERP website, you can find an official client installer for
MS Windows, and sources. The official client is coded in python, using
GTK 2.0 and PyGTK to provide the graphical user interface.
On Mac OS X you can run most Unix/Linux apps using an X11 server
(freely provided by Apple) and mac ports projects like
fink. Nevertheless it provides poorly integrated app, with linux
look and feel.
Once installed PyGTK with fink and a few other packages, the official
client runs fine on Mac OS X.
Camp2camp company is providing efforts to package a GTK client
os Mac OS X, but it's not a "native" one, it runs on X11.
http://openerpcamptocamp.blogspot.com/
Looking for a "native" client, we found on Tinyforge an outdated GTK
client using a native GTK port on Mac OS X.
http://tinyforge.org/frs/?group_id=128
From the available software here and there on the internet, we knew it
would be possible to package the latest Open ERP client as a "native"
application on Mac OS X 10.5 Leopard, and we did it.
Here is the Open ERP client 4.2.3.4 app for Mac OS X Leopard.
One other option is to use Qt instead of GTK to render the graphical
interface. Qt is officially ported to Mac OS X and provided a deeper
integration with the system.
An Open ERP client using Qt is currently developed to provide integration with
the K Desktop Environment (KDE), as the GTK client is integrated with
the Gnome Desktop Environment.
The software is the KDE OpenObject Client or Koo in short.
We already packaged the stable GTK current version, in the following posts, we will deliver
the new Open ERP v5 Client and a Koo package for those who want a flavor of Qt...
Stay tuned....
--------------------------------------------------------------------------------
Here are the build instructions Taktik is pleased to share with the
community.
The goal is to package the sources with minimum patches, so we can
apply this recipe to further versions of the Open ERP client.
There are a few things to install in order to compile the native app.
First of all, you may have fink installed and you do not want it to
interfere with native version of software during compilation, so you
must remove fink from your path in your current bash.
We assume you download stuff in ~/Downloads
Get GTK-OSX and build it (instructions strongly inspired from Imendio)
http://developer.imendio.com/projects/gtk-macosx
http://live.gnome.org/GTK%2B/OSX/BuildInstructions
git clone git://github.com/rhult/gtk-osx-build.git
cd gtk-osx-build
Use the
gtk osx build script from imendio and run it.
cp /Users/flydoire/Desktop/gtk-osx-build-setup.sh .
sh gtk-osx-build-setup.sh
Edit ~/.jhbuildrc-custom and add
moduleset = os.path.expanduser("~/Downloads/GTK-OSX/gtk-osx-build/modulesets/gtk-osx.modules")
modules = ['meta-gtk-osx-bootstrap', 'meta-gtk-osx-core', 'meta-gtk-osx-freetype']
Bootstrap the build
jhbuild bootstrap
Paths to some resources are not correct in the downloaded scripts so
you have to download resources manually and name it like the script
expect it will be named (names could change in further commits in git
...).
git clone git://github.com/rhult/gtk-osx-docbook.git
mv gtk-osx-docbook rhult-gtk-osx-docbook-b09115732e38f956730d6c0a23ff4e471ab0ead2
tar zcvf rhult-gtk-osx-docbook-b09115732e38f956730d6c0a23ff4e471ab0ead2.tar.gz \
rhult-gtk-osx-docbook-b09115732e38f956730d6c0a23ff4e471ab0ead2
mv rhult-gtk-osx-docbook-b09115732e38f956730d6c0a23ff4e471ab0ead2.tar.gz \
~/gtk/source/pkgs/rhult-gtk-osx-docbook-b09115732e38f956730d6c0a23ff4e471ab0ead2.tar.gz
cd ..
git clone git://github.com/rhult/gnome-doc-utils-fake.git
mv gnome-doc-utils-fake rhult-gnome-doc-utils-fake-ee6993e33d517ff05f55d78694e5edaa4da0bbd9
tar zcvf rhult-gnome-doc-utils-fake-ee6993e33d517ff05f55d78694e5edaa4da0bbd9.tar.gz \
rhult-gnome-doc-utils-fake-ee6993e33d517ff05f55d78694e5edaa4da0bbd9
mv rhult-gnome-doc-utils-fake-ee6993e33d517ff05f55d78694e5edaa4da0bbd9.tar.gz \
~/gtk/source/pkgs/rhult-gnome-doc-utils-fake-ee6993e33d517ff05f55d78694e5edaa4da0bbd9.tar.gz
Finally build GTK-OSX
jhbuild build meta-gtk-osx-bootstrap
Patch GTK to use CMD key instead of CTR (like a good Mac OS X app).
go to ~/gtk/source/gtk+/gdk and patch
patch -p0 < patch-command-key-gtk.patch
jhbuild build meta-gtk-osx-python
jhbuild build meta-gtk-osx-themes
Now you have GTK-OSX, you need some more stuff for the Open ERP
Client.
mxbase (egenix-mx-base-3.1.2.macosx-10.4-fat-py2.5_ucs2.prebuilt ) from
http://www.egenix.com/products/python/mxBase/
download here
#Fortran
http://r.research.att.com/tools/
http://r.research.att.com/gfortran-4.2.3.dmg
#FFW
http://www.fftw.org/download.html
ftp://ftp.fftw.org/pub/fftw/fftw-3.2.tar.gz
tar zxvf fftw-3.2.tar.gz
cd fftw-3.2/
./configure
make
sudo make install
sudo ln -s /usr/local/lib/libfftw3.a /usr/local/lib/libfftw.a
sudo ln -s /usr/local/lib/libfftw3.la /usr/local/lib/libfftw.la
sudo ln -s /usr/local/include/fftw3.h /usr/local/include/fftw.h
#scipy
http://ovh.dl.sourceforge.net/sourceforge/scipy/scipy-0.6.0.tar.gz
python setup.py build_src build_clib --fcompiler=gnu95 build_ext --fcompiler=gnu95 build
sudo python setup.py install
#matplotlib
http://ovh.dl.sourceforge.net/sourceforge/matplotlib/matplotlib-0.98.5.2.tar.gz
sudo ln -s /opt/local/include/gtk-2.0/gdk /usr/local/include/gdk
sudo ln -s /opt/local/include/gtk-2.0/gtk /usr/local/include/gtk
sudo ln -s /Users/flydoire/gtk/inst/include/pygtk-2.0/pygtk /usr/local/include/pygtk
sudo ln -s /Users/flydoire/gtk/inst/include/pygtk-2.0/pyglib.h /usr/local/include/pyglib.h
sudo ln -s /Users/flydoire/gtk/inst/include/pygtk-2.0/pygobject.h /usr/local/include/pygobject.h
sudo ln -s /opt/local/include/glib-2.0/glib.h /usr/local/include/glib.h
sudo ln -s /opt/local/lib/glib-2.0/include/glibconfig.h /usr/local/include/glibconfig.h
sudo ln -s /opt/local/include/glib-2.0/glib-object.h /usr/local/include/glib-object.h
sudo ln -s /opt/local/include/glib-2.0/gmodule.h /usr/local/include/gmodule.h
sudo ln -s /opt/local/include/glib-2.0/glib /usr/local/include/glib
sudo ln -s /opt/local/include/glib-2.0/gobject /usr/local/include/gobject
sudo ln -s /opt/local/include/glib-2.0/gio /usr/local/include/gio
sudo ln -s /opt/local/include/cairo/cairo.h /usr/local/include/cairo.h
sudo ln -s /opt/local/include/cairo/cairo-version.h /usr/local/include/cairo-version.h
sudo ln -s /opt/local/include/cairo/cairo-features.h /usr/local/include/cairo-features.h
sudo ln -s /opt/local/include/cairo/cairo-deprecated.h /usr/local/include/cairo-deprecated.h
sudo ln -s /opt/local/include/pango-1.0/pango /usr/local/include/pango
sudo ln -s /opt/local/lib/gtk-2.0/include/gdkconfig.h /usr/local/include/gdkconfig.h
sudo ln -s /opt/local/include/gtk-2.0/gdk-pixbuf /usr/local/include/gdk-pixbuf
sudo ln -s /opt/local/include/atk-1.0/atk /usr/local/include/atk
python setup.py build
sudo python setup.py install
Then get
this archive and unzip it.
Adjust the parameters in the file package.sh and run the script
sh ./package.sh
You should end with a dmg containing a nice and clean bundled app.
Enjoy !