Dependency
#1
How come graphics libraries (aka. SDL) are needed to launch the linux_server binary if it never even uses them?
Thanks given by:
#2
Weird... can you post the error?
Thanks given by:
#3
Same problem
Thanks given by:
#4
Are you sure it is the server?
This is the result for a fresh install of ubuntu 10.04. The client does not load... but the server is ok.

barreto@zennla:~/Downloads/1.1.0.1$ ./assaultcube.sh
/home/barreto/Downloads/1.1.0.1/bin_unix/linux_64_client: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory

barreto@zennla:~/Downloads/1.1.0.1$ ./server.sh
reading commandline parameters from file 'config/servercmdline.txt'
logging started: console(INFO), file(DISABLED), syslog(INFO, "AssaultCube[local#28763]", local6), timestamp(DISABLED)
logging local AssaultCube server (version 1101, protocol 1130/104) now..
read 58 map rotation entries from 'config/maprot.cfg'
read 0 admin passwords from 'config/serverpwd.cfg'
read 0 (0) blacklist entries from 'config/serverblacklist.cfg', 0 errors
read 0 + 0 entries from nickname blacklist file 'config/nicknameblacklist.cfg', 0 errors
dedicated server started, waiting for clients...
Ctrl-C to exit
looking up assault.cubers.net...
master server registration succeeded
Thanks given by:
#5
$ ./1.1.0.1/bin_unix/linux_server -mlocalhost
./1.1.0.1/bin_unix/linux_server: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
Thanks given by:
#6
Is your machine 32 bits?
Thanks given by:
#7
(12 Aug 10, 01:18PM)Brahma Wrote: Is your machine 32 bits?
My machine is in three hundred bits and nothing works. Can you help me?
Thanks given by:
#8
(12 Aug 10, 01:18PM)Brahma Wrote: Is your machine 32 bits?

Well, that doesn't matter, since SDL (a media/graphics library) shouldn't be a dependency for the AC server.
Thanks given by:
#9
And it is not.... what makes me think the issue is between the chair and the computer.
Thanks given by:
#10
(12 Aug 10, 02:03PM)Brahma Wrote: And it is not.... what makes me think the issue is between the chair and the computer.

You tell me this?
(this is not native_server, this is linux_server, the pre-built binary)
$ ldd 1.1.0.1/bin_unix/linux_server
    libz.so.1 => /lib/libz.so.1 (0xb77c5000)
    libSDL-1.2.so.0 => not found
    libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb77ab000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76bc000)
    libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7696000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7687000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7524000)
    /lib/ld-linux.so.2 (0xb77e1000)

Note the third line.
Thanks given by:
#11
I had the same issue. I had to install SDL to make the servers in 1.1 work.
Thanks given by:
#12
(12 Aug 10, 02:21PM)pwnage{TyD} Wrote: I had the same issue. I had to install SDL to make the servers in 1.1 work.

But it's not actually used, why do we need it?
Thanks given by:
#13
Because it was in the server includes?
Thanks given by:
#14
(12 Aug 10, 02:37PM)Brahma Wrote: Because it was in the server includes?
No way, really?

...I think he's more interested in knowing as to why that is. Accident, reason, etc.
Thanks given by:
#15
who knows...?
Thanks given by:
#16
(12 Aug 10, 02:48PM)Brahma Wrote: who knows...?
You're a dev, shouldn't you have at least an idea as to why it was put in?
Thanks given by:
#17
Lol JMM have you looked at the AC source code? Worst mess ever. No comments, poorly designed classes, etc etc.
Thanks given by:
#18
(12 Aug 10, 02:33PM)Drakas Wrote:
(12 Aug 10, 02:21PM)pwnage{TyD} Wrote: I had the same issue. I had to install SDL to make the servers in 1.1 work.

But it's not actually used, why do we need it?

I know :)
Thanks given by:
#19
(12 Aug 10, 02:48PM)Brahma Wrote: who knows...?

http://actiongame.svn.sourceforge.net/vi...threv=5611
Thanks given by:
#20
Had the same issue with the 32 bit server and brought it up in the IRC channel, but didn't get a good answer either. Just exclude the includes from the 32 bit server :)
Thanks given by:
#21
D:
Thanks given by:
#22
:D :D
Thanks given by:
#23
:D :D :D
Thanks given by: