Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ I'm going to assume you're on Windows, but technically speaking this should work
Getting it to work:

1. Go to the `rust` folder and run `cargo build --release`. (Note: the crate requires that it is inside of a Git repostory, otherwise it will fail to build. This may not be the case if you downloaded the source code from the Releases page. In that case, run `git init` to create a `.git` folder as a workaround)
2. After a while this should produce a DLL file called `bitmapflow_rust.dll` in the `rust/target/release` folder (On Linux this file will be called `libbitmapflow_rust.so`). Copy this file to the `godot` folder.
2. After a while this should produce a DLL file called `bitmapflow_rust.dll` in the `rust/target/release` folder (On Linux this file will be called `libbitmapflow_rust.so`, or `libbitmapflow_rust.dylib` on MacOS). Copy this file to the `godot` folder.
3. Now open Godot and run the project in the `godot` folder.

That's all.
Expand All @@ -79,6 +79,20 @@ On Windows, the program crashes after the splash screen, or I get an error about

- Install the [Visual Studio Redistributable](https://aka.ms/vs/16/release/vc_redist.x64.exe).

On macOS you're getting the ```dyld: Library not loaded: @rpath/libclang.dylib``` error during the build process.

OS can't find ```libclang.dylib``` dynamic library because it resides in a non-standard path, set up the DYLD_FALLBACK_LIBRARY_PATH environment variable to point to the path where ```libclang.dylib``` can be found, e.g. for Command Line Tools:

```
export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/usr/lib/"
```

or XCode:

```
export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/Toolchains/XcodeDefault.xctoolchain/usr/lib/"
```

On Windows, when exporting I get an error similar to "Failed to save spritesheet as [name]; Access is denied (os error 5)."

- Disable your virus scanner and try again. If you don't have a virus scanner enabled, you may not have permission to export into your selected folder (e.g. the Program Files folder may require admin privileges), so try exporting to your own users folder instead, or the Desktop, for example.
Expand Down
3 changes: 2 additions & 1 deletion godot/RustLibrary.tres
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_resource type="GDNativeLibrary" format=2]

[resource]
entry/OSX.64 = "res://libbitmapflow_rust.dylib"
entry/Windows.64 = "res://bitmapflow_rust.dll"
entry/X11.64 = "res://libbitmapflow_rust.so"
entry/Server = "res://libbitmapflow_rust.so"
dependency/OSX.64 = [ ]
dependency/Windows.64 = [ ]
dependency/X11.64 = [ ]
Loading