Raised This Month: $12 Target: $400
 3% 

Mac sourcepawn compiler?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iamevilbear
Member
Join Date: Mar 2010
Old 06-21-2010 , 16:12   Mac sourcepawn compiler?
Reply With Quote #1

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:691: 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
iamevilbear is offline
BAILOPAN
Join Date: Jan 2004
Old 06-21-2010 , 21:29   Re: Mac sourcepawn compiler?
Reply With Quote #2

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
__________________
egg
BAILOPAN is offline
pRED*
Join Date: Dec 2006
Old 06-21-2010 , 22:06   Re: Mac sourcepawn compiler?
Reply With Quote #3

If you actually only have the compiler dir as you said, that would be an issue. sm_version.h is in public/
pRED* is offline
iamevilbear
Member
Join Date: Mar 2010
Old 06-22-2010 , 16:02   Re: Mac sourcepawn compiler?
Reply With Quote #4

Dang -- So should I just download a 1.4x branch and go from there?
iamevilbear is offline
iamevilbear
Member
Join Date: Mar 2010
Old 06-23-2010 , 13:29   Re: Mac sourcepawn compiler?
Reply With Quote #5

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
iamevilbear is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:23.


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