Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - petitg1987

Pages: [1]
1
General / Re: Distribute linux binary using SFML
« on: April 04, 2016, 09:07:43 am »
Thanks for your answers:

Quote
You can set a primary search path at compile/link time with -R or -rpath.
When I launch my app on Ubuntu 14.04: it doesn't find libsfml-graphics.so.2.3 because it doesn't exist (only version 2.1 exist). Do you suggest I insert SFML 2.3 directly on my package and I reference it with -rpath option ?

Quote
Running ldd -v on a file will list its dependencies.
Yes, I have already run this command and the dependencies returned are libsfml-graphics2.3v5,.... But as I explain in my first post: it's incompatible with Ubuntu older version like 14.04 :(

Here others questions which could help me to understand better:
* If I create an binary using SFML 2.3. Could I execute it with SFML 2.1 without re-compile it ?
* Why in Ubuntu 14.04, the package name is "libsfml-graphics2" (which refer to version 2.1) and on Unbutu 15.10, the package name is "libsfml-graphics2.3v5". Shouldn't we have same package name: "libsfml-graphics2" ?

2
General / Distribute linux binary using SFML
« on: April 03, 2016, 12:40:50 pm »
Hello,

I've created an application which use SFML on Ubuntu 15.10 using: libsfml-graphics2.3v5, libsfml...
I try to create a Debian package (.deb) from the binary and I need to specify the dependencies of my binary.

I don't know which exact dependencies/version I need to specify. Here the tests I've done:

- I've tried to specify libsfml-graphics2.3v5 as dependency: it work on Ubuntu 15.10 but not on Ubuntu 14.04 because this package doesn't exist (only libsfml-graphics2 exist).

- I've tried to specify libsfml-graphics2 as dependency: it doesn't work on Ubuntu 15.10 because this package doesn't exist (only libsfml-graphics2.3v5 exist). On Ubuntu 14.04, the package is installed because all dependencies exist. Unfortunately, when I execute the binary, I've got this message : "libsfml-graphics.so.2.3...no such file or directory" (only libsfml-graphics.so.2 & libsfml-graphics.so.2.1 exist).

My question:
* Is it possible to compile a binary which can run on all Linux distributions having libsfml-graphics2* ? How ?
* Which dependency I need to specify for my binary ?

Thank you in advance.


Pages: [1]