Linguistic Tree Constructor Logo
Linguistic Tree Constructor

Documentation

The User's Guide is available:

Please note that the User's Guide linked to above may be out of date. The latest is always incorporated in the installer.

Installation

To install, simply download the installer, and execute it.

Building

You need to compile and install wxWidgets version 3.0.2 or later.

NOTE: On Mac OS X, wxWidgets 3.0.2 has a bug that prevents LTC from working. Therefore, on Mac OS X, you should download, compile, and install the 3.0.X_BRANCH branch from wxWidget's Github repository.

On Linux, all you need to do is "./configure && make && sudo make install".

On Mac OS X, all you need to do is: Install wxWidgets 3.0.X_BRANCH (download from the wxWidgets Github), untar the LTC sources, cd to the source directory, and do:

  ./configure --enable-universal_binary --disable-dependency-tracking
  make
  cd SRC
  make -f Makefile.sign dmg

This will build the software and make a .dmg file in the SRC/ directory.

On Win32, you need to first compile wxWidgets 3.0.2 with Visual Studio (Express) 2010 or later, making sure that you specify /MT rather than /MD in the build environment. Then you can untar the LTC sources, and untar the emdros tarball inside, then open a command-line prompt, then set the Visual Studio environment variables (if necessary), then cd to the ltc-sources root directory, then run

  nmake /f win32.mak"

then use NSIS to compile the ltc.nsi file...

... but hey, why not use the binaries I provide? ;-)

Building the Win32 installer

The Win32 installer is built with Nullsoft NSIS installer system.

Simply open the "ltc.nsi" file in the NSIS make system. "ltc.nsi" appears in the root folder of the installation (e.g., "C:\Program Files\LingTreeConstructor").

Building a .rpm package on Linux

You need (some of) the following packages installed in order to build LTC successfully on Fedora 22 and onwards:

# dnf install -y rpm-build gcc-c++ make binutils gcc glibc-devel glibc-headers kernel-headers groff libgomp libstdc++-devel tcl re2c transfig lyx latex2html swig autoconf automake libtool wxGTK3 wxGTK3-devel

Assuming you have set up your RPM build environment correctly, you can simply do:

$ rpmbuild -ta ltc-<version>.tar.gz

For example:

$ rpmbuild -ta ltc-3.2.0.tar.gz

Building a .deb package on Linux (Debian/Ubuntu/etc.)

To install the build tools and necessary dependencies on Debian/Ubuntu/etc., do:

sudo apt-get install build-essential fakeroot debhelper g++ make binutils tcl tcl-dev re2c transfig lyx latex2html swig autoconf automake libtool libwxgtk3.0 libwxgtk3.0-dev groff

Assuming you have the correct tools installed to build .debs, you can simply do:

$ tar xfz ltc-<version>.tar.gz
$ cd ltc-<version>
$ dpkg-buildpackage -rfakeroot

For example:

$ tar xfz ltc-3.2.0.tar.gz
$ cd ltc-3.2.0
$ dpkg-buildpackage -rfakeroot

The .deb and the associated files will be in ../ (i.e., the parent directory) after building.