Author Topic: Compiling on amd64 / FreeBSD?  (Read 2771 times)

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Compiling on amd64 / FreeBSD?
« on: December 02, 2007, 12: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).

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Compiling on amd64 / FreeBSD?
« Reply #1 on: December 04, 2007, 12: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.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Compiling on amd64 / FreeBSD?
« Reply #2 on: December 04, 2007, 01: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?
« Last Edit: December 04, 2007, 11:23:48 PM by sk89q »

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Compiling on amd64 / FreeBSD?
« Reply #3 on: December 04, 2007, 01: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.

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Compiling on amd64 / FreeBSD?
« Reply #4 on: December 04, 2007, 11:27:23 PM »
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 =(
« Last Edit: December 05, 2007, 12:51:43 AM by sk89q »

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Compiling on amd64 / FreeBSD?
« Reply #5 on: December 05, 2007, 11:33:47 AM »
*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

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Compiling on amd64 / FreeBSD?
« Reply #6 on: December 06, 2007, 03:52:09 PM »
libm is unrecognized or game.so is?

sk89q

  • Global Moderator
  • Autococker
  • Posts: 1049
Re: Compiling on amd64 / FreeBSD?
« Reply #7 on: December 06, 2007, 05: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.