SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 02/09/2012, 10:16 AM   #1
woot
Gangsta
 
Join Date: Jun 2007
Posts: 927
Reputation: 166
Default Compiling on linux/unix

I'm used to OS X and wanna work on it, I've been able to compile the default new.pwn just using winehq which worked fine. Although just by adding some includes the pawn compiler messes up.

I've been looking at QuickPawn which comes with a compiler to compile on linux. I was unable to compile the compiler on OS X so I'm trying to do that on a local linux (debian) machine and it half-way worked out;

Quote:
manuel@home:~/pawn/QuickPawn$ /opt/Pawn/source/compiler/pawncc -iinclude mafia02.pwn -t4 -v2 -d2
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Tried various parameters, without parameters, but it doesn't finish compiling. Just creates an .amx file of 0KB and is stuck right there. No debug/error messages anywhere.

Has anyone been able to compile on linux? Any required pawncc parameters to be sent?
__________________
woop

Last edited by Y_Less; 08/09/2012 at 07:37 AM.
woot is offline   Reply With Quote
Old 03/09/2012, 08:54 PM   #2
woot
Gangsta
 
Join Date: Jun 2007
Posts: 927
Reputation: 166
Default Re: Compiling on linux

OK, finally got it to work - anyone who's in need of it;

Using wine it just continously kept creating 99byte AMX files, I then installed winetricks and downloaded vcredist2005. Now I can compile everything just fine!
__________________
woop
woot is offline   Reply With Quote
Old 03/09/2012, 09:14 PM   #3
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,104
Reputation: 3166
Default Re: Compiling on linux

I believe Slice has recovered the changes to the SA:MP compiler and built a native Linux compiler, but I'm not sure where to get it from - ask him.
Y_Less is offline   Reply With Quote
Old 03/09/2012, 10:38 PM   #4
JoBullet
Big Clucker
 
Join Date: Mar 2012
Posts: 59
Reputation: 100
Default Re: Compiling on linux

You can get required patches from ZeeX's github repo, the download link is also provided.
JoBullet is offline   Reply With Quote
Old 04/09/2012, 07:07 AM   #5
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 902
Reputation: 52
Default Re: Compiling on linux

lol, I used wine and standard pawno F5 compile
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor is offline   Reply With Quote
Old 06/09/2012, 06:29 PM   #6
NewerthRoleplay
High-roller
 
NewerthRoleplay's Avatar
 
Join Date: Nov 2011
Location: England :: The Danger Zone
Posts: 1,083
Reputation: 133
Wink Mac Compiler (Hear me out!)

Hey, I usually write my scripts on my mac then send a friend the files for them to press F5 and compile for me. Obviously this isn't ideal so being the person that I am I decided to look into the PAWN compiler over at http://www.compuphase.com/pawn/ So I went down to the section with the download for the toolkit source so I could compile it on my mac. After running in to multiple issues when generating the files with CMake I opened up the generated xproj file.

To put a long story short I am running into a few errors and I believe that I may be able to over come this, so that I am able to put the mac compiler with a PAWNO editor and be able to write scripts successfully.
Also I am a bit of a noob when using cmake and I believe that you are able to run the cmake_install.cmake but I do not have the command line link on my mac.

If anybody has any ideas about this feel free to post below

-Connor
__________________
NewerthRoleplay is offline   Reply With Quote
Old 06/09/2012, 07:14 PM   #7
woot
Gangsta
 
Join Date: Jun 2007
Posts: 927
Reputation: 166
Default Re: Mac Compiler (Hear me out!)

http://www.cmake.org/files/v2.8/cmake-2.8.9.tar.gz
install
cd into the src dir
type cmake
done.

As far as I know that pawn compiler on the website isn't the same as SA:MPs one, which is customized and which you cannot download anywhere.
__________________
woop
woot is offline   Reply With Quote
Old 06/09/2012, 07:17 PM   #8
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,104
Reputation: 3166
Default Re: Mac Compiler (Hear me out!)

http://www.cmake.org/cmake/help/help.html
Y_Less is offline   Reply With Quote
Old 06/09/2012, 08:38 PM   #9
NewerthRoleplay
High-roller
 
NewerthRoleplay's Avatar
 
Join Date: Nov 2011
Location: England :: The Danger Zone
Posts: 1,083
Reputation: 133
Default Re: Compiling on linux

Hey man I get the weird 96kb thing too when using wine, I too have tried many ways to get my scripts to compile on mac...its not going to happen imo.
__________________
NewerthRoleplay is offline   Reply With Quote
Old 08/09/2012, 12:59 AM   #10
kelvin22
Big Clucker
 
kelvin22's Avatar
 
Join Date: Apr 2011
Location: Bathroom!
Posts: 94
Reputation: 19
Default Compiling on OSX

Hello,

I recently have found out something nice, in most of times when you complie a pwn file the amx is unusable. Okay so if you simply install net framework 3.5 into the emulator the amx is usable. I have get it working on Crossover 11 I simply installed framework 3.5 and now I can make usable amx files

--

Kelvin C.
__________________


kelvin22 is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] Compiling to linux N1trO Plugin Development 5 16/05/2011 01:55 PM
General problems compiling on Linux (not asking for C help!) theRealG Plugin Development 2 11/04/2010 11:26 AM
Edit and Compiling... Linux Packer5 Server Support 2 20/12/2009 06:03 PM
Compiling on Linux Klid Help Archive 0 21/11/2009 12:11 PM
[LINUX] Compiling a .so XPlatform Plugin Development 6 16/01/2009 08:48 PM


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.