Compile sources

From Libamtrack

Jump to: navigation, search

Linux

  • In order to compile libamtrack gcc is needed. If not part of your distribution, you can find it [[1]].
  • You also have to have the GNU Scientific Library (GSL) installed. If not part of your distribution, you can find it [[2]].
  • Edit the makefile (section 'user settings') to match your specifications:
    • OS is 'Linux'.
    • GSLPATH points to your GSL installation, without subdirectories like '/include' or '/lib' (most likely it is '/usr').
    • MINGWPATH is Windows-specific and should be left empty.
  • Use the make command to compile libamtrack as a shared library or...
  • Use the make static command to compile libamtrack as a static library.\\
  • After that you can navigate to /example/demo or /example/basic_plots and use make to compile an example code using libamtrack.

Windows

  • In order to compile libamtrack gcc for Windows is needed. Please install [[3]], the port of gcc to Windows systems.
  • GNU Scientific Library (GSL) is only available as unofficial [port] but has been checked with libamtrack.
  • Edit the makefile (section 'user settings') to match your specifications:
    • OS is 'Windows'.
    • GSLPATH points to your GSL installation, without subdirectories like '\include' or '\lib' (most likely it is 'C:\Program Files\GnuWin32').
    • MINGWPATH points to your MinGW installation, without subdirectories like '\include' or '\lib' (most likely it is 'C:\Program Files\MinGW').
  • Use the make command to compile libamtrack as a dll.\\
  • Make sure that libgsl.dll and libgslcblas.dll are in the same directory than the compiled code or you add the GSL path to the PATH environmental variable. Otherwise libamtrack will not be able to work.
  • After that you can navigate to /example/demo or /example/basic_plots and use make to compile an example code using libamtrack.

General

  • If you experience trouble during installation please contact us; your feedback is very appreciated.
Personal tools