Skip to content

Compiling

Folke Will edited this page Jun 28, 2018 · 17 revisions

Prerequisites

For Windows, use MSYS2 with Mingw64 installed.

Dependencies

AviTab depends on several rather uncommon libraries. These are included as git submodules in the lib directory. Another dependency is libgeotiff which can usually be installed via package managers.

Clone the AviTab repository to somewhere, I'll call the directory avitab in this guide. Clone recursively, i.e. passing --recursive to git.

mupdf

  • Clone the mupdf repository to an unrelated directory, I'll call it mupdf: git clone --recursive git://git.ghostscript.com/mupdf.git
  • Copy avitab/mupdf-config.h to mupdf/include/mupdf/fitz/config.h
  • Delete the libjpeg directory in the thirdparty directory since libgeotiff already includes libjpeg and mupdf uses its own version so the linker can't resolve the duplicate library
  • Enter the mupdf directory and compile with XCFLAGS=-fPIC make, it includes all of its dependencies and will build everything
  • Run sudo make install to install the libraries and headers to /usr/local

CURL

  • Both the plugin and the standalone version require libcurl to be installed. For Windows, you should configure the CURL compilation using the options described in lib/curl-config.

SDL2

  • The standalone version requires libsdl2 to build and run. You don't need it if you only want the plugin.

Compiling

  • Create a directory called build inside avitab
  • Enter that directory and run cmake ..
  • Now you should be able to compile by running make AviTab-standalone
  • Copy the icons and chart directories from avitab to abitab/build/src
  • On success, you should be able to run the executable, located in avitab/build/src
Clone this wiki locally