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 https://github.com/packjpg/packJPG
# 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 https://github.com/panzi/VTFLib
mkdir -p VTFLib/build
cd VTFLib/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_LIBTXC_DXTN=OFF
make -j4
strip src/libVTFLib*.so
cd -
git clone https://github.com/google/guetzli
# link dependencies static
make -j4 -C guetzli verbose=1 LDFLAGS="-s -Wl,-Bstatic -lpng -lz -Wl,-Bdynamic"
git clone https://github.com/dropbox/lepton
cd lepton
# don't use -march=native: https://github.com/marian-nmt/marian-dev/issues/278#issuecomment-413930881
sed -i 's|-march=native|-mavx|g' configure.ac
./autogen.sh
./configure --disable-debug
make -j4 2>/dev/null
strip lepton
cd -
git clone https://github.com/mirrorer/libbpg
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