1Building LibRaw for PCL Development
2-----------------------------------
3
4Since version 1.8.8 of PixInsight, LibRaw no longer forms part of the PCL distribution. This is because the authors of LibRaw have made changes to their code distribution that prevent its inclusion as a standard PCL static library.
5
6To build LibRaw for PCL development, follow these steps:
7
81. Download LibRaw's source code. We recommend cloning the [https://github.com/LibRaw/LibRaw](official LibRaw GitHub repository) to a directory on your local file system. Let's represent this directory as $LIBRAWDIR.
9
102. Copy the required Makefile.pcl.xxx file for your platform (where xxx is one of linux, macosx or windows; unfortunately LibRaw cannot be compiled on FreeBSD) to $LIBRAWDIR. These files are available on [https://gitlab.com/pixinsight/PCL/tree/master/src/3rdparty/libraw]($PCLSRCDIR/3rdparty/libraw).
11
123. Use the appropriate Makefile.pcl.xxx file to build LibRaw. For example:
13
14$ cd $LIBRAWDIR
15$ make -j -f Makefile.pcl.linux
16
174. You'll find the LibRaw static library file on the $LIBRAWDIR/lib subdirectory:
18
19On Linux and macOS: liblibraw_r-pxi.a
20On Windows: libraw_r-pxi.lib
21
22Copy this file to your $PCLLIBDIR directory.
23
245. Copy the $LIBRAWDIR/libraw subdirectory to your $PCLINCDIR directory.
25
26Now you can build the RAW module on your platform.
27
28******
29###### Copyright (C) 2003-2020 Pleiades Astrophoto
30