shiryel / rayex

Raylib binds to elixir for programming games
https://hexdocs.pm/rayex/readme.html
Apache License 2.0
43 stars 8 forks source link

Problem running the examples/3d_picking/ on macos with M3 #13

Open iacobson opened 2 months ago

iacobson commented 2 months ago

First of all thanks for creating this project. I think it's the only option for Elixir close to a game engine. My plan was to try to use it together with my state management library: https://hexdocs.pm/ecspanse/Ecspanse.html

I try to run examples/3d_picking/ on Mac M3 but getting this:

INFO: Initializing raylib 5.0
INFO: Platform backend: DESKTOP (GLFW)
INFO: Supported raylib modules:
INFO:     > rcore:..... loaded (mandatory)
INFO:     > rlgl:...... loaded (mandatory)
INFO:     > rshapes:... loaded (optional)
INFO:     > rtextures:. loaded (optional)
INFO:     > rtext:..... loaded (optional)
INFO:     > rmodels:... loaded (optional)
INFO:     > raudio:.... loaded (optional)
2024-09-14 18:24:09.384 beam.smp[16057:38327876] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:777

I tried also to create a release. The error is the same.

I am getting the same error when I try to test in the console:

init_window(200, 200, "window name")

I managed to run a sample raylib project separately and it worked.

Update 1

I tried the solution proposed in the pinned issue, but getting another error:

iex(1)> require Unifex.CNode
Unifex.CNode
iex(2)> Unifex.CNode.start_link(:rayex)
** (MatchError) no match of right hand side value: {:error, {:error, :enoent}}
    (bundlex 1.5.3) lib/bundlex/cnode.ex:93: Bundlex.CNode.do_start/3
    iex:2: (file)
shiryel commented 2 months ago

Yea... the situation for Mac is a bit complicated, and unfortunately I only have a Linux machine to test the lib.

I will try to implement the suggestion from harrisi to see if I can fix this issue for Mac users. Hopefully it works without a lot of work :sweat_smile: