Skip to content

cmake: unbreak JXL build on FreeBSD #13

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
Feb 6, 2025
Merged

cmake: unbreak JXL build on FreeBSD #13

merged 1 commit into from
Feb 6, 2025

Conversation

jbeich
Copy link
Contributor

@jbeich jbeich commented Feb 6, 2025

Regressed by #6. Affects FreeBSD, other BSDs and maybe even Nix due to using different prefix for each package. To reproduce install libjxl outside of /usr and /usr/local thus not part of default C compiler search path.

$ pkg-config --libs libjxl
-L/libjxl_prefix/local/lib -ljxl

$ export PKG_CONFIG_PATH=/libjxl_prefix/lib/pkgconfig
$ cmake -G Ninja -B _build
$ cmake --build _build
[...]
ld: error: unable to find library -ljxl
ld: error: unable to find library -ljxl_cms
ld: error: unable to find library -ljxl_threads
c++: error: linker command failed with exit code 1 (use -v to see invocation)

JXL_LIBRARIES contains `pkg-config --libs-only-l libjxl` but FreeBSD
also needs JXL_LIBRARY_DIRS aka `pkg-config --libs-only-L libjxl`.
@jbeich jbeich changed the title Unbreak build on FreeBSD cmake: unbreak libjxl on FreeBSD Feb 6, 2025
@jbeich jbeich changed the title cmake: unbreak libjxl on FreeBSD cmake: unbreak JXL build on FreeBSD Feb 6, 2025
@vaxerski vaxerski merged commit 575ae47 into hyprwm:main Feb 6, 2025
4 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