Development:Mac OS X Development Environment

From OpenLP

Jump to: navigation, search

Installing Required Software

In order to run the very latest code, or developers personal branches, several pieces of software first need to be installed.

The steps required are detailed on the Testing:Mac_OS_X_Testing_Environment page.


Installing Eric4

The recommended version of Eric4 is version 4.2.0 up to 4.3.8 (with the newer version 4.4.0 there occured some problems (see below)). This section is outdated, matthias needs to update that!

Eric4 also needs a little bit of command line interaction to get it up and running (for another tutorial see http://works13.com/blog/mac/installing-eric4-on-mac-os-x-leopard.htm). Eric4 uses the QScintilla (version 2.0 or higher) syntax highlighting editor component, which we'll need to download and install first.

Download QScintilla from the QScintilla download page:

raoul@umbreon:~/Downloads $ wget http://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/QScintilla-gpl-2.3.2.tar.gz

Extract QScintilla's source from the archive:

raoul@umbreon:~/Downloads $ tar -xzvf QScintilla-gpl-2.3.2.tar.gz

Compile QScintilla using your installed version of Qt4:

raoul@umbreon:~/Downloads $ cd QScintilla-gpl-2.3.2/Qt4
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ /opt/local/bin/qmake qscintilla.pro -spec macx-g++
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ make
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ sudo make install

Now we need to install the Python bindings for QScintilla to be able to use them in PyQt4:

raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ cd ../Python
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ python configure.py
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ make
raoul@umbreon:~/Downloads/QScintilla-gpl-2.3.2/Qt4 $ sudo make install

Download Eric 4 from the Eric4 download page. You'll need to follow the links in your browser, as Eric4 is hosted at SourceForge.net.

Next extract Eric4 from the archive:

raoul@umbreon:~/Downloads $ tar -xzvf eric4-4.2.4a.tar.gz

Then install Eric4:

raoul@umbreon:~/Downloads $ cd eric4-4.2.4a
raoul@umbreon:~/Downloads/eric4-4.2.4a $ sudo python install.py

And we're done!

Appendix:

Error occurred with version 4.4.0:

<type 'exceptions.TypeError'>: 
 QsciLexerBash(QObject parent=None): argument 1 has unexpected type 'Terminal'
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox