raylib-cr icon indicating copy to clipboard operation
raylib-cr copied to clipboard

Can't run the raygui_button example

Open avrame opened this issue 1 year ago • 3 comments

The other examples work fine, but raygui_button doesn't run.

I type in my terminal: crystal run src/raygui_button.cr I get this error:

ld: library 'raygui' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: execution of command failed with exit status 1: cc "${@}" -o /Users/avrameisner/.cache/crystal/crystal-run-raygui_button.tmp  -rdynamic -L/opt/homebrew/Cellar/crystal/1.11.1/bin/../../../../lib -lraygui -lraylib -framework IOKit -framework Cocoa -framework OpenAL -framework OpenGL -lpcre2-8 -L/opt/homebrew/Cellar/bdw-gc/8.2.4/lib -lgc -lpthread -L/opt/homebrew/Cellar/libevent/2.1.12_1/lib -levent -liconv

I am on an MacBook Pro M1 running macOS Sonoma 14.2.1 (23C71)

avrame avatar Feb 02 '24 05:02 avrame

Hi, unfortunately I know nothing about the Mac side of things and I don't have one so I have no way to test. You are free to take a look at the install script and edit it if you would like, otherwise I moved Mac back out of supported to weak support since I have no idea how to get raygui working for it.

sol-vin avatar Feb 28 '24 13:02 sol-vin

Ok, I’ll see if I can fix it. You think it’s an issue with the install script?

avrame avatar Feb 29 '24 02:02 avrame

It most definitely is, the install script never installs Ray gui, it also doesn't install the miniaudiohelpers package. Although I would like to remove that package in the future.

On Wed, Feb 28, 2024, 6:16 PM Avram Eisner @.***> wrote:

Ok, I’ll see if I can fix it. You think it’s an issue with the install script?

— Reply to this email directly, view it on GitHub https://github.com/sol-vin/raylib-cr/issues/30#issuecomment-1970274606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ5ARJUBH4WECQDAZOMJ43YV7QHHAVCNFSM6AAAAABCWCKQ2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZQGI3TINRQGY . You are receiving this because you commented.Message ID: @.***>

sol-vin avatar Feb 29 '24 02:02 sol-vin