-
-
Notifications
You must be signed in to change notification settings - Fork 59
Compiling
Folke Will edited this page Jun 28, 2018
·
17 revisions
For Windows, use MSYS2 with Mingw64 installed.
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.
- 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 thethirdparty
directory sincelibgeotiff
already includeslibjpeg
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
- 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.
- The standalone version requires libsdl2 to build and run. You don't need it if you only want the plugin.
- 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