shiryel / rayex

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

Compilation issue #11

Closed andyleclair closed 6 months ago

andyleclair commented 6 months ago

Hi! Trying to get Rayex working locally and I keep getting this error, no matter what I try

Bundlex: Building natives: rayex
Package raylib was not found in the pkg-config search path.
Perhaps you should add the directory containing `raylib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'raylib', required by 'virtual:world', not found
** (MatchError) no match of right hand side value: {"", 1}
    (bundlex 1.0.0) lib/bundlex/toolchain/common/unix.ex:111: Bundlex.Toolchain.Common.Unix.pkg_config/2
    (bundlex 1.0.0) lib/bundlex/toolchain/common/unix.ex:17: Bundlex.Toolchain.Common.Unix.compiler_commands/5
    (bundlex 1.0.0) lib/bundlex/native.ex:107: Bundlex.Native.resolve_native/4
    (bunch 1.4.1) lib/bunch/enum.ex:244: Bunch.Enum.do_try_flat_map/3
    (bundlex 1.0.0) lib/tasks/compile.bundlex.ex:40: Mix.Tasks.Compile.Bundlex.run/1
    (mix 1.15.7) lib/mix/task.ex:455: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.15.7) lib/mix/tasks/compile.all.ex:124: Mix.Tasks.Compile.All.run_compiler/2
    (mix 1.15.7) lib/mix/tasks/compile.all.ex:104: Mix.Tasks.Compile.All.compile/4

I've got PKG_CONFIG_PATH and LD_CONFIG_PATH set (I think?) have you seen this before?

andyleclair commented 6 months ago

Oh I think I'd just compiled raylib wrong! Nevermind