AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Mac sourcepawn compiler? (https://forums.alliedmods.net/showthread.php?t=130230)

iamevilbear 06-21-2010 16:12

Mac sourcepawn compiler?
 
I have always used macs for work and with the pending release of srcds and css mac I have started to shift a lot of my sourcemod plugin development to macs. Previously I linked everything together with svn <> eclipse <> sourcepawn compiler and it has worked great.

I was wondering if there was anything special needed to build the compiler for mac? I downloaded the compiler directory and ran a make on it and got the following errors:
Quote:

sc1.c:69:31: error: sourcemod_version.h: No such file or directory
sc1.c: In function ‘setcaption’:
sc1.c:1230: error: expected ‘)’ before ‘SM_FULL_VERSION’
sc1.c: In function ‘make_report’:
sc1.c:4908: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘cell’
sc1.c:4918: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘cell’
sc1.c:4954: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘cell’
make[1]: *** [Release/sc1.o] Error 1
make: *** [all] Error 2
Is there an easy way to build a OSX compatible binary so that I can compile plugins locally in eclipse, rather than via the web compiler?

Thanks for any help

bear

BAILOPAN 06-21-2010 21:29

Re: Mac sourcepawn compiler?
 
The compiler is distributed with the SourceMod mac package. You can build it by scrunging with the Makefile, or by using AM's weird build system - I'd just get it from the package :)

pRED* 06-21-2010 22:06

Re: Mac sourcepawn compiler?
 
If you actually only have the compiler dir as you said, that would be an issue. sm_version.h is in public/

iamevilbear 06-22-2010 16:02

Re: Mac sourcepawn compiler?
 
Dang -- So should I just download a 1.4x branch and go from there?

iamevilbear 06-23-2010 13:29

Re: Mac sourcepawn compiler?
 
Ah, I was totally overlooking that it was already built and included. It looked like an exe file sitting in the folder so I just dismissed it and ignored it.

I've got everything setup in eclipse now! Loving it. Making my life so much easier.

Thanks again


All times are GMT -4. The time now is 06:42.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.