Skip to content

Fix bz2.dll install path for windows-cpp archive #4685

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

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

flomnes
Copy link
Contributor

@flomnes flomnes commented Jun 16, 2025

In Windows, bz2.dll is incorrectly placed in install/lib, instead of install/bin. This causes "missing DLL error at runtime" kind of issues for binaries linking dynamically to OR-Tools 9.13 through CMake.

This issue was reported in 2022 in bzip2's official repository, but it was ignored by bzip2's maintainers.

bzip2 was introduced as a dependency of OR-Tools from v9.13, which is why we have this problem right now.

Example of this or-tools_x64_VisualStudio2022_cpp_v9.13.4784.zip

image

image

@Mizux Mizux modified the milestone: v9.14 Jun 16, 2025
@Mizux Mizux self-assigned this Jun 16, 2025
@Mizux Mizux added Bug dependencies Pull requests that update a dependency file labels Jun 16, 2025
@Mizux Mizux self-requested a review June 16, 2025 09:16
Copy link
Collaborator

@Mizux Mizux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mizux Mizux merged commit 88931fa into google:v99bugfix Jun 16, 2025
112 of 149 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants