uspgamedev / luasteam

Bindings to connect lua with Steam API
https://luasteam.readthedocs.io/en/stable/
MIT License
116 stars 19 forks source link

macOS: libluajit missing #11

Closed andrascsibi closed 4 years ago

andrascsibi commented 4 years ago

I have trouble bundling my Love2D game on macOS. I include luasteam.so and then

    dlopen(./luasteam.so, 6): Library not loaded: /usr/local/opt/luajit/lib/libluajit-5.1.2.dylib
  Referenced from: /Users/andras/dev/terraforming-earth.git/luasteam.so
  Reason: image not found

Of course, if I install luajit with homebrew, it works fine, but I can't expect players to do so.

Love2d already includes luajit 2.0.5, so there shouldn't be a problem theoretically, we're just looking for it in the wrong place? What am I doing wrong?

yancouto commented 4 years ago

Yes, I think we're having this problem as well on our game. I didn't have time to investigate yet, but your assessment is right, it seems to be a problem in luasteam itself.

yancouto commented 4 years ago

Fixed this in 896f77fe271348f80d33056724a4d78da172c452

Let me know if you still have problems.