Compiling ETPub for Mac Issue.


(BlackRacoon) #1

A while back I started development on a small trial mod for just personal use try and learn C and some SDK development. The mod works on windows and linux and does actually compile and bundle succesfully under mac.

The issue is that while, windows and linux work perfectly for clients connecting, when mac clients connnect they get a VM_Create on cgame failed. This has only be tested for users that are running MAC OSX 10.7.

The mod is based on ETPUB revision 379.

I’m unsure on the exact reason of the cgame VM_Create issue. I suspect it has something to do with ppc/intel mac support. However the bundle file does have .x86 and a .ppc file for both ui and cgame.

The files are all packed correctly in the .pk3 so I’m a bit lost currently.

Any pointing in the right direction would be great!

Regards, BR


(Indloon) #2

Didn’t newer version of Mac OS X drop support for x86 architecture?

I’m not sure, but I did it read it somewhere some days ago…


(BlackRacoon) #3

[QUOTE=Indloon;402320]Didn’t newer version of Mac OS X drop support for x86 architecture?

I’m not sure, but I did it read it somewhere some days ago…[/QUOTE]

Just grabbed this:

Lion still has both kernels, so yes you can run in 32 or 64bit mode. 32bit mode lets you also execute 64bit apps. ( use this combo myself )

So it should be ok then I guess?

Is there any way to even debug this? I’m not exactly sure even what this error implicates. Does it mean the library can’t be loaded by the et application? Or Does it mean it can’t be extracted from the pk3?

Still trying at it…


(BlackRacoon) #4

Ok So another small update, I tried compiling the latest ETPUB for mac and it works for lion. So I tried to work out the descepency possibly in the scons files SCONSUTRCT makebundle. I ended up copying it all over across (and since it includues the Curl library I just copied that across too). So after compiling with all their updated scons files MY version still has the same issue!! I’m not quite sure what else could be the issue here…


(Flames) #5

Are you stripping the binaries (before they’re bundled)? I used to do it too, but this was causing it not to work…

Are you cross-compiling from linux or compiling on a native mac?

The architecture of the mac clients shouldn’t be an issue since the files are compiled with -arch ppc -arch i386, so both are supported.


(BlackRacoon) #6

I’ts finally sorted,

Thanks flames, I was previously doing that yes, my other issue was that I had a missing ifdef for MAC too in the cgame.

Thank you!!!