yuinh2007 发表于 2014-3-17 00:05:54

Installation instructions

Installation instructionsDownloadingYou can download the source and binary distributions from the project site.
Pre-compiled binariesIf you downloaded a pre-compiled binary distribution, simply unpack in the desired directory.The executables will be in the bin folder, the pdf documentation in the doc folder, and example scripts in the cookbook folder.
Compiling from sourceTo build Tesseroids you’ll need:
[*]A C compiler (like GCC)
[*]SCons
Setting up SConsTesseroids uses the build tool SCons. A SConstruct file (Makefile equivalent) is used to define the compilation rules. You will have to download and install SCons in order to easily compile Tesseroids. SCons is available for both GNU/Linux and Windows. Building should work the same on both platforms.SCons requires that you have Python installed. Check the SCons website for more information. Python is usually installed by default on most GNU/Linux systems.Under Windows you will have to put SCons on your PATH environment variable in order to use it from the command line. It is usually located in the Scripts directory of your Python installation.On GNU/Linux, SCons will generally use the GCC compiler to compile sources. On Windows it will search for an existing compiler. We recomment that you install GCC on Windows using MinGW.
CompilingFirst, download a source distribution. Unpack the archive anywhere you want (e.g., ~/tesseroids orC:\tesseroids or whatever). To compile, go to the directory where you unpacked (e.g., ~/tesseroidsetc.) and type in a terminal (or cmd.exe on Windows):scons

The executables will be placed on a bin folder.To clean up the build, run:scons -c

This will delete all object files and executables.
Testing the buildAfter the compilation, a program called tesstest will be placed in the directory where you unpacked the source. This program runs all the unit tests in the test directory. If all tests pass, the compilation probably went well. If any test fails, please submit a bug with the output of tesstest.


页: [1]
查看完整版本: Installation instructions