Skip to content

Commit 52e7788

Browse files
bors[bot]toasteater
andauthored
Merge #704
704: Mention 'header not found' errors in README r=toasteater a=toasteater Co-authored-by: toasteater <48371905+toasteater@users.noreply.github.com>
2 parents f2b4080 + a7807d4 commit 52e7788

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ The generator makes use of `bindgen`, which depends on Clang. Instructions for i
2727

2828
`bindgen` may complain about a missing `llvm-config` binary, but it is not actually required to build the `gdnative` crate. If you see a warning about `llvm-config` and a failed build, it's likely that you're having a different problem!
2929

30+
### 'Header not found' errors
31+
32+
When building the library, `bindgen` may produce errors that look like this:
33+
34+
```
35+
godot-rust\gdnative-sys/godot_headers\gdnative/string.h:39:10: fatal error: 'wchar.h' file not found
36+
```
37+
38+
This means that `bindgen` was unable to find the C system headers for your platform. If you can locate the headers manually, you may try setting the `C_INCLUDE_PATH` environment variable so `libclang` could find them. If on Windows, you may try building from the Visual Studio "developer console", which should setup the appropriate variables for you.
39+
3040
## Usage
3141

3242
### Godot 3.2.3-stable

0 commit comments

Comments
 (0)