Skip to content

Install MSVC Debug symbols for static and shared builds - #203

Merged
danoli3 merged 2 commits into
masterfrom
fix/pr199-static-pdb
Oct 25, 2026
Merged

danoli3 merged 2 commits into
masterfrom
fix/pr199-static-pdb

Conversation

@danoli3

@danoli3 danoli3 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

PR #199 installs a linker PDB for every MSVC build. Static libraries do not have a linker PDB, so CMake fails during generation before those builds can compile.

Cherry-pick 2748e9a with its original author and source attribution, then install Debug symbols according to the library type:

  • Static: give the compiler PDB a stable Debug name/location and install FreeImage.pdb beside the .lib in the Development component.
  • Shared: install the linker PDB beside the DLL in the Runtime component, evaluating TARGET_PDB_FILE only for the shared target.

PDB files remain optional so embedded debug formats and toolchains that emit no separate compiler PDB can still install. Release installs do not include Debug PDBs. The cherry-picked .hif recognition and libheif 1.23.6 update are retained.

Add installation checks to the existing Windows jobs for Visual Studio static Debug, Ninja MSVC static Debug, shared Debug, clang-cl installation, and Release without Debug symbols. Pin the required VS 2022 preset job to windows-2022, addressing the separate runner-image failure seen on #199.

Validation:

  • Local macOS Debug build and all 10 tests pass; workflow YAML and whitespace checks pass.
  • Windows CI passed static Debug compiler-PDB installation with both Visual Studio and Ninja/MSVC.
  • Windows CI passed DLL Debug linker-PDB installation, clang-cl installation with an optional compiler PDB, and Release installation without Debug PDBs.

Visual Studio static PDB check, Ninja/MSVC PDB check, DLL PDB check.

Supersedes #199.

haobinnan and others added 2 commits October 25, 2026 15:17
feat(format): recognize .hif extension
chore(deps): bump libheif to 1.23.6

Signed-off-by: haobinnan <[email protected]>
(cherry picked from commit 2748e9a)
@danoli3
danoli3 marked this pull request as ready for review October 25, 2026 04:35
@danoli3

danoli3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Yes—the MSVC shared Debug job passed (https://github.com/danoli3/FreeImage/actions/runs/40161707602/job/121074464298).

Confirmed in its log:

  • Built FreeImage.dll using MSVC in Debug mode.
  • Installed bin/FreeImage.dll and bin/FreeImage.pdb.
  • Verified the PDB exists and is nonempty.

@danoli3
danoli3 merged commit 42a8566 into master Oct 25, 2026
70 checks passed
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

Successfully merging this pull request may close these issues.

2 participants