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

Tutorial - How to install in Linux? #245

Open
leotada opened this issue Jan 22, 2017 · 5 comments
Open

Tutorial - How to install in Linux? #245

leotada opened this issue Jan 22, 2017 · 5 comments

Comments

@leotada
Copy link

leotada commented Jan 22, 2017

I can't use DSFML yet, after many tries. Please make a tutorial to explain.
I have built DSFMLC and install it. After I used Dub to run app with DSFML as dependency, but didn't work.
Tried to build DSFML from source, didn't work too.

@Jebbs
Copy link
Owner

Jebbs commented Jan 22, 2017

Can you post the errors you're getting?

@leotada
Copy link
Author

leotada commented Jan 23, 2017

Running
./dsfmlgame
./dsfmlgame: error while loading shared libraries: libdsfmlc-audio.so.2: cannot open shared object file: No such file or directory

As I said, DSFMLC has already been installed using the 'sudo make install' command. The 'libdsfmlc-audio.so.2' file is in /usr/local/lib .

@Jebbs
Copy link
Owner

Jebbs commented Jan 23, 2017

That's a runtime issue, not a compiler issue. usr/local/lib is not always searched at runtime for .so files.

Try this:
export LD_LIBRARY_PATH=/usr/local/lib && dub run

@leotada
Copy link
Author

leotada commented Jan 23, 2017

It works! Thank you. Can this be more explained in the website?

@Jebbs
Copy link
Owner

Jebbs commented Jan 24, 2017

Hopefully I won't need to. The next version of DSFML will use SFML libraries directly, so you should in theory be able to use the SFML libraries your distro installs for you (which will be in a known runtime path location). The rest (DSFMC and DSFML) will be linked in statically, thus not needing to be found at runtime.

I still might mention it though. Some people will build SFML from source, so I guess it would be useful info for them.

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