SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 19/08/2019, 06:26 PM   #1
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 69
Reputation: 1
Default Compiling on linux

I've recently been looking around to compile on linux tried various shit but came to the end with QuickPawn.

I am not aware of this and seeking for help, could not find any help anywhere about this - maybe it has happend to you and you can give a hand.

[root@fm-hco pawn]# /opt/pawncc -iinclude gamemode.pwn -t4 -v2 -d3
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

gamemode.pwn(0) : fatal error 100: cannot read from file: "gamemode.pwn"

Compilation aborted.
1 Error.
fatlirmorina is offline   Reply With Quote
Old 19/08/2019, 06:29 PM   #2
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 272
Reputation: 22
Default Re: Compiling on linux

Someone had the same problem recently.
There are two simple ways to fix this:
1. Move libpawnc.so to lib32
2. Use: LD_LIBRARY_PATH=folder-where-libpawnc-is /opt/Pawn/pawncc
Plastikmensch is offline   Reply With Quote
Old 19/08/2019, 06:36 PM   #3
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 69
Reputation: 1
Default Re: Compiling on linux

Thanks for the solution, I've moved back the gamemode.pwn to main folder where everything is included however now I'm having a issue:


[root@fm-hco pawn]# /opt/pawncc -iinclude /opt/gamemodes/gamemode.pwn -t4 -v2 -d3
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

/opt/gamemodes/gamemode.pwn(10) : fatal error 100: cannot read from file: "a_samp"
fatlirmorina is offline   Reply With Quote
Old 19/08/2019, 06:39 PM   #4
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 272
Reputation: 22
Default Re: Compiling on linux

Try -i/include
Plastikmensch is offline   Reply With Quote
Old 19/08/2019, 06:42 PM   #5
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 69
Reputation: 1
Default Re: Compiling on linux

OK, Thanks. It's not creating any file or I am missing it?

[root@fm-hco pawn]# /opt/pawncc -i/opt/include /opt/include/gamemode.pwn -t4 -v2 -d3
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
fatlirmorina is offline   Reply With Quote
Old 19/08/2019, 08:08 PM   #6
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 69
Reputation: 1
Default Re: Compiling on linux

BUMP. This is needed ASAP, would appreciate if you would give a hint/hand on this
fatlirmorina is offline   Reply With Quote
Old 19/08/2019, 09:19 PM   #7
seegras
Little Clucker
 
Join Date: Dec 2011
Posts: 6
Reputation: 0
Default Re: Compiling on linux

i solved it that way recently

Code:
~/pawncc gamemodes/gamemode.pwn -iinclude "-;+" -v2 -d3 -Z+
seegras is offline   Reply With Quote
Old 19/08/2019, 10:04 PM   #8
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,072
Reputation: 184
Default Re: Compiling on linux

Just get https://github.com/pawn-lang/compiler and use something like Sublime or Visual Studio Code
__________________
Looking for someone to start drifting server, drop me a pm if you are interested.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is online now   Reply With Quote
Old 19/08/2019, 10:46 PM   #9
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 272
Reputation: 22
Default Re: Compiling on linux

Quote:
Originally Posted by fatlirmorina View Post
OK, Thanks. It's not creating any file or I am missing it?

[root@fm-hco pawn]# /opt/pawncc -i/opt/include /opt/include/gamemode.pwn -t4 -v2 -d3
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
You are probably missing it. I forgot where the amx is created when you give no output directory.
Either where pawncc is or where you execute the command.
You can change where the file will be with -D/path-to-output-dir (most likely you want to make that where the pwn file is)
Plastikmensch is offline   Reply With Quote
Old 20/08/2019, 06:48 AM   #10
fatlirmorina
Big Clucker
 
Join Date: Nov 2013
Posts: 69
Reputation: 1
Default Re: Compiling on linux

Quote:
Originally Posted by seegras View Post
i solved it that way recently

Code:
~/pawncc gamemodes/gamemode.pwn -iinclude "-;+" -v2 -d3 -Z+
with -Z+ I get an .amx file with 0 bytes and the params to use pawn, however removing -Z+ will show the same issue being stuck on it unless an ctrlC task is applied..
fatlirmorina 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
sampctl linux compiling Cadilab Scripting Help 0 27/05/2019 02:39 PM
[Help] Compiling to linux N1trO Plugin Development 5 16/05/2011 01:55 PM
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 3 16/01/2009 08:48 PM


All times are GMT. The time now is 12:42 PM.


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