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

Author Topic: How to distribute from Linux  (Read 1237 times)

0 Members and 1 Guest are viewing this topic.

belphegor

  • Newbie
  • *
  • Posts: 8
    • View Profile
How to distribute from Linux
« on: March 21, 2012, 01:07:42 pm »
Let me explain my problem. Ive installed Ubuntu 11.10 with WMWare on windows7 to be able to compile and share my game project using SMFL with Linux users too.
Since this is my first experience with it i have successfully installed all dependencies, SMFL 2.0, Box2D, CodeBlocks... with a help from my friends, and compiled my project without trouble.
Since i linked with SMFL dynamicaly, .so files are in /usr/local/lib folder. How can i make portable "installation"? Do i just copy .so, "exe" & resources and pack them into zip or what?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
How to distribute from Linux
« Reply #1 on: March 21, 2012, 01:44:46 pm »
There are a few options for you:

1. Tell users to install SFML too, or provide an installer (package) for it yourself.

2. Provide the SFML libraries together with your executable. In this case, since "." is not a standard search path unlike on Windows, you'll need to run it with a script that first adds "." to the search paths of the library loader.

3. There might be a third option involving RPATH but I don't know much about it.
Laurent Gomila - SFML developer

 

anything