1 2 3 4 5 6 7 8 9 10 11 12 13 14 | apt-get update apt-get install -y libsdl-image1.2-dev libsdl1.2-dev \ libjpeg8-dev cmake --fix-missing apt-get install --force-yes -y yasm apt-get remove --force-yes -y libpng12-dev git clone https://github.com/glennrp/libpng cd libpng ./configure make -j 3 make install ldconfig /usr/local/lib cd /root/ rm -rf /root/libpng |
下載libbpg
1 | git clone https://github.com/mirrorer/libbpg |
編輯Makefile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # libbpg Makefile # # Compile options: # # Enable compilation of Javascript decoder with Emscripten #USE_EMCC=y # Enable x265 for the encoder USE_X265=y # Enable the JCTVC code (best quality but slow) for the encoder #USE_JCTVC=y # Compile bpgview (SDL and SDL_image libraries needed) #USE_BPGVIEW=y # Enable it to use bit depths > 12 (need more tests to validate encoder) #USE_JCTVC_HIGH_BIT_DEPTH=y # Enable the cross compilation for Windows #CONFIG_WIN32=y # Enable for compilation on MacOS X #CONFIG_APPLE=y # Installation prefix prefix=/usr/local |
開始安裝libbpg
1 2 3 | cd /root/libbpg make -j 3 make install |