jeroenjanssens / raylibr

R package that wraps Raylib, a simple and easy-to-use library to enjoy videogames programming

Home Page:https://jeroenjanssens.github.io/raylibr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install on macOS

jeroenjanssens opened this issue · comments

Running remotes::install_github("jeroenjanssens/raylibr") produces the following error:

...
clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o raylibr.so RcppExports.o audio_stream.o bone_info.o bounding_box.o camera_2d.o camera_3d.o color.o extra.o font.o functions.o glyph_info.o image.o material.o material_map.o mesh.o model.o model_animation.o music.o npatch_info.o ray.o ray_collision.o rcolors.o rectangle.o render_texture.o shader.o sound.o texture.o transform.o vr_device_info.o vr_stereo_config.o wave.o -L../inst/raylib-4.0.0-modified/lib -lraylib -lGL -lc -lm -lpthread -ldl -lrt -lX11 -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: library not found for -lGL

Probably need to specify different arguments in Makevars when building on macOS.