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

Linking Error when compiling. #664

Open
andihsu opened this issue Feb 12, 2024 · 4 comments
Open

Linking Error when compiling. #664

andihsu opened this issue Feb 12, 2024 · 4 comments

Comments

@andihsu
Copy link

andihsu commented Feb 12, 2024

Visual Studio 2022 building output:

1>------ Build started: Project: Hazel, Configuration: Release x64 ------
1>LINK : fatal error LNK1181: cannot open input file '\Lib\shaderc_shared.lib'
1>Done building project "Hazel.vcxproj" -- FAILED.

I tried to put the file in the project folder, but I cannot find where has that file included.

@Ggjorven
Copy link

Ggjorven commented Mar 2, 2024

First of all make sure you have the Vulkan SDK installed.

I looked into the '\Lib\shaderc_shared.lib'
You can find it in the 'Dependencies.lua' file:
Library["ShaderC_Release"] = "%{LibraryDir.VulkanSDK}/shaderc_shared.lib"

the '%{LibraryDir.VulkanSDK}' is this:
LibraryDir["VulkanSDK"] = "%{VULKAN_SDK}/Lib"

In your error message the filepath it cannot open is '/Lib/shaderc_shared.lib', meaning that the Vulkan SDK is probably not installed.
since the path is not ...VulkanPath.../Lib/shaderc_shared.lib but just /Lib/shaderc_shared.lib.

I hope this helps. Make sure the Vulkan SDK is installed. If so recreate the projects files and try again.
Goodluck!

@Ggjorven
Copy link

Ggjorven commented Mar 2, 2024

Extra note: if you have installed the Vulkan SDK on your own and it doesn't work. Try uninstalling and installing it again using the Setup.bat script.

@JohnVasil-ev
Copy link

@androidandyhsu Just open your VulkanSDK folder then run maintenancetool.exe -> Add or remove components -> select Shader Toolchain Debug Symbols for your architecture and next... next... After installation you will see new files in VulkanSDK dir and thats what you need

@andihsu
Copy link
Author

andihsu commented Mar 25, 2024 via email

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

No branches or pull requests

3 participants