Page 1 of 1

0.93: adding more plugins on Linux

Posted: Sat Feb 23, 2019 4:11 pm
by djcj
I see that several plugins available on Windows are missing from the Linux build.
But many of them can be build for Linux:

Code: Select all

sudo apt install libjpeg-dev libpng16-dev cmake yasm pkg-config autoconf git

git clone
# fix security issue
sed -i 's|sprintf(errormessage, e.what());|sprintf(errormessage, "%s", e.what());|g' packJPG/source/packjpg.cpp
make -j4 -C packJPG/source LDFLAGS="-s -lstdc++fs"

# inofficial Linux port
git clone
mkdir -p VTFLib/build
cd VTFLib/build
make -j4
strip src/libVTFLib*.so
cd -

git clone
# link dependencies static
make -j4 -C guetzli verbose=1 LDFLAGS="-s -Wl,-Bstatic -lpng -lz -Wl,-Bdynamic"

git clone
cd lepton
# don't use -march=native:
sed -i 's|-march=native|-mavx|g'
./configure --disable-debug
make -j4 2>/dev/null
strip lepton
cd -

git clone
cd libbpg
# link dependencies static
sed -i 's|-lpng|-Wl,-Bstatic -lpng -lz -Wl,-Bdynamic|g;  s|-ljpeg|-Wl,-Bstatic -ljpeg -Wl,-Bdynamic|g' Makefile
# optimize for speed, not size
sed -i 's|-Os|-O3|g' Makefile
# disable x265 (smaller binary)
sed -i 's|^USE_X265=y|#USE_X265=y|' Makefile
make -j4 bpgenc bpgdec
strip bpgenc bpgdec

Re: 0.93: adding more plugins on Linux

Posted: Tue Feb 26, 2019 4:44 pm
by xnview
ok, thanks i'll check