wrnrlr / g3

Neat 3D math and graphics library
ISC License
31 stars 3 forks source link

Build errors on macos - unresolved simd imports #13

Open coolbluewater opened 2 months ago

coolbluewater commented 2 months ago

Hi, running the examples on macOS (Metal M1) produces a bunch of errors starting with:

cargo run --example ball --release +nightly

error[E0432]: unresolved import `std::simd::SimdFloat`
 --> src/point.rs:1:80
  |
1 | use std::{fmt::{Display, Formatter, Result},simd::{f32x4,mask32x4,simd_swizzle,SimdFloat},mem::transmute,ops::{Add,AddAssign,Sub,SubAssign,Mul,MulAssign,...
  |                                                                                ^^^^^^^^^
  |                                                                                |
  |                                                                                no `SimdFloat` in `simd`
  |                                                                                help: a similar name exists in the module: `StdFloat`
  |
  = help: consider importing one of these items instead:
          core::simd::prelude::SimdFloat
          std::simd::prelude::SimdFloat

Any idea what's causing this?

wrnrlr commented 2 months ago

I don't know what version of this library or rust you are using, but the ball example has been uncommented for a long time. The SimdFloat is also been replaced with StdFloat for some time now.

This library should work as is, but the examples themselfs are broken.

Hope it helps

coolbluewater commented 2 months ago

I cloned the repo just today.

the ball example has been uncommented for a long time.

Do you mean "commented"? Either way I don't understand.

Will the examples be fixed?

wrnrlr commented 2 months ago

*commented out

No

On Wed, May 8, 2024 at 4:17 PM coolbluewater @.***> wrote:

I cloned the repo just today.

the ball example has been uncommented for a long time.

Do you mean "commented"? Either way I don't understand.

Will the examples be fixed?

— Reply to this email directly, view it on GitHub https://github.com/wrnrlr/g3/issues/13#issuecomment-2100692054, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3OUQQYMPAUTLCQUDDGHCDZBIXV3AVCNFSM6AAAAABHLTPYFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGY4TEMBVGQ . You are receiving this because you commented.Message ID: @.***>