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

blade fails to build on FreeBSD #89

Closed
yurivict opened this issue Feb 25, 2024 · 2 comments
Closed

blade fails to build on FreeBSD #89

yurivict opened this issue Feb 25, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@yurivict
Copy link

   Compiling blade-graphics v0.3.0 (/usr/ports/editors/zed/blade/blade-graphics)
error[E0583]: file not found for module `hal`
  --> blade-graphics/src/lib.rs:62:1
   |
62 | mod hal;
   | ^^^^^^^^
   |
   = help: to create the module `hal`, create file "blade-graphics/src/hal.rs" or "blade-graphics/src/hal/mod.rs"
   = note: if there is a `mod hal` elsewhere in the crate already, import it with `use crate::...` instead

error[E0412]: cannot find type `Context` in module `super`
  --> blade-graphics/src/shader.rs:11:13
   |
11 | impl super::Context {
   |             ^^^^^^^ not found in `super`
   |
help: consider importing one of these items
   |
1  + use core::task::Context;
   |
1  + use std::task::Context;
   |
help: if you import `Context`, refer to it directly
   |
11 - impl super::Context {
11 + impl Context {
   |

error[E0412]: cannot find type `AccelerationStructure` in the crate root
   --> blade-graphics/src/traits.rs:70:40
    |
70  |         acceleration_structure: crate::AccelerationStructure,
    |                                        ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: blade-graphics/src/lib.rs:449:1
    |
449 | pub struct AccelerationStructureDesc<'a> {
    | ---------------------------------------- similarly named struct `AccelerationStructureDesc` defined here
    |
help: there is an enum variant `crate::ShaderBinding::AccelerationStructure` and 1 other; try using the variant's enum
    |
70  |         acceleration_structure: crate::ShaderBinding,
    |                                 ~~~~~~~~~~~~~~~~~~~~
70  |         acceleration_structure: naga::TypeInner,
    |                                 ~~~~~~~~~~~~~~~
help: a struct with a similar name exists
    |
70  |         acceleration_structure: crate::AccelerationStructureDesc,
    |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `AccelerationStructure` in the crate root
   --> blade-graphics/src/traits.rs:77:40
    |
77  |         acceleration_structure: crate::AccelerationStructure,
    |                                        ^^^^^^^^^^^^^^^^^^^^^
    |
   ::: blade-graphics/src/lib.rs:449:1
    |
449 | pub struct AccelerationStructureDesc<'a> {
    | ---------------------------------------- similarly named struct `AccelerationStructureDesc` defined here
    |
help: there is an enum variant `crate::ShaderBinding::AccelerationStructure` and 1 other; try using the variant's enum
    |
77  |         acceleration_structure: crate::ShaderBinding,
    |                                 ~~~~~~~~~~~~~~~~~~~~
77  |         acceleration_structure: naga::TypeInner,
    |                                 ~~~~~~~~~~~~~~~
help: a struct with a similar name exists
    |
77  |         acceleration_structure: crate::AccelerationStructureDesc,
    |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~
@kvark
Copy link
Owner

kvark commented Feb 27, 2024

Thank you for filing! If you tweak the compile time configurations from linux to linux | bsd, and blade-graphics works (at least with GLES backend), that would be great to get in!

@kvark kvark added type: bug Something isn't working help wanted labels Feb 27, 2024
@kvark
Copy link
Owner

kvark commented Aug 31, 2024

Fixed by #152

@kvark kvark closed this as completed Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants