Digital Paint Discussion Board

Paintball 2: The Game => Paintball 2 Discussion => Topic started by: sk89q on December 02, 2007, 01:38:58 PM

Title: Compiling on amd64 / FreeBSD?
Post by: sk89q on December 02, 2007, 01:38:58 PM
Is it possible to compile the game on amd64 / FreeBSD? I can run the binary for Linux however (I have the compatibility libraries).
Title: Re: Compiling on amd64 / FreeBSD?
Post by: jitspoe on December 04, 2007, 01:47:03 PM
It should be.  I've compiled it on 32bit BSD and 64bit linux before.  You wouldn't be able to use it online, though, due to the cheat detection.
Title: Re: Compiling on amd64 / FreeBSD?
Post by: sk89q on December 04, 2007, 02:09:12 PM
amd64? Well, the Makefile prevents it from compiling. Removing that bit still doesn't help.

But anyway, say I am able to compile it. Running it as a public server won't matter?
Title: Re: Compiling on amd64 / FreeBSD?
Post by: XtremeBain on December 04, 2007, 02:25:44 PM
This isn't specific to amd64, and I don't think it's even specific to freebsd...
mkdir build_release/a3d

You'll have to do that for a couple folders, I believe.
Title: Re: Compiling on amd64 / FreeBSD?
Post by: sk89q on December 05, 2007, 12:27:23 AM
I only asked because (a) it failed and (b) the makefile doesn't like it.

Now on another note, anyone know how I get the headers for OpenGL I need to compile Paintball on FreeBSD? :)

Now on another note, anyone know how to get rid of this error: 'Please run 'make realclean' before changing configs?

Got it finally compiled. Was sure a bastard.

Got the game.so file from b19's x64 linux patch:

Code: [Select]
[22:50:36] ------- Loading game.so -------
[22:50:36] LoadLibrary(./pball/game.so):Shared object "libm.so.6" not found, required by "game.so"
[22:50:36] ********************
ERROR: failed to load game DLL
********************

Boo =(
Title: Re: Compiling on amd64 / FreeBSD?
Post by: sk89q on December 05, 2007, 12:33:47 PM
*double post*

I found a "libm.so.6" in a compat folder on the system; however, it won't work with game.so: 'unrecognized file layout' => means wrong arch?

This has been thoroughly impossible!

I have never actually tried the official x64 binary... but now I have:

Code: [Select]
[kafserv@s1 ~/paintball2_x64/paintball2]$ brandelf -t FreeBSD paintball2
[kafserv@s1 ~/paintball2_x64/paintball2]$ ./paintball2 +set dedicated 1
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found
Abort trap: 6
Title: Re: Compiling on amd64 / FreeBSD?
Post by: jitspoe on December 06, 2007, 04:52:09 PM
libm is unrecognized or game.so is?
Title: Re: Compiling on amd64 / FreeBSD?
Post by: sk89q on December 06, 2007, 06:34:40 PM
Based on some inference (because it doesn't say), it'd be libm.so.6, because if I ln libm.so.3/4 to libm.so.6, game.so reports no error other than an expectable missing entry point.