Difference between revisions of "Compiling from Source"

From TexGen
Jump to navigationJump to search
Line 30: Line 30:
 
  svn co https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen
 
  svn co https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen
  
=== Compile Source ===
+
=== Compile source ===
  
 
==== Install CMake ====
 
==== Install CMake ====
  
 
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack
 
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack
 +
Open shell in extracted folder and type:
 
  ./configure [-prefix=$HOME]
 
  ./configure [-prefix=$HOME]
 
  make
 
  make
 
  make install
 
  make install
  
==== Install Python ====
+
==== Compile TexGen core ====
 +
Open shell in TexGen and type:
 +
mkdir bin
 +
cd bin
 +
ccmake ../
 +
Press 'c', when a warning pops up press 'e' to close it.
 +
You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. In this way switch off BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER. If you want to install to your home directory also change the CMAKE_INSTALL_PREFIX to $HOME.
 +
 
 +
Now press 'c' again to update the changes.
 +
 
 +
Hopefully now that all the additional modules have been switched off no errors will be shown. Press 'g' to generate the makefiles and exit. Now type:
 +
make
 +
make install
 +
 
 +
=== Compiling optional modules ===
 +
==== Python interface ====
 
[http://www.python.org/download/ Download Python] and unpack
 
[http://www.python.org/download/ Download Python] and unpack
 +
Open shell in extracted folder and type:
 
  ./configure [-prefix=$HOME]
 
  ./configure [-prefix=$HOME]
 
  make
 
  make
 
  make install
 
  make install

Revision as of 13:51, 9 March 2007

More to come on compiling from source...

The following programs are needed to build TexGen:

The following libraries are needed to link to TexGen:

However it is possible to build modules individually without compiling modules you do not need. Refer to the TexGen API for a list of modules and their dependencies.

The latest source release can be downloaded here. Download the latest file release named texgen-3.x.x.tar.gz.

Alternatively the very latest development source can be downloaded using the Subversion version control system. This code may be unstable, it is not recommended unless there is a good reason to have the very latest version. The Subversion server is hosted on SourceForge, instructions on downloading from it are available here.

Unix

Get TexGen from Subversion repository

Install Subversion

Download Subversion and unpack

./configure --with-ssl [-prefix=$HOME]
make
make install

Checkout

svn co https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen

Compile source

Install CMake

Download CMake and unpack Open shell in extracted folder and type:

./configure [-prefix=$HOME]
make
make install

Compile TexGen core

Open shell in TexGen and type:

mkdir bin
cd bin
ccmake ../

Press 'c', when a warning pops up press 'e' to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. In this way switch off BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER. If you want to install to your home directory also change the CMAKE_INSTALL_PREFIX to $HOME.

Now press 'c' again to update the changes.

Hopefully now that all the additional modules have been switched off no errors will be shown. Press 'g' to generate the makefiles and exit. Now type:

make
make install

Compiling optional modules

Python interface

Download Python and unpack Open shell in extracted folder and type:

./configure [-prefix=$HOME]
make
make install