Author Topic: Compiling Paintball 2  (Read 3376 times)

ELEETCYBERPUNKHAXXXOR

  • Guest
Compiling Paintball 2
« on: July 18, 2006, 12:47:54 AM »
Hello, I'm trying to compile Digital Paintball. Unfortunatly I run into a problem considering my default CFLAGS include -fomit-frame-pointer. This conflicts with the -pg set in the make file.

I've used sed to patch the makefile so it doesn't include -pg, then Digital Paintball doesn't generate the game .dll. I'm pretty sure this is in direct relation to removing -pg.

Can anyone tell me is there anyway to manually disable -fomit-frame-pointer? It insists on being used.  ;D

EVENLEETERHAXOR

  • Guest
Re: Compiling Paintball 2
« Reply #1 on: July 18, 2006, 12:50:23 AM »
Oh, by the way, the exact error message for the conflict is:
Code: [Select]
x86_64-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible

SUPERUBERHAXXX

  • Guest
Re: Compiling Paintball 2
« Reply #2 on: July 18, 2006, 02:36:11 AM »
CFLAGS="-march=k8 -pipe -msse3 -fno-omit-frame-pointer"

How in the world does this still enable -fomit-frame-pointer?

Eiii

  • Autococker
  • Posts: 4595
Re: Compiling Paintball 2
« Reply #3 on: July 18, 2006, 02:56:13 AM »
Two things:
Please, if you're going to be a guest, use the same name each time. Otherwise it'll be hard to tell if it's actually you.
Second, register and use the 'Modify' button to change your posts instead of posting multiple times.

HAX!131

  • Guest
Re: Compiling Paintball 2
« Reply #4 on: July 18, 2006, 03:01:57 AM »
Great help dude!!
Thanks, it really f'ing fixed my problem!

Eiii

  • Autococker
  • Posts: 4595
Re: Compiling Paintball 2
« Reply #5 on: July 18, 2006, 03:20:46 AM »
I figure I'd help in the ways I could. :D

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Compiling Paintball 2
« Reply #6 on: July 18, 2006, 05:23:09 AM »
HAX:  I'll take a look at it when I get home,  I've never had too many problems compiling the binaries except for having to manually mkdir the a3d(which doesn't get built anyway...).

There are some pretty picky bugs in the makefile that seems to break builds in other archs from what I've heard.
You could always drop by #quetoo on freenode to get some quick help.  Those guys seem to be the kings of Q2 in linux. :P

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Compiling Paintball 2
« Reply #7 on: July 18, 2006, 01:28:40 PM »
Just take out the -pg flag.  That's for doing profiling.

TinMan

  • Autococker
  • Posts: 1347
Re: Compiling Paintball 2
« Reply #8 on: July 20, 2006, 07:47:26 PM »
Guests can't modify.

Eiii

  • Autococker
  • Posts: 4595
Re: Compiling Paintball 2
« Reply #9 on: July 20, 2006, 08:15:26 PM »
Which is why he should register, like I said.

TinMan

  • Autococker
  • Posts: 1347
Re: Compiling Paintball 2
« Reply #10 on: July 21, 2006, 01:30:22 AM »
While we're sorta on the compiling topic, is there any way I could get the files that are missing for compilation? I'm trying to compile for 64-bit linux, and for Intel SMP Mac OS X (Darwin). If someone makes a 64-bit linux binary for me that would be fine too.

LEETESTCYBERPUNKHAXORLAWL

  • Guest
Re: Compiling Paintball 2
« Reply #11 on: March 16, 2007, 02:25:53 PM »
Hallo,
This problem is still here..

# ifeq ($(ENABLE_PROFILING),YES)
BASE_CFLAGS+= -pg
# endif

FIX:
Comment out BASE_CFLAGS+= -pg
No one likes it  :P ::)

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Compiling Paintball 2
« Reply #12 on: March 16, 2007, 03:59:17 PM »
Or set ENABLE_PROFILING to "NO" at the beginning of the makefile...

LEETCYBERPUNKHAXOR

  • Guest
Re: Compiling Paintball 2
« Reply #13 on: March 16, 2007, 04:32:42 PM »
As I posted, those lines are already commented out.

Anyways.. my mouse is crazy and DP2 doesn't want to load gamex86_64.so, yes I moved them in the correct locations.
I'll play with it later.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18801
Re: Compiling Paintball 2
« Reply #14 on: March 16, 2007, 06:00:28 PM »
Does the 32bit version not work on your system?  Starting very soon, checks for modified content are going to be enforced (including the executables) to crack down on cheating, so you could get banned for using an unofficial build.

Phenax

  • PGP
  • Posts: 17
Re: Compiling Paintball 2
« Reply #15 on: March 16, 2007, 07:00:43 PM »
(It's me, sorry about the informality.)
No, because I don't use IA32 emulation.

If you're going to just eliminate support for my client, as well as several other architectures, count me out.
If you want to try to add support and have people maintain binaries for alternate architectures, I'll throw in a helping hand.

But under the pretenses that I will just be banned, then no, I won't even bother carrying on.
Anyways, I played this game a year or two ago and it was pretty fun, unconditionally good job.
Bai.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Compiling Paintball 2
« Reply #16 on: March 16, 2007, 07:14:39 PM »
Well, if you let jits look at the code I'm sure you can get them approved and made "official" clients for the 64-bit architecture.

Phenax

  • PGP
  • Posts: 17
Re: Compiling Paintball 2
« Reply #17 on: March 16, 2007, 07:18:17 PM »
Meh, actually I posted here but just forget it. Nice game, but it's not for me. I don't have that much free time so I shouldn't.

Good luck with the project, and bye!  :D