Claes
September 24, 2016, 12:39pm
1
Sigh. I give up & need assistance, please…
On May 13, LibRaw opensourced their X-Pro2 compressed decoder. Ref: http://www.libraw.org/news/libraw-compressed-fujifilm-raf-support
I have tried to compile that code (both as a branch and as a single commit), but so far, I have had no luck in getting the samples to work.
Hopefully, I am missing something obvious…
git clone https://github.com/LibRaw/LibRaw.git
cd LibRaw/
git checkout xtrans-compressed
./mkdist.sh
./configure --enable-openmp --enable-lcms
make -j8
Compilation begins, but fails with:
src/libraw_xtrans_compressed.cpp: In member function ‘virtual void LibRaw::xtrans_decode_loop(const xtrans_params*, int, INT64*, unsigned int*)’:
src/libraw_xtrans_compressed.cpp:739:34: error: ‘cur_block’ has not been declared
#pragma omp parallel for private(cur_block)
^
Any LibRaw devs here?
1 Like
Claes
September 28, 2016, 5:29pm
3
@Morgan_Hardwood & all other interested…
Thanks to kind cooperation from one of the LibRaw brains, there is a working solution…
I’ll publish it here in a while.
Claes
September 29, 2016, 1:37pm
4
Here are the steps that will make you a LibRaw which can decompress and convert X-Pro2- and X-T2-RAF files into .tiffs and other formats.
git clone GitHub - LibRaw/LibRaw: LibRaw is a library for reading RAW files from digital cameras ~/LibRaw
cd ~/LibRaw/
git checkout xtrans-compressed
./mkdist.sh
./configure --disable-shared && make clean && make
To install the binaries, run
make install
You will find compressed RAF-files to test with at the bottom of this page: Fujifilm X-Pro2 Review | Photography Blog
In /usr/local/bin you can see what binaries you can use:
4channels half_mt postprocessing_benchmark unprocessed_raw
dcraw_emu mem_image raw-identify
dcraw_half multirender_test simple_dcraw
Time for a test run? Execute
raw-identify your-filename.RAF
Enjoy!
/Claes in Lund, Sweden
--disable-shared
solved it.
Complete steps if you want it installed in a custom folder (not system-wide):
mkdir $HOME/programs && cd $HOME/programs
git clone https://github.com/LibRaw/LibRaw.git code-libraw
cd code-libraw
git checkout xtrans-compressed
./mkdist.sh
./configure --enable-openmp --enable-lcms --disable-shared --prefix="$HOME/programs/libraw"
make -j8 install
Executable files will be in $HOME/programs/libraw
, you can delete $HOME/programs/code-libraw