-
Notifications
You must be signed in to change notification settings - Fork 210
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
godot-rust is not working on macos (using dylib and not dll) #938
Comments
Since you're using Godot 3.5, can you check if #910 works for you? You can use that branch as follows: [dependencies]
gdnative = { git = "https://github.com/Bromeon/godot-rust.git", branch = "feature/godot-3.5" }
[lib]
crate-type = ["cdylib"] |
It worked!! |
Thank you so much |
Happy to hear that, and thanks for trying that branch! |
Any ideas how i can automate the build and import to godot? having to copy lib files after editing gets difficult with multiple files and frequent changes. |
The gdnlib path can refer to something outside the Godot repository, e.g. Note that this only works during development -- once you export your Godot project, the You can also further automate things with bash scripts, for example: # assuming you have this directory strucure:
#
# game/
# godot/
# project.godot
# rust/
# src/
# target/
# Cargo.toml
# godot is an alias/symlink to the Godot executable
cargo build --manifest-path rust/Cargo.toml && godot --path godot Also don't hesitate to join our Discord server in case of further questions 🙂 Edit: updated Discord link |
Hey. The invite is not working |
@hirohido I just tried my link and get to the Discord page, and asked about account details. If I randomly change the link, it tells me the invitation is invalid. What error do you get? That said, that link is pretty ancient and I could probably create a new one. |
It works now. Thanks |
I am following the hello world example on macos. I have followed all the steps but i keep getting an error:
Error loading GDNative file res://bin/warbath.dylib: GodotEngine v4.* is not yet supported. See #396
i am using godot 3.5 stable, godot-rust 0.10.0, rustc version 1.62.1
i am guessing that it is because i am trying to use a dylib instead of dll. but macos rust only produces dylib.
The text was updated successfully, but these errors were encountered: