Compile libjpeg-turbo
Tested on version 3.0.1
requirements
Get libjpeg-turbo source
You can get libjpeg-turbo source from here
Build
bash
cd <LIBJPEG-TURBO_SOURCE_DIR>
mkdir ./build
cmake -S . -B <LIBJPEG-TURBO_SOURCE_DIR>/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<LIBJPEG-TURBO_SOURCE_DIR>/install
cmake --build <LIBJPEG-TURBO_SOURCE_DIR>/build --config Release --target install
All the compiled files will be in <CLONE_DIR>/install