Briefly
https://libjpeg-turbo.org/'s website has a compiled version of the download, but VC is used by the VC10.0 compiled. Although it can be used under VC14.0, I still need to compile a VC14.0 version.
Preparatory work
First download the source package https://jaist.dl.sourceforge.net/project/libjpeg-turbo/1.5.3/libjpeg-turbo-1.5.3.tar.gz
Then you need to install the NASM Assembler tool, which can be found on the https://www.nasm.us/website.
Nasm-2.13.03-installer-x86.exe
Nasm-2.13.03-installer-x64.exe
Build vs Engineering with CMake
The CMake command I use is as follows:
32 Guests
cmake -DCMAKE_CONFIGURATION_TYPES:STRING="Release" -DCMAKE_LINKER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/link.exe" -DNASM:FILEPATH="C:/Program Files (x86)/NASM/nasm.exe" -DCMAKE_C_FLAGS:STRING="/DWIN32 /D_WINDOWS /W3" -DCMAKE_INSTALL_PREFIX:PATH="Z:/compiler/out/libjpeg-turbo" .
64 guests
cmake -DCMAKE_CONFIGURATION_TYPES:STRING="Release" -DCMAKE_LINKER:FILEPATH="C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/link.exe" -DNASM:FILEPATH="C:/Program Files/NASM/nasm.exe" -DCMAKE_C_FLAGS:STRING="/DWIN32 /D_WINDOWS /W3" -DCMAKE_INSTALL_PREFIX:PATH="Z:/compiler/out/libjpeg-turbo64" -DCMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING="/debug /INCREMENTAL" .
Post-build direct vs open compile or enter the project directory use the following command to compile
msbuild libjpeg-trurbo.sln
Compiled files
64-bit version libjpeg-turbo_v140x86.7z
32-bit version libjpeg-turbo_v140x64.7z
libjpeg-trubo-1.5.3 compilation under Windows