Comments (8)
The Vulkan Configurator GUI is something new that I haven't tried out. I typically use CLI environment variables to force layers on. I think you can use VK_LAYER_PATH
to point to the layer installation location (might be unnecessary if you installed it to a standard location) and then use VK_INSTANCE_LAYERS
to enable certain layers. You may also want to set VK_LOADER_DEBUG=all
to see verbose output from Vulkan loader to verify things work. You can find more details here: https://github.com/KhronosGroup/Vulkan-Loader/blob/master/loader/LoaderAndLayerInterface.md#table-of-debug-environment-variables
from shaderc-rs.
Hi @mildcwen, could you provide more details? Like the verbose output of failing to compile your project?
from shaderc-rs.
@antiagainst thanks for reply. I'm studying for Vulkan and I want use vk-shader-macros , but couldn't compile. So i new project just use shaderc. and copy it's Example Only! and error message is too long ....
-------------------
I have build from Source again. ..and again.....
error LNK2019( the major message)
= note: Non-UTF-8 output: libshaderc-37bb496e57e67982.rlib(shaderc-37bb496e57e67982.shaderc.5iq9nx3y-cgu.0.rcgu.o) : error LNK2019: \xce\xde\xb7\xa8\xbd\xe2\xce\xf6\xb5\xc4\xcd\xe2\xb2\xbf\xb7\xfb\xba\xc5
There are some similarities to Issues #80 but don't have tip information..
--------Maybe I only selected to upload the ".spv" file....sad!
from shaderc-rs.
Hi @mildcwen, the error looks like something related to language/locale settings in Rust itself. See rust-lang/rust#35785. I'm using English as my primary language on Windows. It works fine for me to cargo test
in a newly checked out vk-shader-macros.
Besides, you can try to use v0.7.0, which can detect Vulkan SDK and use the shaderc libraries there directly (if you have VULKAN_SDK
environment set) so you don't need to manually download and specify the shaderc location.
from shaderc-rs.
@antiagainst first, I've installed Vulkan SDK, and get the same error as before.
and i follow the answer of 「crlf0710 」, I modify VS'LANG to English,
then appear this
= note: libshaderc-37bb496e57e67982.rlib(shaderc-37bb496e57e67982.shaderc.5iq9nx3y-cgu.0.rcgu.o) : error LNK2019: unresolved external symbol shaderc_compiler_initialize referenced in function _ZN7shaderc8Compiler3new17ha016f1c6249e5b8aE
The next I uninstall [Visual C++ 2015, 2013, VS2015 X64 Native Tools Command(VC++ Build Tools)],just stay 2017 (it's only English )on PC.
Finally Error.
error LNK2019: unresolved external symbol shaderc_parse_version_profile referenced in function _ZN7shaderc21parse_version_profile17hff3b319b261982f0E
D:\Code\build\libshaderc\Release\shaderc_shared.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
D:\Code\rust\chun\target\debug\deps\chun.exe : fatal error LNK1120: 38 unresolved externals
I look the message found still use SHADERC_LIB_DIR, then delete it and restart PC, and compile ,all Fine.
from shaderc-rs.
@antiagainst , Thank you very much. I've solved this trouble...ha-ha.
I think install Vulkan SDK is much easier than Build from google-shaderc. and thank you again...
(So maybe could write in README? there are too issue since build source...)
please close this issue.
Thank you again for your help!
大佬....感謝!
from shaderc-rs.
@antiagainst
May I ask you another question? (....I konw it's not relevant.., and I promise this is last one comment.)
I've installed Vulkan SDK. ,but since Coding in Rust instead of c++..
Error: Layer specified does not exist
.So i want to know how do you call the sdk..
Because i want to use VkLayer_khronos_validation.dll etc..i'm not sure which is ...
I just want to enable Validation Layer to debug with validation layer.(before not use...)
--
I heard this also could debug..But I can't use it
from shaderc-rs.
There's no need to reply.
Since it's myself problem ..I'm not going to comment any more
Thank you very much for your help!
from shaderc-rs.
Related Issues (20)
- Updating shaderc version HOT 3
- Linking error when building with target-feature=+crt-static HOT 2
- Unable to build on Ubuntu 20.04 LTS - build wants "python" by name, but which one? HOT 3
- Can't find `/usr/lib/libshaderc_shared.so` HOT 1
- Build fails on Windows with Windows store Python HOT 7
- Can Compiler be Send, even Sync? HOT 1
- cannot find native shaderc library on system but Vulkan-SDK is installed
- Cannot find native shaderc library on system HOT 5
- Requesting a patch release 0.8.2 HOT 1
- [Possible Regression] Link failure on `1.67-x86_64-pc-windows-msvc` HOT 1
- shader_stage pragma for task and mesh not available
- Can't build a lib for Windows with MT_StaticRelease
- Failing to build on mac m1
- dylib not found when running without "cargo run" on macOS Sonoma
- Provide a feature to prefer static linking
- Crates that use shaderc at build time fail to build on docs.rs HOT 5
- Run in CI/GitHub Actions HOT 1
- mingw-w64-x86_64-ninja compiler errors for MSVC rust cargo build
- Extensions? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shaderc-rs.