Compile libjpeg-turbo
Tested on version 3.0.1
requirements
- cmake (tested with v3.26.1)
- gcc (tested with v10.3)
Get libjpeg-turbo source
You can get libjpeg-turbo source from here
Build
bash
cd <LIBJPEG-TURBO_SOURCE_DIR>
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<LIBJPEG-TURBO_SOURCE_DIR>/install
cmake --build ./build --config Release --target install
All the compiled files will be in <LIBJPEG-TURBO_SOURCE_DIR>/install