Skip to content

1.3 Compiling on Linux

Claude Roux edited this page Aug 15, 2020 · 13 revisions

Compiling on linux (or Mac OS)

The compiling is done in three steps

  • a) launch: python install.py to create the Makefile.in that matches your platform.
  • b) launch: make all
  • c) launch: make libs to compile the external libraries (Note: the target for compiling libraries is in Makefile.in)

IMPORTANT: You can also launch: sh compile.sh, which corresponds to the most basic options

Note : You can also execute: make all libs

install.py comes with the following options:

  • -noregex: Do not compile with posix regular expression support
  • -withsound: Check if you can compile the sound library, which offers a rather rich coverage for most sound files: ogg, mp3 etc.
  • -pathregex path: Path to regex include files
  • -pythoninclude path: Path to Python include file.
  • -pythonpath path: Path to Python library.
  • -pythonversion version: Python library version (ex. -pythonversion 3.7).
  • -pathfltk path: path to GUI libraries (if you have a specific version of fltk1.3 in a different directory than /usr/lib)
  • -version name: Directory names for intermediate and final files depend on 'name', which allows for compiling different versions locally
  • -pathlib path: provides a system path to check for system libraries
  • -avx: use specific intel instructions to speed up search and conversions for strings.
  • -avx2: use even more advanced specific intel instructions.
  • -help: display this help

Important

Add the following lines to your bash profile:

export TAMGULIBS=/home/me/tamgu/bin/linux
export LD_LIBRARY_PATH=$TAMGULIBS:$LD_LIBRARY_PATH
export PATH=$TAMGULIBS:$PATH

Of course, /home/me/tamgu should be replaced with the path that points to the directory that contains tamgu and its libraries.

The TAMGULIBS variable is central to access the different Tamgu libraries

There are two versions of tamgu: tamgu and tamguconsole.

tamguconsole only works if the FLTK1.3 library has been installed. The presence of this library also enables the Tamgu GUI features. You can install FLTK via yum or apt-get according to your platform.

Compiling the Java API

To compile the Java API, you need to call install.py with "-java". You will need a version of "ant" installed on your machine. The code to compile the version if in java.

Run: ant compile to compile the Java version.

GUI and Sound

Since, the GUI library and the Sound libraries are based on different licensing agreements, we cannot provide them with this GitHub archive. However, you can download them from a different GitHub: https://github.com/clauderouxster/libs

Clone this wiki locally