No edit summary
Marked this version for translation
 
(175 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<languages />
<translate>
<translate>
=Installing Siril from binaries= <!--T:1-->


<!--T:40-->
<!--T:122-->
Siril is currently available as binaries only for the released packages like [[Siril:0.9.1|0.9.1]]. The binary package is available on Debian [https://packages.debian.org/stretch/siril testing] and [https://packages.debian.org/sid/siril unstable], on many architectures. It is also available on Ubuntu [http://packages.ubuntu.com/vivid/siril wily] and [http://packages.ubuntu.com/vivid/siril vivid].
<span style="color: #ff0090; font-weight: bold; text-align: center; margin: 2em; font-size: 125%;">This page is now deprecated. Please refer to the new documentation at [https://siril.readthedocs.io/en/stable/Installation.html siril.readthedocs.io].</span>


<!--T:42-->
<!--T:98-->
For other operating systems, please use the source method below. '''Windows is completely unsupported'''. If you can, consider making an installation process or a package for your operating system. A Mac OS X binary package may become available in the coming weeks.
We maintain Siril binaries in many operating systems, but in general only for the [[Siril:releases|official releases]]. If your operating system has no binary version or if you want to customize it, you will have to build it [[#Installation_from_source|from source]].


=Installation from source= <!--T:43-->
<!--T:123-->
'''This is the installation documentation for Siril 1.2, for Siril 1.0 see [https://free-astro.org/index.php?title=Siril:install&oldid=7944|the older version of the page]'''


<!--T:44-->
=Installing Siril from binaries= <!--T:1-->
Installation from source is recommended if you want the latest features, if the past release is getting old or if you want to participate in improving Siril. Many users are reporting tweaks they would like, and we often implement them very rapidly, so that would be the only way to benefit from it.


<!--T:45-->
<!--T:78-->
The sources are stored on a subversion repository, you can download them with this command the first time:
==Debian[[File:Debian_logo.png|48px|frameless|link=|middle]]==
The binary package is available on Debian [https://packages.debian.org/testing/siril testing] and an old version for [https://packages.debian.org/stable/siril stable].
It can be installed via apt, with superuser privileges:
    apt install siril


<!--T:46-->
<!--T:80-->
<tt>svn co https://free-astro.org/svn/siril/branches/0.9/ siril</tt>
==Ubuntu & Linux Mint[[File:Ubuntu_logo.png|48px|frameless|link=|middle]][[File:LMint_logo.png|48px|frameless|link=|middle]]==
===Official repositories===
As for debian, it is available in the repositories:
    sudo apt-get install siril
===PPA repositories===
A newer version is also available in our PPA:
    sudo add-apt-repository ppa:lock042/siril
    sudo apt-get update
    sudo apt-get install siril


<!--T:47-->
<!--T:124-->
And update it the following times by typing <tt>svn up</tt> in the base directory.
==Mac OS X[[File:OSX_logo.png|48px|frameless|link=|middle]]==
See [https://siril.org/download/ our download page] for an official build for Mac.


<!--T:48-->
<!--T:125-->
Below is a list of dependencies. Siril relies on the autotools compilation configuration system and once the source has been downloaded and the system is ready, the general way to build it is as such:
==Flatpak and AppImage==
Siril is also available with the static binary packages [https://flathub.org/apps/details/org.free_astro.siril flatpak] and [https://appimage.github.io/Siril/ AppImage]. You should not use these if Siril is available in your OS like Ubuntu because they take more space on the disk and may not work as well.


<!--T:49-->
<!--T:43-->
<tt>$ autoreconf -fi<br/>
=Installation from source=
$ ./configure<br/>
Installation from source is required if you want the latest features, if the past release is getting old, if you want to participate in improving Siril or not use all the dependencies.
$ make<br/>
$ make install</tt> possibly with superuser privileges.


<!--T:50-->
==Getting the sources== <!--T:126-->
You may want to pass specific options to the compiler, for example like that if you want optimisation and installation in /opt instead of the default /usr/local:


<!--T:51-->
<!--T:45-->
<tt>CFLAGS='-mtune=native -O2' ./configure --prefix=/opt</tt>
The sources are stored on a git repository, which you can download with this command the first time:
    git clone https://gitlab.com/free-astro/siril.git
    cd siril
    git submodule update --init


<!--T:52-->
<!--T:47-->
To launch Siril, the command name is <code>siril</code>.
And update it the following times by typing <code>git pull</code> in the base <tt>siril</tt> directory.


==Dependencies== <!--T:53-->
<!--T:53-->
==Dependencies==
Siril depends on a number of libraries, most of which should be available in your operating system if it is recent enough. The names of the packages specific to operating systems are listed in each section below. Mandatory dependencies are:
Siril depends on a number of libraries, most of which should be available in your operating system if it is recent enough. The names of the packages specific to operating systems are listed in each section below. Mandatory dependencies are:
* [http://www.gtk.org/ gtk+-3.6] (Graphical user interface library)
* [http://www.gtk.org/ gtk+3] (Graphical user interface library), at least version 3.20
* [http://heasarc.nasa.gov/fitsio/fitsio.html cfitsio] (FITS images support)
* [http://heasarc.nasa.gov/fitsio/fitsio.html cfitsio] (FITS images support)
* [http://www.fftw.org/ fftw] (Discrete Fourier Transform library)
* [http://www.fftw.org/ fftw] (Discrete Fourier Transform library)
* [http://www.gnu.org/software/gsl/ gsl-1.*] (The GNU Scientific Library), version 2 is supported starting with release 0.9.1 and SVN revision 1040.
* [http://www.gnu.org/software/gsl/ gsl] (The GNU Scientific Library), version 1 or 2 starting with release 0.9.1 or SVN revision 1040
* [http://www.hyperrealm.com/libconfig/ libconfig]++ (Structured configuration files support)
* [http://opencv.org/ OpenCV] and a C++ compiler for some image operations
 
<!--T:99-->
''Note:'' even if Siril can run in console since version [[Siril:0.9.9|0.9.9]], it is still linked against the graphical libraries, so you still need GTK+ to compile and run it.


<!--T:54-->
<!--T:54-->
Optional dependencies are:
Optional dependencies are:
* [http://www.libraw.org/ libraw], [http://www.libtiff.org/ libtiff], [http://libjpeg.sourceforge.net/ libjpeg], [http://libpng.sourceforge.net/index.html libpng] for RAW, TIFF, JPEG and PNG images import and export. The libraries are detected at compilation-time.
* [https://curl.haxx.se/libcurl/ libcurl] OR [https://gitlab.gnome.org/GNOME/glib-networking glib-networking] with its HTTP backend for online operations like update checks, astrometry and photometry requests.
* [https://github.com/FFMS/ffms2 FFMS2] for film native support as image sequences. It also allows frames to be extracted from many kinds of film, for other purposes than astronomy. Versions < 2.20 have an annoying bug. It is recommanded to install the last version.
* [http://www.libraw.org/ libraw], [http://www.libtiff.org/ libtiff], [http://libjpeg.sourceforge.net/ libjpeg], [http://libpng.sourceforge.net/index.html libpng], [https://github.com/strukturag/libheif libheif] for RAW, TIFF, JPEG, PNG and HEIF images import and export. The libraries are detected at compilation-time.
* [http://opencv.org/ OpenCV] and a C++ compiler for some image operations.
* [https://github.com/FFMS/ffms2 FFMS2] for film native support as image sequences. It also allows frames to be extracted from many kinds of film, for other purposes than astronomy. Versions < 2.20 have an annoying bug. It is recommended to install the latest version.
* [https://www.ffmpeg.org/ ffmpeg] (or libav), providing libavformat, libavutil (>= 55.20), libavcodec, libswscale and libswresample for mp4 sequence export
* [http://www.gnuplot.info gnuplot] for photometry graph creation (not required at compilation time)
* [https://www.gnu.org/software/gnuastro/manual/html_node/WCSLIB.html wcslib] for world coordinate system management, annotations and the photometric color calibration
* [https://hyperrealm.github.io/libconfig/ libconfig] (Structured configuration files support), used to read the configuration file from versions up to 1.0, only used to get old settings now
* [https://gitlab.gnome.org/GNOME/json-glib libjson-glib] for update checking (useless if you build an non-released version).
* [https://www.exiv2.org/ Exiv2] to manage image metadata.
 
<!--T:55-->
===Build dependencies===
To install from source, you will have to install the base development packages:
    git, autoconf, automake, libtool, intltool, pkg-tools, make, cmake, gcc, g++
The compilers gcc and g++ from this list can be replaced by clang and clang++ (we use them for development), probably others as well.
 
<!--T:127-->
The autotools packages (autoconf, automake, probably some others) can be replaced by meson.
 
<!--T:128-->
==Generic build process==
Siril can be compiled either using autotools or meson.
===Meson===
The newer (since version [[siril:0.99.4|0.99.4]]) way is to use meson and ninja:
    meson --buildtype release _build
    cd _build
    ninja
    ninja install
 
<!--T:129-->
To disable some dependencies or features, use meson options -D''feature''=false or -Ddisable-''feature''=yes depending on the case.
 
<!--T:130-->
===Autotools===
The autotools ways is well known in the unix world, once the source has been downloaded and the prerequisites have been installed, the general way to build it is as such:
    ./autogen.sh
    make
    make install
possibly with superuser privileges.


===Build dependencies=== <!--T:55-->
<!--T:50-->
To install from source, you will have to install the base development packages: <tt>autoconf, automake, libtool, pkg-tools, make, gcc</tt> and optionally <tt>g++</tt> if you wish to use OpenCV. You'll probably want <tt>subversion</tt> too, to download the latest version on the source repository.
You may want to pass specific options to the compiler, for example like that if you want optimisation and installation in /opt instead of the default /usr/local:
    CFLAGS='-mtune=native -O3' ./autogen.sh --prefix=/opt


<!--T:3-->
Siril is developed with Arch Linux, which has all latest packages versions, and under Debian testing. This allows us to verify a large range of package versions.


==Installing on Debian== <!--T:4-->
<!--T:131-->
To launch Siril, the command name is <code>siril</code> or <code>siril-cli</code>.


<!--T:5-->
<!--T:4-->
Debian 6 doesn't have GTK+ version 3, and Debian 7 has partial support for all the features we use in GTK+ (version 3.4 while our minimum is supposed to be 3.4). You can still make it work with Debian 7 but Debian 8, codename ''Jessie'' is recommended. For a desktop system, the next stable is probably the better choice, called Debian testing, currently version 9 with codename ''Stretch''.
==Installing on Debian[[File:Debian_logo.png|48px|frameless|link=|middle]]==
You may want to build a .deb package instead of using a non-packaged version, in that case see [https://wiki.debian.org/BuildingTutorial this help]. In particular, to install dependencies, you can use the command:
    apt build-dep siril


<!--T:56-->
<!--T:56-->
Otherwise, here is the list of packages for the current version:
* Packages required for the build system:
* Packages required for the build system:
<tt>autoconf automake make gcc libtool pkg-config</tt>
    autoconf automake make gcc g++ libtool intltool pkg-config cmake


<!--T:57-->
<!--T:57-->
* List of packages for mandatory dependencies:
* List of packages for mandatory dependencies:
<tt>libfftw3-dev libgsl0-dev libcfitsio3-dev libgtk-3-dev libconfig++-dev</tt>
    libfftw3-dev libgsl-dev libcfitsio-dev libgtk-3-dev libopencv-dev libexiv2-dev


<!--T:58-->
<!--T:58-->
* List of packages for optional dependencies:
* List of packages for optional dependencies:
<tt>libpng-dev libjpeg-dev libtiff5-dev libraw-dev</tt>, for film (AVI and others) support: <tt>libffms2-dev</tt>, and for image resizing, rotation and others: <tt>libopencv-dev and g++</tt>.
    wcslib-dev libcurl4-gnutls-dev libpng-dev libjpeg-dev libtiff5-dev libraw-dev gnome-icon-theme libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libswresample-dev
for film input (AVI and others) support: <code>libffms2-dev</code>.


<!--T:14-->
<!--T:21-->
Note that libtiff5 is incompatible with OpenCV in debian 7, in that case you need to install libtiff4 instead. And in debian 8, libjpeg8-dev has been replaced by libjpeg62-turbo-dev, which is also installed by libtiff5-dev.
==Installing on Arch Linux[[File:Arch_logo.png|48px|frameless|link=|middle]]==
Two packages are available on AUR: [https://aur.archlinux.org/packages/siril/ siril] and [https://aur.archlinux.org/packages/siril-git/ siril-git]. Download the PKGBUILD or the repository, install dependencies, run makepkg to build the package and pacman -U to install it.


==Installing on Ubuntu== <!--T:16-->
<!--T:121-->
Dependencies (mandatory and a few optional):
    pacman -S base-devel cmake git intltool gtk3 fftw cfitsio gsl opencv exiv2 libraw wcslib


<!--T:17-->
==Installing on FreeBSD 10[[File:FreeBSD_logo.png|48px|frameless|link=|middle]]== <!--T:60-->
A list of dependencies has been reported for Ubuntu 14.10, for building the executable from source. Use the following command to install all of them:


<!--T:18-->
<!--T:132-->
<tt>sudo apt-get -y install autoconf build-essential libgtk-3-dev fftw3-dev libgsl0-dev libcfitsio3-dev libconfig++-dev  libtiff-dev libjpeg-dev libraw-dev libffms2-dev libopencv-dev</tt>
'''(Not updated in a while)'''


<!--T:19-->
<!--T:133-->
Then proceed with the normal procedure, and use <tt>sudo make install</tt> to install Siril.
 
==Installing on Arch Linux== <!--T:20-->
 
<!--T:21-->
[[User:Vincent|Vincent]] maintains an [https://aur.archlinux.org/packages/siril/ AUR package] for Siril. Download the tarball, run makepkg to build the package and pacman -U to install the package.
 
==Installing on FreeBSD 10== <!--T:59-->
 
<!--T:60-->
The list of dependencies is basically the same as for other OS, below are a list for build dependencies and a list of Siril dependencies:
The list of dependencies is basically the same as for other OS, below are a list for build dependencies and a list of Siril dependencies:


<!--T:61-->
<!--T:61-->
<tt>$ pkg install autotools gmake pkgconf libtool</tt>
    pkg install autotools gmake pkgconf libtool intltool gettext gtk3 fftw3 gsl cfitsio libraw opencv curl
 
<!--T:62-->
<tt>$ pkg install libconfig gtk3 fftw3 gsl cfitsio libraw opencv</tt>


<!--T:63-->
<!--T:63-->
Line 112: Line 157:


<!--T:64-->
<!--T:64-->
Compilation and the software are working fine with the default clang (<tt>cc</tt>) compiler. However, in its current version, clang does not support OpenMP, the language extension / library that we use for parallelism, which means Siril will probably be slower than if compiled with gcc, for stacking in particular.
Compilation and the software are working fine with the default clang (<code>cc</code>) compiler. As clang 3.8 appeared in FreeBSD 10 with OpenMP support (clang38 in pkg), Siril can be compiled with it using the following configure command:
    C=clang38 CXX=clang++38 LD=clang++38 LDFLAGS='-L/usr/local/llvm38/lib' ./autogen.sh


<!--T:65-->
<!--T:65-->
It is possible to install gcc48 or gcc5 in FreeBSD and pass the options to configure to compile the C files with it, as shown below. Make sure to link with the OS official compiler however, cc or c++ and not gcc or g++, otherwise the generated binary will be incorrect. That's also why the <tt>-lgomp</tt> is required to link it.
It is also possible to install gcc 4.8 or gcc 5 in FreeBSD. Make sure to link with the OS official compiler however, cc or c++ and not gcc or g++, otherwise the generated binary will be incorrect. That's also why the <code>-lgomp</code> is required to link it:


<!--T:66-->
<!--T:66-->
<tt>$ CC=gcc5 LDFLAGS="-Wl,-rpath=/usr/local/lib/gcc5 -L/usr/local/lib/gcc5 -lgomp" ./configure</tt>
    CC=gcc5 LDFLAGS="-Wl,-rpath=/usr/local/lib/gcc5 -L/usr/local/lib/gcc5 -lgomp" ./autogen.sh
 
==Installing on Mac OS X== <!--T:22-->
This is an installation procedure for Siril under Mac OS X 10.10 (Yosemite).
 
<!--T:23-->
Install XCode via the App Store (free software).
 
<!--T:24-->
Install XQuartz via http://xquartz.macosforge.org/landing/ (free software)


<!--T:25-->
<!--T:75-->
Install the command line tools by typing in a Terminal window: <tt>xcode-select --install</tt>
[[File:Siril_on_FreeBSD.png|600px]]


<!--T:26-->
== Building on Windows with msys2 == <!--T:100-->
Install the MacPorts software (free): http://www.macports.org (Follow the installation instructions on this site.)


<!--T:27-->
<!--T:101-->
The following is done in a Terminal window. One should first install some libraries:
These instructions are made for compiling on Windows with MSYS2 distribution using MinGW. MSYS2 requires 64 bit Windows 7 or newer, and does not work with FAT filesystems.
<br />
<tt>sudo port install gcc49
<br />
sudo port install automake
<br />
sudo port install autoconf
<br />
sudo port install gtk3
<br />
sudo port install gnome-themes-standard
<br />
sudo port install librsvg
<br />
sudo port install cfitsio
<br />
sudo port install fftw-3
<br />
sudo port install gsl
<br />
sudo port install libconfig-hr
<br />
sudo port install gnome-font-viewer</tt>


<!--T:68-->
<!--T:102-->
Now we want to make available multithreading in cfitsio:
[https://www.msys2.org/ Download MSYS2 64bit], a software distribution and building platform for Windows and run the installer - "'''x86_64'''" for 64-bit. When asked, specify the directory where '''MSYS2 64bit''' will be installed.
In the following directory:
<br />
<tt>
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/cfitsio
</tt>


<!--T:69-->
<!--T:103-->
Edit the file:
Run MSYS2 directly from the installer or later "MSYS2 MinGW 64 bit" from Start menu or shortcut.
Portfile


<!--T:70-->
<!--T:104-->
Change the line
First, update the package database and core system packages by typing (for more info about pacman see [https://wiki.archlinux.org/index.php/pacman this page]):
<br />
<tt>configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64</tt><br />
by
<br />
<tt>configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT</tt><br />


<!--T:71-->
<!--T:105-->
Then:
pacman -Syu
<br />
<tt>sudo port uninstal cfitsio
<br />sudo port -s install cfitsio
</tt>


<!--T:28-->
<!--T:106-->
Also install some optional dependencies (recommanded):
'''Installing dependencies:'''
<br /><tt>
Note: automake is the legacy (stable) build method, now being replaced by meson (experimental) build system.
sudo port install libraw
<br />
sudo port install tiff
<br />
sudo port install libpng
<br />
sudo port install opencv</tt>
<br />


<!--T:39-->
<!--T:107-->
Now you can manually install libjpeg (if you want to work with JPEG files):
    pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake git automake mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-gtk3 mingw-w64-x86_64-cfitsio mingw-w64-x86_64-fftw mingw-w64-x86_64-gsl mingw-w64-x86_64-opencv mingw-w64-x86_64-exiv2 mingw-w64-x86_64-curl
<br />
<tt>curl --remote-name http://www.ijg.org/files/jpegsrc.v9a.tar.gz
<br />
tar -xzvf jpegsrc.v9a.tar.gz
<br />
cd jpeg-9a
<br />
./configure --prefix=/usr/local
<br />
make
<br />
sudo make install</tt>


Now you can manually install giflib (if you want to work be able to export GIF files) which is too old in macport:
<!--T:134-->
<br />
Warning: meson will need a restart of MSYS2 to be usable.
Download giflib sources at this url:
<br />
<tt>https://sourceforge.net/projects/giflib/
<br />
and put the file in your home directory<br />
tar -jxvf giflib-5.1.2.tar.bz2
<br />
cd giflib-5.1.2
<br />
./configure
<br />
make
<br />
sudo make install</tt>


<!--T:29-->
<!--T:135-->
Install the ffms2 library which is not present in MacPorts. Download it here: https://github.com/FFMS/ffms2, in the ffms2 folder, type from the terminal:
Also install some optional dependencies (recommended):
<tt>./configure --prefix=/opt/local<br />
    pacman -S mingw-w64-x86_64-libraw mingw-w64-x86_64-libheif mingw-w64-x86_64-ffms2
make<br />
sudo make install</tt>
 
Download the SIRIL sources:


<!--T:30-->
<!--T:108-->
<tt>svn co https://free-astro.org/svn/siril/branches/0.9/ siril</tt>
'''Building Siril from source:'''


<!--T:32-->
<!--T:109-->
In the terminal go to the siril folder:
The source code is stored on a gitlab repository, you can download it with this command the first time:
    git clone https://gitlab.com/free-astro/siril.git
    cd siril
    git submodule update --init


<!--T:33-->
<!--T:110-->
<tt>cd siril</tt>
'''Now, meson and ninja are the official way to build siril on Windows''': Generate the build system and compile the code by typing:
    meson _build
    ninja -C _build install


<!--T:34-->
<!--T:111-->
Generate the configure file by typing:
'''To launch your build of Siril:'''


<!--T:35-->
<!--T:112-->
<tt>autoreconf -fi</tt>
Run MSYS2 64bit and type siril's command name:
    siril


<!--T:67-->
<!--T:113-->
Then run
You can also create a shortcut to siril.exe to start it, the default location is /mingw64/bin/.
<br /><tt>./configure</tt>
<br /><tt>make</tt>
<br />To install Siril, use the usual:


<!--T:36-->
<!--T:114-->
<tt>sudo make install</tt>
'''To update your version:'''
 
Launch Siril:


<!--T:37-->
<!--T:115-->
<tt>siril</tt>
Run MSYS2 64bit then
 
    pacman -Syu
Enjoy!
    cd siril
    git pull --recurse-submodules
    meson _build
    ninja -C _build install


<!--T:38-->
<!--T:116-->
[[File:Siril_on_MacOS.png|600px]]
If ''git pull'' does not show any change, there is no need to rebuild by running the make command. Otherwise, it will update your build.


<!--T:136-->
After that just launch the build by typing ''siril''
</translate>
</translate>

Latest revision as of 22:46, 16 September 2023

This page is now deprecated. Please refer to the new documentation at siril.readthedocs.io.

We maintain Siril binaries in many operating systems, but in general only for the official releases. If your operating system has no binary version or if you want to customize it, you will have to build it from source.

This is the installation documentation for Siril 1.2, for Siril 1.0 see older version of the page

Installing Siril from binaries

Debian

The binary package is available on Debian testing and an old version for stable. It can be installed via apt, with superuser privileges:

   apt install siril

Ubuntu & Linux Mint

Official repositories

As for debian, it is available in the repositories:

   sudo apt-get install siril

PPA repositories

A newer version is also available in our PPA:

   sudo add-apt-repository ppa:lock042/siril
   sudo apt-get update
   sudo apt-get install siril

Mac OS X

See our download page for an official build for Mac.

Flatpak and AppImage

Siril is also available with the static binary packages flatpak and AppImage. You should not use these if Siril is available in your OS like Ubuntu because they take more space on the disk and may not work as well.

Installation from source

Installation from source is required if you want the latest features, if the past release is getting old, if you want to participate in improving Siril or not use all the dependencies.

Getting the sources

The sources are stored on a git repository, which you can download with this command the first time:

   git clone https://gitlab.com/free-astro/siril.git
   cd siril
   git submodule update --init

And update it the following times by typing git pull in the base siril directory.

Dependencies

Siril depends on a number of libraries, most of which should be available in your operating system if it is recent enough. The names of the packages specific to operating systems are listed in each section below. Mandatory dependencies are:

  • gtk+3 (Graphical user interface library), at least version 3.20
  • cfitsio (FITS images support)
  • fftw (Discrete Fourier Transform library)
  • gsl (The GNU Scientific Library), version 1 or 2 starting with release 0.9.1 or SVN revision 1040
  • OpenCV and a C++ compiler for some image operations

Note: even if Siril can run in console since version 0.9.9, it is still linked against the graphical libraries, so you still need GTK+ to compile and run it.

Optional dependencies are:

  • libcurl OR glib-networking with its HTTP backend for online operations like update checks, astrometry and photometry requests.
  • libraw, libtiff, libjpeg, libpng, libheif for RAW, TIFF, JPEG, PNG and HEIF images import and export. The libraries are detected at compilation-time.
  • FFMS2 for film native support as image sequences. It also allows frames to be extracted from many kinds of film, for other purposes than astronomy. Versions < 2.20 have an annoying bug. It is recommended to install the latest version.
  • ffmpeg (or libav), providing libavformat, libavutil (>= 55.20), libavcodec, libswscale and libswresample for mp4 sequence export
  • gnuplot for photometry graph creation (not required at compilation time)
  • wcslib for world coordinate system management, annotations and the photometric color calibration
  • libconfig (Structured configuration files support), used to read the configuration file from versions up to 1.0, only used to get old settings now
  • libjson-glib for update checking (useless if you build an non-released version).
  • Exiv2 to manage image metadata.

Build dependencies

To install from source, you will have to install the base development packages:

    git, autoconf, automake, libtool, intltool, pkg-tools, make, cmake, gcc, g++

The compilers gcc and g++ from this list can be replaced by clang and clang++ (we use them for development), probably others as well.

The autotools packages (autoconf, automake, probably some others) can be replaced by meson.

Generic build process

Siril can be compiled either using autotools or meson.

Meson

The newer (since version 0.99.4) way is to use meson and ninja:

   meson --buildtype release _build
   cd _build
   ninja
   ninja install

To disable some dependencies or features, use meson options -Dfeature=false or -Ddisable-feature=yes depending on the case.

Autotools

The autotools ways is well known in the unix world, once the source has been downloaded and the prerequisites have been installed, the general way to build it is as such:

   ./autogen.sh
   make
   make install

possibly with superuser privileges.

You may want to pass specific options to the compiler, for example like that if you want optimisation and installation in /opt instead of the default /usr/local:

   CFLAGS='-mtune=native -O3' ./autogen.sh --prefix=/opt


To launch Siril, the command name is siril or siril-cli.

Installing on Debian

You may want to build a .deb package instead of using a non-packaged version, in that case see this help. In particular, to install dependencies, you can use the command:

   apt build-dep siril

Otherwise, here is the list of packages for the current version:

  • Packages required for the build system:
   autoconf automake make gcc g++ libtool intltool pkg-config cmake
  • List of packages for mandatory dependencies:
   libfftw3-dev libgsl-dev libcfitsio-dev libgtk-3-dev libopencv-dev libexiv2-dev
  • List of packages for optional dependencies:
   wcslib-dev libcurl4-gnutls-dev libpng-dev libjpeg-dev libtiff5-dev libraw-dev gnome-icon-theme libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libswresample-dev 

for film input (AVI and others) support: libffms2-dev.

Installing on Arch Linux

Two packages are available on AUR: siril and siril-git. Download the PKGBUILD or the repository, install dependencies, run makepkg to build the package and pacman -U to install it.

Dependencies (mandatory and a few optional):

   pacman -S base-devel cmake git intltool gtk3 fftw cfitsio gsl opencv exiv2 libraw wcslib

Installing on FreeBSD 10

(Not updated in a while)

The list of dependencies is basically the same as for other OS, below are a list for build dependencies and a list of Siril dependencies:

   pkg install autotools gmake pkgconf libtool intltool gettext gtk3 fftw3 gsl cfitsio libraw opencv curl

The only package not available as binary is ffms2, for film files handling, you will need to compile it from source.

Compilation and the software are working fine with the default clang (cc) compiler. As clang 3.8 appeared in FreeBSD 10 with OpenMP support (clang38 in pkg), Siril can be compiled with it using the following configure command:

   C=clang38 CXX=clang++38 LD=clang++38 LDFLAGS='-L/usr/local/llvm38/lib' ./autogen.sh

It is also possible to install gcc 4.8 or gcc 5 in FreeBSD. Make sure to link with the OS official compiler however, cc or c++ and not gcc or g++, otherwise the generated binary will be incorrect. That's also why the -lgomp is required to link it:

   CC=gcc5 LDFLAGS="-Wl,-rpath=/usr/local/lib/gcc5 -L/usr/local/lib/gcc5 -lgomp" ./autogen.sh

Building on Windows with msys2

These instructions are made for compiling on Windows with MSYS2 distribution using MinGW. MSYS2 requires 64 bit Windows 7 or newer, and does not work with FAT filesystems.

Download MSYS2 64bit, a software distribution and building platform for Windows and run the installer - "x86_64" for 64-bit. When asked, specify the directory where MSYS2 64bit will be installed.

Run MSYS2 directly from the installer or later "MSYS2 MinGW 64 bit" from Start menu or shortcut.

First, update the package database and core system packages by typing (for more info about pacman see this page):

pacman -Syu

Installing dependencies: Note: automake is the legacy (stable) build method, now being replaced by meson (experimental) build system.

   pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake git automake mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-gtk3 mingw-w64-x86_64-cfitsio mingw-w64-x86_64-fftw mingw-w64-x86_64-gsl mingw-w64-x86_64-opencv mingw-w64-x86_64-exiv2 mingw-w64-x86_64-curl

Warning: meson will need a restart of MSYS2 to be usable.

Also install some optional dependencies (recommended):

   pacman -S mingw-w64-x86_64-libraw mingw-w64-x86_64-libheif mingw-w64-x86_64-ffms2

Building Siril from source:

The source code is stored on a gitlab repository, you can download it with this command the first time:

   git clone https://gitlab.com/free-astro/siril.git
   cd siril
   git submodule update --init

Now, meson and ninja are the official way to build siril on Windows: Generate the build system and compile the code by typing:

   meson _build
   ninja -C _build install

To launch your build of Siril:

Run MSYS2 64bit and type siril's command name:

   siril

You can also create a shortcut to siril.exe to start it, the default location is /mingw64/bin/.

To update your version:

Run MSYS2 64bit then

   pacman -Syu
   cd siril
   git pull --recurse-submodules
   meson _build
   ninja -C _build install

If git pull does not show any change, there is no need to rebuild by running the make command. Otherwise, it will update your build.

After that just launch the build by typing siril