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

Setting up GDNative Rust #133

Closed
Raj2032 opened this issue Jan 8, 2019 · 15 comments
Closed

Setting up GDNative Rust #133

Raj2032 opened this issue Jan 8, 2019 · 15 comments

Comments

@Raj2032
Copy link

Raj2032 commented Jan 8, 2019

I am not too sure how to set up GDNative Rust, can somebody please help me out, thank you.

@Schr3da
Copy link

Schr3da commented Jan 10, 2019

Hey,
I made a quick tutorial on youtube so you can follow :D
Quality is not the best but I hope it helps

https://www.youtube.com/watch?v=vOURZ1iNMEE&feature=youtu.be

regards
Schr3da

@Raj2032
Copy link
Author

Raj2032 commented Jan 10, 2019 via email

@Raj2032
Copy link
Author

Raj2032 commented Jan 11, 2019 via email

@nical
Copy link
Contributor

nical commented Jan 11, 2019

Hi @Raj2032 The project is still in development although I personally haven't had much time to dedicate to it lately. Hoping to get back to it whenever things slow down a bit at work.

Regarding your build error, I haven't seen that before, it looks like you are missing a dependency (clang) that is needed by a tool (bindgen) we use in the build system to generate rust bindings from godot's official C headers. Looks like you are having the same issue as: rust-lang/rust-bindgen#1276 I'll try to update our cbindgen dependency and hopefully it'll fix the issue.

@Schr3da thanks so much for making this video!

@Raj2032
Copy link
Author

Raj2032 commented Jan 11, 2019 via email

@Schr3da
Copy link

Schr3da commented Jan 11, 2019

Hi,

as shown in the screenshot you are using a Microsoft operating system.
In addition as mentioned by @nical the error appears because clang is not installed.
Per default Microsoft does not ship with clang (llvm).

Unfortunately I do not have a Windows Operating System up and running so I can only redirect you to the following resources:

https://llvm.org/docs/GettingStartedVS.html
https://gist.github.com/InNoHurryToCode/955d63db0d79699fed63fe18eeebf17e

Please also note that you need to install Visual Studio as mentioned in the GettingStartedVS.html section (https://visualstudio.microsoft.com/vs/community/)

@Raj2032
Copy link
Author

Raj2032 commented Jan 11, 2019 via email

@Raj2032
Copy link
Author

Raj2032 commented Jan 11, 2019 via email

@Schr3da
Copy link

Schr3da commented Jan 14, 2019

Sorry didn't test on BSD but as long godot runs on BSD properly it should work.
In addition you can find some helpful information under the following link:

Godot Compiling on BSD

@Raj2032
Copy link
Author

Raj2032 commented Jan 14, 2019 via email

@Schr3da
Copy link

Schr3da commented Jan 15, 2019

Think we are ready to close the issue :D

@Raj2032
Copy link
Author

Raj2032 commented Jan 15, 2019 via email

@nical
Copy link
Contributor

nical commented Jan 15, 2019

My hope is that more recent cbindgen versions are packaged up so that it grabs the clang dependency on windows without requiring you to install anything, but that's up to how cbindgen was made so I don't know for sure. Sorry I was away from computers this weekend but I'll try to get to that one of the coming evenings.

@Raj2032
Copy link
Author

Raj2032 commented Jan 15, 2019 via email

@ghost
Copy link

ghost commented Dec 10, 2019

Closed as the question is apparently resolved.

@ghost ghost closed this as completed Dec 10, 2019
This issue was closed.
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