Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mozjpeg static cjpeg binary doesn't work without dlls on Windows #436

Open
MateuszKrawczuk opened this issue Jul 20, 2023 · 0 comments
Open

Comments

@MateuszKrawczuk
Copy link

Static build shouldn't requires copy dlls with binary when it is build using Microsoft Visual Studio Build Tools.

Reproduction steps:

  1. Install cmake and nasm (You can use scoop install cmake nasm)
  2. Clone Mozjpeg
  3. Clone vcpkg into mozjpeg and enter mozjpeg
  4. vcpkg/bootstrap-vcpkg.bat
  5. vcpkg install --triplet x64-windows libpng:x64-windows-static zlib:x64-windows-static libpng zlib
  6. 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 .
  7. cmake --build . --config Release
  8. Run cjpeg-static.exe -version and see version and build versions
  9. Copy only cjpeg-static.exe from release folder to any directory
  10. Try launch cjpeg-static.exe -version and see there is no result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant