Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the .dll file included? (and several times) #1

Open
megatux opened this issue Jan 29, 2019 · 1 comment
Open

Why is the .dll file included? (and several times) #1

megatux opened this issue Jan 29, 2019 · 1 comment

Comments

@megatux
Copy link

megatux commented Jan 29, 2019

Is this file the dynamic library binary for Windows?
Should not it check for a system library? .so on Linux, etc?

@jmrepetti
Copy link

I'm in OSX, but I think the idea can be translated to Linux.

After installing the raylib package with 'brew install raylib' I'm able to look up for the dynamic library with

pkg-config --libs --cflags raylib

In my case is in /usr/local/Cellar/raylib/2.5.0/lib/libraylib.2.dylib which I copied and put it next to the .dll file.

Then I replaced the .dll with my .dylib

# ffi_lib 'raylib.dll'
ffi_lib 'libraylib.2.dylib'

I was getting this error:

`attach_function': Function 'ShowLogo' not found

So I had to comment out some functions that are not defined, like 'ShowLogo' (plus others), and all it references. The I ran the example without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants