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

[BUG] shaderc linkage fails on Ubuntu 24.04 #249

Open
djminus opened this issue Sep 28, 2024 · 1 comment
Open

[BUG] shaderc linkage fails on Ubuntu 24.04 #249

djminus opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@djminus
Copy link

djminus commented Sep 28, 2024

Describe the bug
shaderc library linkage fails on Ubuntu 24.04 with the following error:

usr/bin/ld: cannot find -lshaderc_shared: No such file or directory

To Reproduce
Steps to reproduce the behavior:

  1. Run sudo apt install libshaderc-dev
  2. Run ./build-debug.sh

Expected behavior
shaderc library should link correctly on Ubuntu 24.04 (with libshaderc-dev installed).

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 (after having run sudo apt install libshaderc-dev)

Additional context
It links successfully if I change -lshaderc_shared to -lshaderc in build-all.sh. But ideally build-all.sh should use pkg-config to locate libraries and include files in a platform-independent way, at least on *nix.

@djminus djminus added the bug Something isn't working label Sep 28, 2024
@saiprasadhakki
Copy link

saiprasadhakki commented Jan 12, 2025

@djminus libshaderc-dev is the incorrect library, instead use shaderc provided in the apt package manager. (Make sure you remove libshaderc-dev by sudo apt remove libshaderc-dev, and also revert the changes you have done to -lshaderc_shared)

Also if you have installed libshaderc-dev on your own, I assume you have not installed vulkan-sdk on your system please follow the instructions on this page: https://vulkan.lunarg.com/doc/view/latest/linux/getting_started_ubuntu.html

@travisvroman I believe this issue is good to be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants