mozjpeg
mozjpeg copied to clipboard
Mozjpeg static cjpeg binary doesn't work without dlls on Windows
Static build shouldn't requires copy dlls with binary when it is build using Microsoft Visual Studio Build Tools.
Reproduction steps:
- Install cmake and nasm (You can use scoop install cmake nasm)
- Clone Mozjpeg
- Clone vcpkg into mozjpeg and enter mozjpeg
- vcpkg/bootstrap-vcpkg.bat
- vcpkg install --triplet x64-windows libpng:x64-windows-static zlib:x64-windows-static libpng zlib
- cmake -DCMAKE_TOOLCHAIN_FILE="C:\path\to\mozjpeg\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_FIND_FRAMEWORK=LAST -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release .
- cmake --build . --config Release
- Run cjpeg-static.exe -version and see version and build versions
- Copy only cjpeg-static.exe from release folder to any directory
- Try launch cjpeg-static.exe -version and see there is no result.