Digital Paint Discussion Board

Paintball 2: The Game => Help and Support => Resolved Help & Support => Topic started by: ELEETCYBERPUNKHAXXXOR on July 18, 2006, 02:47:54 AM

Title: Compiling Paintball 2
Post by: ELEETCYBERPUNKHAXXXOR on July 18, 2006, 02: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
Title: Re: Compiling Paintball 2
Post by: EVENLEETERHAXOR on July 18, 2006, 02: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
Title: Re: Compiling Paintball 2
Post by: SUPERUBERHAXXX on July 18, 2006, 04:36:11 AM
CFLAGS="-march=k8 -pipe -msse3 -fno-omit-frame-pointer"

How in the world does this still enable -fomit-frame-pointer?
Title: Re: Compiling Paintball 2
Post by: Eiii on July 18, 2006, 04: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.
Title: Re: Compiling Paintball 2
Post by: HAX!131 on July 18, 2006, 05:01:57 AM
Great help dude!!
Thanks, it really f'ing fixed my problem!
Title: Re: Compiling Paintball 2
Post by: Eiii on July 18, 2006, 05:20:46 AM
I figure I'd help in the ways I could. :D
Title: Re: Compiling Paintball 2
Post by: XtremeBain on July 18, 2006, 07: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
Title: Re: Compiling Paintball 2
Post by: jitspoe on July 18, 2006, 03:28:40 PM
Just take out the -pg flag.  That's for doing profiling.
Title: Re: Compiling Paintball 2
Post by: TinMan on July 20, 2006, 09:47:26 PM
Guests can't modify.
Title: Re: Compiling Paintball 2
Post by: Eiii on July 20, 2006, 10:15:26 PM
Which is why he should register, like I said.
Title: Re: Compiling Paintball 2
Post by: TinMan on July 21, 2006, 03: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.
Title: Re: Compiling Paintball 2
Post by: LEETESTCYBERPUNKHAXORLAWL on March 16, 2007, 04: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 ::)
Title: Re: Compiling Paintball 2
Post by: jitspoe on March 16, 2007, 05:59:17 PM
Or set ENABLE_PROFILING to "NO" at the beginning of the makefile...
Title: Re: Compiling Paintball 2
Post by: LEETCYBERPUNKHAXOR on March 16, 2007, 06: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.
Title: Re: Compiling Paintball 2
Post by: jitspoe on March 16, 2007, 08: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.
Title: Re: Compiling Paintball 2
Post by: Phenax on March 16, 2007, 09: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.
Title: Re: Compiling Paintball 2
Post by: Zorchenhimer on March 16, 2007, 09: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.
Title: Re: Compiling Paintball 2
Post by: Phenax on March 16, 2007, 09: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