|
This thread is locked; no one can reply to it. |
1
2
|
Dynamic libs and distributing program in linux |
Milan Mimica
Member #3,877
September 2003
|
You need a package which provides libXfixes.so file. This is part of Xorg server, 6.9.0 or newer.
-- |
Michael Faerber
Member #4,800
July 2004
|
Thanks Milan, your answer brought me to the right track - it works now! Quote: Well, although you are statically linking, some drivers will be built as dynamically linked modules. You can distribute them and set ALLEGRO_MODULES env. variable as appropriate, or pass --enable-modules=no option to ./configure but then you might not be able to run your program where for example alsa is not present. Hmmm ... are you sure there is no other way? Because GCC doesn't complain only about Allegro, but also about X11! GCC said:
michi@tux ~ $ gcc test.c `allegro-config --static` -static -lXrender -lXau -lXdmcp -lXfixes
-- |
Milan Mimica
Member #3,877
September 2003
|
I think this warnings would go away if you link your programs statically to libc, or distribute your libc (libc.so.6 file) with the app. Strange I never got such warnings though. EDIT:
-- |
Kitty Cat
Member #2,815
October 2002
|
GCC's -static attempts to statically link all libs into the program. Quite a bit of the time, this is unnecessarry and troublesome. Using --static with allegro-config will link in the staticlink Allegro libs, if you have them built, which should be enough for people to play. -- |
Milan Mimica
Member #3,877
September 2003
|
+ you might allegro modules
-- |
|
1
2
|