Pages: [1]
  Print  
Author Topic: Linux dedicated x86_64 source and make file  (Read 9127 times)
Rct. Tsoul
Nub


Cakes 0
Posts: 23


« on: May 03, 2011, 05:42:34 pm »

I just downloaded the source code for OpenArena, when I try to run the oa_ded.x86_64 that comes with the normal download it says I need glibc 2.7, now I am running CentOS and it runs 2.5, thus I must compile the oa_ded.x86_64 from the start, when I did with the source code it came back with all kinds of errors, but it did produce a oa_ded.x86_64 that does not work, please help me with this so that I may run a dedicated server on my CentOS 5.5 running glibc 2.5, now I dont know how to program, all I know how to do so far is uncompress a file, switch to that dir and type: make
So far I have been able to get a few mods for Quake2 running this way because I am sure they had intended it to be done by a nooby that just want to have a server without going to Linux and C++ programing school, please help, thanks.
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1428


also banned for baiting another to violate rules


« Reply #1 on: May 04, 2011, 05:08:15 am »

Of course, compiling fortunately doesn't require programming knowledge.
The same thing happened to me (older glibc version) though that was some time ago and it's better if you compile it yourself.
What error messages did you obtain ? Put some extract if it's too long.
Why do you say binaries you produced don't work ? Once compiled, all you normally have to do is to place the binary along with the data of the game and run it. If you got the zip file from oa.ws and uncompressed it, replacing the binaries with compiled ones should work.

Just found the older thread about it: http://openarena.ws/board/index.php?topic=2059.0 ; though, it would be best if you use 0.8.5 binaries (these ones are 0.8.0 binaries), you could experience some crashes otherwise.
Logged

Todo: Walk the cat.
Rct. Tsoul
Nub


Cakes 0
Posts: 23


« Reply #2 on: May 04, 2011, 09:10:35 am »

Please direct me to the 0.8.5 source to compile a dedicated server bionary, I only have 0.8.1 from the downloads section that was probably overlooked when updating this website, get me that link and ill try compiling again, thanks.
Logged
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1428


also banned for baiting another to violate rules


« Reply #3 on: May 04, 2011, 10:20:29 am »

Sticky of that same forum: http://openarena.ws/board/index.php?topic=1933.0

=> openarena-engine-source-0.8.x-21.tar.bz2
Logged

Todo: Walk the cat.
Rct. Tsoul
Nub


Cakes 0
Posts: 23


« Reply #4 on: May 04, 2011, 06:14:01 pm »

It is still not working, maybe I am not doing something first or missing some steps, this is what I get on the compile with some errors:
Code:
[opena@gserver oas]$ make
/bin/sh: svnversion: command not found
/bin/sh: svnversion: command not found
make[1]: Entering directory `/home/opena/oas'

Building openarena in build/release-linux-x86_64:
  PLATFORM: linux
  ARCH: x86_64
  VERSION: 1.36
  COMPILE_PLATFORM: linux
  COMPILE_ARCH: x86_64
  CC: cc

  CFLAGS:
    -Wall
    -fno-strict-aliasing
    -Wimplicit
    -Wstrict-prototypes
    -pipe
    -DUSE_ICON
    -DNO_GZIP
    -DUSE_LOCAL_HEADERS
    -DPRODUCT_VERSION="1.36"
    -MMD
    -DNDEBUG
    -O3
    -fomit-frame-pointer
    -funroll-loops
    -falign-loops=2
    -falign-jumps=2
    -falign-functions=2
    -fstrength-reduce
    -ffast-math

  CLIENT_CFLAGS:
    -DUSE_OPENAL
    -DUSE_OPENAL_DLOPEN
    -DUSE_CURL
    -DUSE_CURL_DLOPEN
    -DUSE_CODEC_VORBIS
    -Icode/SDL12/include
    -DUSE_MUMBLE
    -DUSE_VOIP
    -DFLOATING_POINT
    -DUSE_ALLOCA
    -Icode/libspeex/include

  SERVER_CFLAGS:
    -DUSE_VOIP

  LDFLAGS:

  LIBS:
    -ldl
    -lm

  CLIENT_LIBS:
    -lGL
    -lvorbisfile
    -lvorbis
    -logg
    -lrt

  Output:
    build/release-linux-x86_64/oa_ded.x86_64
    build/release-linux-x86_64/openarena.x86_64

/bin/sh: svnversion: command not found
make[2]: Entering directory `/home/opena/oas'
DED_CC code/server/sv_bot.c
DED_CC code/server/sv_client.c
DED_CC code/server/sv_ccmds.c
DED_CC code/server/sv_game.c
DED_CC code/server/sv_init.c
DED_CC code/server/sv_main.c
DED_CC code/server/sv_net_chan.c
DED_CC code/server/sv_snapshot.c
DED_CC code/server/sv_world.c
DED_CC code/qcommon/cm_load.c
DED_CC code/qcommon/cm_patch.c
DED_CC code/qcommon/cm_polylib.c
DED_CC code/qcommon/cm_test.c
DED_CC code/qcommon/cm_trace.c
DED_CC code/qcommon/cmd.c
DED_CC code/qcommon/common.c
DED_CC code/qcommon/cvar.c
DED_CC code/qcommon/files.c
DED_CC code/qcommon/md4.c
DED_CC code/qcommon/msg.c
DED_CC code/qcommon/net_chan.c
DED_CC code/qcommon/net_ip.c
DED_CC code/qcommon/huffman.c
DED_CC code/qcommon/q_math.c
DED_CC code/qcommon/q_shared.c
DED_CC code/qcommon/unzip.c
DED_CC code/qcommon/ioapi.c
DED_CC code/qcommon/vm.c
DED_CC code/qcommon/vm_interpreted.c
BOT_CC code/botlib/be_aas_bspq3.c
BOT_CC code/botlib/be_aas_cluster.c
BOT_CC code/botlib/be_aas_debug.c
BOT_CC code/botlib/be_aas_entity.c
BOT_CC code/botlib/be_aas_file.c
BOT_CC code/botlib/be_aas_main.c
BOT_CC code/botlib/be_aas_move.c
BOT_CC code/botlib/be_aas_optimize.c
BOT_CC code/botlib/be_aas_reach.c
BOT_CC code/botlib/be_aas_route.c
BOT_CC code/botlib/be_aas_routealt.c
BOT_CC code/botlib/be_aas_sample.c
BOT_CC code/botlib/be_ai_char.c
BOT_CC code/botlib/be_ai_chat.c
BOT_CC code/botlib/be_ai_gen.c
BOT_CC code/botlib/be_ai_goal.c
BOT_CC code/botlib/be_ai_move.c
BOT_CC code/botlib/be_ai_weap.c
BOT_CC code/botlib/be_ai_weight.c
BOT_CC code/botlib/be_ea.c
BOT_CC code/botlib/be_interface.c
BOT_CC code/botlib/l_crc.c
BOT_CC code/botlib/l_libvar.c
BOT_CC code/botlib/l_log.c
BOT_CC code/botlib/l_memory.c
BOT_CC code/botlib/l_precomp.c
BOT_CC code/botlib/l_script.c
BOT_CC code/botlib/l_struct.c
DED_CC code/null/null_client.c
DED_CC code/null/null_input.c
DED_CC code/null/null_snddma.c
DED_CC code/sys/con_log.c
DED_CC code/sys/sys_main.c
DED_CC code/zlib/adler32.c
DED_CC code/zlib/crc32.c
DED_CC code/zlib/inffast.c
DED_CC code/zlib/inflate.c
DED_CC code/zlib/inftrees.c
DED_CC code/zlib/zutil.c
DED_CC code/qcommon/vm_x86_64.c
DED_CC code/qcommon/vm_x86_64_assembler.c
DED_CC code/sys/sys_unix.c
DED_CC code/sys/con_tty.c
LD build/release-linux-x86_64/oa_ded.x86_64
CC code/client/cl_cgame.c
CC code/client/cl_cin.c
CC code/client/cl_console.c
CC code/client/cl_input.c
CC code/client/cl_keys.c
CC code/client/cl_main.c
CC code/client/cl_net_chan.c
CC code/client/cl_parse.c
code/client/cl_parse.c:419:4: warning: multi-line comment
CC code/client/cl_scrn.c
CC code/client/cl_ui.c
CC code/client/cl_avi.c
CC code/qcommon/cm_load.c
CC code/qcommon/cm_patch.c
CC code/qcommon/cm_polylib.c
CC code/qcommon/cm_test.c
CC code/qcommon/cm_trace.c
CC code/qcommon/cmd.c
CC code/qcommon/common.c
CC code/qcommon/cvar.c
CC code/qcommon/files.c
CC code/qcommon/md4.c
CC code/qcommon/md5.c
CC code/qcommon/msg.c
CC code/qcommon/net_chan.c
CC code/qcommon/net_ip.c
CC code/qcommon/huffman.c
CC code/client/snd_adpcm.c
CC code/client/snd_dma.c
CC code/client/snd_mem.c
CC code/client/snd_mix.c
CC code/client/snd_wavelet.c
CC code/client/snd_main.c
CC code/client/snd_codec.c
CC code/client/snd_codec_wav.c
CC code/client/snd_codec_ogg.c
CC code/client/qal.c
In file included from code/SDL12/include/SDL_config.h:42,
                 from code/SDL12/include/SDL_stdinc.h:30,
                 from code/SDL12/include/SDL_main.h:26,
                 from code/SDL12/include/SDL.h:30,
                 from code/client/../sys/sys_loadlib.h:39,
                 from code/client/qal.c:32:
code/SDL12/include/SDL_config_minimal.h:38: error: conflicting types for 'size_t                                                                                        '
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/stddef.h:214: error: previous dec                                                                                        laration of 'size_t' was here
make[2]: *** [build/release-linux-x86_64/client/qal.o] Error 1
make[2]: Leaving directory `/home/opena/oas'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/opena/oas'
make: *** [release] Error 2

This is what I got when I tried to run my server:
Code:
[opena@gserver openarena]$ ./oa_ded.x86_64 +set game truecombat +set ip 69.172.231.46 +set port 37960 +set vm 2 +set dedicated 2 +exec basic.cfg &
[4] 10485
[opena@gserver openarena]$ ioq3+oa 1.36 linux-x86_64 May  4 2011
----- FS_Startup -----
Current search path:
/home/opena//.openarena/baseoa
./baseoa/pak6-patch085.pk3 (559 files)
./baseoa/pak6-misc.pk3 (229 files)
./baseoa/pak5-TA.pk3 (139 files)
./baseoa/pak4-textures.pk3 (1753 files)
./baseoa/pak2-players.pk3 (669 files)
./baseoa/pak2-players-mature.pk3 (231 files)
./baseoa/pak1-maps.pk3 (100 files)
./baseoa/pak0.pk3 (1042 files)
./baseoa

----------------------
4722 files in pk3 files
execing default.cfg
execing q3config_server.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
--- Common Initialization Complete ---
IP: 127.0.0.1
IP: 69.172.231.46
IP6: ::1
IP6: fe80::216:3eff:feea:7301%eth0
Opening IP socket: 0.0.0.0:27960
WARNING: NET_IPSocket: bind: Address already in use
Opening IP socket: 0.0.0.0:27961
WARNING: NET_IPSocket: bind: Address already in use
Opening IP socket: 0.0.0.0:27962
WARNING: NET_IPSocket: bind: Address already in use
Opening IP socket: 0.0.0.0:27963                                                                                                                                       couldn't exec basic.cfg
]
« Last Edit: May 04, 2011, 06:28:19 pm by Rct. Tsoul » Logged
7
Member


Cakes 7
Posts: 278


Is 7 up?


« Reply #5 on: May 05, 2011, 01:30:15 am »

Firstly, if you look at the compiler output you pasted very carefully, you'll notice that the compilation and linkage of the dedicated server actually succeeded so you ought to find a working oa_ded.x86_64 in your build/release-linux-x86_64/ directory.

Secondly, I've got the 64-bit compilation of the client working too, so if you're still interested:

The size_t definition in the SDL_config_minimal.h header really is wrong for 64 bit, so you'll have to open code/SDL12/include/SDL_config_minimal.h with a text editor and change line 38 into:
Code:
typedef unsigned long int size_t;

Finally, you could have missing dependencies (some mesa, libvorbisfile and SDL stuff for me), so you might get errors on those (in which case you'll have to install those missing development packages).

Edit: no autoconfig at all Smiley
« Last Edit: May 05, 2011, 03:10:44 am by 7 » Logged

I'm on the ten most wanted list, I've got it dead in the groove.
My face is on every wanted poster in town, for the way I move.
Rct. Tsoul
Nub


Cakes 0
Posts: 23


« Reply #6 on: May 05, 2011, 04:42:58 am »

typo
Logged
7
Member


Cakes 7
Posts: 278


Is 7 up?


« Reply #7 on: May 05, 2011, 04:55:59 am »

./oa_ded.x86_64 +set dedicated 2 +set net_ip 69.172.231.46 +set net_port 27960 +set fs_game truecombat +set vm_game 2 +exec basic.cfg &

You could try a forum search yourself next time. Wink
Logged

I'm on the ten most wanted list, I've got it dead in the groove.
My face is on every wanted poster in town, for the way I move.
Rct. Tsoul
Nub


Cakes 0
Posts: 23


« Reply #8 on: May 09, 2011, 08:07:55 am »

THANKYOU, this solved the problem. Smiley
Logged
Pages: [1]
  Print  
 
Jump to: