SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   Compiling on linux (https://forum.sa-mp.com/showthread.php?t=668782)

fatlirmorina 19/08/2019 06:26 PM

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.

Plastikmensch 19/08/2019 06:29 PM

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

fatlirmorina 19/08/2019 06:36 PM

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"

Plastikmensch 19/08/2019 06:39 PM

Re: Compiling on linux
 
Try -i/include

fatlirmorina 19/08/2019 06:42 PM

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 19/08/2019 08:08 PM

Re: Compiling on linux
 
BUMP. This is needed ASAP, would appreciate if you would give a hint/hand on this

seegras 19/08/2019 09:19 PM

Re: Compiling on linux
 
i solved it that way recently

Code:

~/pawncc gamemodes/gamemode.pwn -iinclude "-;+" -v2 -d3 -Z+

DRIFT_HUNTER 19/08/2019 10:04 PM

Re: Compiling on linux
 
Just get https://github.com/pawn-lang/compiler and use something like Sublime or Visual Studio Code

Plastikmensch 19/08/2019 10:46 PM

Re: Compiling on linux
 
Quote:

Originally Posted by fatlirmorina (Post 4110474)
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)

fatlirmorina 20/08/2019 06:48 AM

Re: Compiling on linux
 
Quote:

Originally Posted by seegras (Post 4110526)
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..


All times are GMT. The time now is 04:09 PM.

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