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

Unable to build Chapter 1 #201

Open
occultsynthetic opened this issue Jan 16, 2023 · 2 comments
Open

Unable to build Chapter 1 #201

occultsynthetic opened this issue Jan 16, 2023 · 2 comments

Comments

@occultsynthetic
Copy link

occultsynthetic commented Jan 16, 2023

Hi,

after adding the rltk dependency I get the following error when I attempt to build the project:

cargo build --release --target wasm32-unknown-unknown
Compiling bracket-terminal v0.8.7
error[E0432]: unresolved imports glow::NativeFramebuffer, glow::NativeTexture
--> /home/occult/.cargo/registry/src/github.com-1ecc6299db9ec823/bracket-terminal-0.8.7/src/hal/gl_common/framebuffer.rs:3:24
|
3 | use glow::{HasContext, NativeFramebuffer, NativeTexture};
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ no NativeTexture in the root
| |
| no NativeFramebuffer in the root

error[E0609]: no field fitscreen on type hal::wasm::InitHints
--> /home/occult/.cargo/registry/src/github.com-1ecc6299db9ec823/bracket-terminal-0.8.7/src/initializer.rs:455:29
|
455 | self.platform_hints.fitscreen = fitscreen;
| ^^^^^^^^^ help: a field with a similar name exists: fullscreen

Some errors have detailed explanations: E0432, E0609.
For more information about an error, try rustc --explain E0432.

error: could not compile bracket-terminal due to 2 previous errors

Is this an issue with the bracket library wrapper?

@aalhendi
Copy link

This commit on the library repository provides a fix. You can temporarily switch to the git version of the library until the fix makes its way into the next release. I've left an example on how to do so below.

# ... rest of toml file

[dependencies]
# old rltk dependency
# rltk = { version = "0.8.0" }

# new rltk dependency
rltk = { git = "https://github.com/amethyst/bracket-lib" }

@nufny
Copy link

nufny commented Oct 7, 2023

Doing this fixed an issue for me where the window would open but hovering over it with a mouse would crash it with the message Error sending request: Resource temporarily unavailable

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