Hello!
Ill have a problem with dependencies:
apt-get -y install libmysqlclient-dev:i386Package libmysqlclient-dev:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libmariadb-dev-compatpc64el libmariadb-devpc64el libmariadb-dev-compat
libmariadb-dev libmariadb-dev-compat:arm64 libmariadb-dev:arm64
libmariadb-dev:i386 libmariadb-dev-compat:i386
apt install libmariadb-dev-compat:i386
gives this:
The following packages have unmet dependencies:
libmariadb-dev:i386 : Depends: libmariadb3:i386 (= 1:10.5.12-0+deb11u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages. Im on Debian 11 (amd64)
Whatever. I compiled anyway, The real problem is with running the script.
Created startcod2.sh
With this lines in it:
################################################## ##################################
#!/bin/bash
sv_maxclients="32"
fs_game="main"
fs_homepath="/home/somedirectoryname/cod2"
cod="/home/somedirectoryname/cod2/libcod2_1_3.so"
config="cod2server.cfg"
cracked="1"
net_port="28961"
args=\
"+set fs_homepath "$fs_homepath" "\
"+set sv_cracked $cracked "\
"+set fs_game $fs_game "\
"+set net_port $net_port "\
"+set sv_maxclients $sv_maxclients "\
"+set fs_basepath "$fs_homepath" "\
"+exec $config"
LD_PRELOAD="/home/somedirectoryname/cod2/libcod2_1_3.so" $cod $args +set g_gametype tdm +map mp_leningrad
################################################## ##################################
I get this errors:
bash startcod2.sh
startcod2.sh: line 21: 47857 Segmentation fault LD_PRELOAD="/home/somedirectoryname/cod2/libcod2_1_3.so" $cod $args +set g_gametype tdm +map mp_leningrad
Any idea?