[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] cannot find SDL12.so with cx_freeze (in some case)
- To: pygame-users@xxxxxxxx
- Subject: [pygame] cannot find SDL12.so with cx_freeze (in some case)
- From: Jindra Sarson <jindra@xxxxxxxxx>
- Date: Wed, 06 Apr 2005 17:17:39 +0200
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 06 Apr 2005 11:27:04 -0400
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0.2 (X11/20050322)
Hi,
I'm using cx_freeze for creating executable from my pygame game. I'm
using /var/games/mygame directory for saving score, that is accesible
and writeable for everybody. For that I set group for created executable
to games and set guid sticky bit.
Now my program is executed with efective group games, that is quite ok,
because I have my /var/games/mygame writeable for group games.
But - everything works, expecting user doesn't have SDL installed. For
that I distribute SDL with my game, it is in game directory. Before I
run my froozen game, I set LD_LIBRARY_PATH to application directory.
And there is problem. If I install my game to home directory and run is
as normal user (in that case, no /var/games/mygame is used, game is
instaled only for one user), everything works. But if I install my game
to /usr/local/games and set sticky bit, it finish with error:
ImportError: libSDL-1.2.so.0: cannot open shared object file: no such
file or directory.
When I disable sticky bit (chmod g-s mygame), everything works -
expecting saving score, befause I haven't rights to do it.
So I completely don't uderstand, what is wrong. Can somebody explain it
to me?
Thank you,
Jindra Sarson