-------------------- SPACECRAFTER INSTALLATION INSTRUCTIONS ---------------------

===============================================================================
        COMPILATION from the source package (spacecrafterXXXX-master.zip)
===============================================================================
If you can't find a suited binary package or if you are curious you can also
compile the software by yourself.

Make sure you install all the necessary dependencies.

Launch install-dependencies-ubuntu.sh or install-dependencies-mageia.sh

Spacecrafter requires :

- Cmake > v3.3
- SDL2-dev
- SDL2_mixer-dev
- SDL2_net-dev
- SDL2_ttf-dev
- Vulkan libraries
- FFMPEG (VCPKG => 5.1.2#10) (required => avcodec-59.dll, avformat-59.dll, avutil-57.dll, swscale-6.dll, swresample-4.dll) (higher versions crash)
- libvpx (VCPKG => 1.15.2) (required => libvpx build with ffmpeg (no dll for that lib everything will be in ffmpeg dlls))

FFMPEG and libvpx can be installed using VCPKG:
.\vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,swresample,swscale,vpx]:x64-windows libvpx:x64-windows --overlay-ports=$overlay --recurse
(-overlay-ports is the path to the folder where you unzipped the portfiles to use to compile ffmpeg 5.1.2#10, if you don't use it you will get the last version of ffmpeg that crash with spacecrafter)
(-recurse is used to rebuild ffmpeg with libvpx support in case you alredy had ffmpeg installed)

Once they are installed you are ready to compile Spacecrafter sources:

Unzip the archive:
~$ unzip spacecrafterXXXX-master.zip
~$ cd spacecrafterXXXX-master
~$ sh install_dependancies_<type your OS ubuntu or mageia>.sh

Then type:
~$ sh install_src.sh -j<number of core you have on your computer>

Then to launch the software type:
~$ spacecrafter
