mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1788] Fix/windows cmake zlib only #2517
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1788
Author: @Yashbhu
Created: 12/9/2025
Status: 🔄 Open
Base:
master← Head:fix/windows-cmake-zlib-only📝 Commits (10+)
625a533Fix: Windows CMake build - create static zlib library35c6b04docs: Add CHANGES.TXT entry for Windows zlib fix4a6783aci: Remove OCR from Windows CMake build to avoid vcpkg libxml2 issuesf499367fix: Use vcpkg for GPAC instead of Chocolatey69c8a98fix: Keep GPAC from Chocolatey, add CMAKE_PREFIX_PATH8b18064fix: Allow manual GPAC configuration on Windowsbfa77adfix: Properly handle manually-specified GPAC paths in CMake021ccaafix: Make GPAC optional for Windows CMake build6caccdefix: Correct stub function signatures for GPAC-disabled builds948aff5fix: Add legacy_stdio_definitions.lib to resolve UCRT linking errors on Windows📊 Changes
7 files changed (+152 additions, -20 deletions)
View changed files
📝
.github/workflows/build_windows.yml(+41 -0)📝
docs/CHANGES.TXT(+1 -8)📝
src/CMakeLists.txt(+53 -4)📝
src/lib_ccx/CMakeLists.txt(+32 -5)📝
src/lib_ccx/mp4.c(+20 -0)📝
src/lib_ccx/params.c(+5 -1)📝
windows/vcpkg.json(+0 -2)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
{pull request content here}
This occurs because the bundled zlib sources were being compiled directly into the executable, but the linker was still trying to find an external
zlib.libfile.Solution
zlib_static) on WindowsChanges
src/CMakeLists.txt: Createzlib_staticlibrary on Windows with proper include directories.github/workflows/build_windows.yml: Newbuild_cmakejob for automated Windows CMake testingdocs/CHANGES.TXT: Documented the fixTesting
-DWITH_OCR=ONremoved) to avoid unrelated vcpkg/GitLab libxml2 infrastructure issues. This PR focuses solely on the zlib fix; OCR functionality can be tested separately.CI Verification
The Windows CMake CI job validates:
--versionflag)Related: This PR focuses solely on the Windows zlib fix. macOS-specific fixes (ARM detection and Leptonica includes) have been split into a separate PR as requested by reviewers.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.