BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.87k stars 1.82k forks source link

M1 Max Mac疑似因为JoltPhysics库无法运行Pilot Editor #274

Open ermaolaoye opened 2 years ago

ermaolaoye commented 2 years ago

Describe the bug | Bug描述 Compile 和 Build 都成功了,直接运行Pilot Editor会提示 89434 illegal hardware instruction image

直接在Xcode中运行,会在JoltPhysics库部分报错。 image

Desktop | 桌面环境

ermaolaoye commented 2 years ago

有可能是因为Rosetta 2对SSE指令集的支持有问题。有没有办法在CMakeList那里加一个parameter,如果检测到是Apple Silicon的机器就直接强制JoltPhysics组件使用NEON instruction set呢?

Xayah-Hina commented 2 years ago

Hi Ermaolaoye233~ you may check any of these for a M1 chips compatibility.

https://github.com/DLTcollab/sse2neon https://github.com/simd-everywhere/simde

btw, Xcode is fairly unfriendly for a cross-platform building. As an alternative, Clion with LLVM clang would have a pain-free experience for building Piccolo.

dshcao commented 1 year ago

在 mac m1上跑通了吗

有可能是因为Rosetta 2对SSE指令集的支持有问题。有没有办法在CMakeList那里加一个parameter,如果检测到是Apple Silicon的机器就直接强制JoltPhysics组件使用NEON instruction set呢?

请问下,在 mac m1上跑通了吗?

mrzhuzhe commented 1 year ago

在 mac m1上跑通了吗

有可能是因为Rosetta 2对SSE指令集的支持有问题。有没有办法在CMakeList那里加一个parameter,如果检测到是Apple Silicon的机器就直接强制JoltPhysics组件使用NEON instruction set呢?

请问下,在 mac m1上跑通了吗?

可以编译 但是用rosette 模式启动还是报错

illegal hardware instruction

dshcao commented 1 year ago

在 mac m1上跑通了吗

有可能是因为Rosetta 2对SSE指令集的支持有问题。有没有办法在CMakeList那里加一个parameter,如果检测到是Apple Silicon的机器就直接强制JoltPhysics组件使用NEON instruction set呢?

请问下,在 mac m1上跑通了吗?

可以编译 但是用rosette 模式启动还是报错

illegal hardware instruction

课程大佬什么时候能加入对mac m支持,For M1 compatible, we will release later都好久了!买了个高配的 mac m2准备大干一场,打击我的积极性。。。

mrzhuzhe commented 1 year ago

在 mac m1上跑通了吗

有可能是因为Rosetta 2对SSE指令集的支持有问题。有没有办法在CMakeList那里加一个parameter,如果检测到是Apple Silicon的机器就直接强制JoltPhysics组件使用NEON instruction set呢?

请问下,在 mac m1上跑通了吗?

可以编译 但是用rosette 模式启动还是报错

illegal hardware instruction

课程大佬什么时候能加入对mac m支持,For M1 compatible, we will release later都好久了!买了个高配的 mac m2准备大干一场,打击我的积极性。。。

你有联系到课程群吗 看issue里似乎有人用m1跑通了

另外我有在学习neon指令集,有空我把sse2neon试一下 争取不用rosetta原生编译一个m1的版本

xxx6548 commented 1 year ago

你好,请问你跑成功了吗?我也遇到了一样的问题。

1Danny13 commented 7 months ago

我真的很需要对于m1的支持