Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Support [Server] How to compile a GM on linux?

 
  • 0 Vote(s) - 0 Average
Server How to compile a GM on linux?
hiwyn
Offline

Burgershot Member
Posts: 23
Threads: 8
Joined: Sep 2021
Reputation: 0
#1
2021-09-18, 03:56 PM
How to compile a GM on linux?
Is it possible to do on VSCODE?
hiwyn
Offline

Burgershot Member
Posts: 23
Threads: 8
Joined: Sep 2021
Reputation: 0
#2
2021-09-21, 10:25 PM
is it possible to compile on terminal or something?
Kwarde
Offline

Burgershot Member
Posts: 99
Threads: 2
Joined: Sep 2020
Reputation: 8
Location: The Netherlands
#3
2021-09-22, 09:43 AM
Quote:How to compile a GM on linux?
With pawncc like usually: https://github.com/pawn-lang/compiler/releases

Quote:Is it possible to do on VSCODE?
Yes

Quote:is it possible to compile on terminal or something?
Yes.
Awide
Offline

Burgershot Member
Posts: 62
Threads: 5
Joined: Sep 2019
Reputation: 5
#4
2021-09-22, 06:00 PM
You can also use sampctl on linux.
Desolation Roleplay has closed. You can download the gamemode here: https://www.burgershot.gg/showthread.php?tid=2272
hiwyn
Offline

Burgershot Member
Posts: 23
Threads: 8
Joined: Sep 2021
Reputation: 0
#5
2021-09-28, 12:54 PM (This post was last modified: 2021-09-28, 12:59 PM by hiwyn.)
i've download:
https://github.com/pawn-lang/compiler/releases
3.10.10

Code:
cd ~/Downloads/pawnc-3.10.10-linux/bin
sudo mv pawncc /usr/bin
sudo mv pawndisasm /usr/bin
sudo mv libpawnc.so /usr/lib


but now, how to use it?

i don't get with
Code:
[email protected]:~/Documents/sampserver$ pawncc
Code:
pawncc
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase

Usage:   pawncc <filename> [filename...] [options]

Options:
         -A<num>  alignment in bytes of the data segment and the stack
         -a       output assembler code
         -C[+/-]  compact encoding for output file (default=+)
         -c<name> codepage name or number; e.g. 1252 for Windows Latin-1
         -Dpath   active directory path
         -d<num>  debugging level (default=-d1)
             0    no symbolic information, no run-time checks
             1    run-time checks, no symbolic information
             2    full debug information and dynamic checking
             3    same as -d2, but implies -O0
         -e<name> set name of error file (quiet compile)
         -i<name> path for include files
         -l       create list file (preprocess only)
         -o<name> set base name of (P-code) output file
         -O<num>  optimization level (default=-O1)
             0    no optimization
             1    JIT-compatible optimizations only
             2    full optimizations
         -p<name> set name of "prefix" file
         -R[+/-]  add detailed recursion report with call chains (default=-)
         -r[name] write cross reference report to console or to specified file
         -S<num>  stack/heap size in cells (default=4096)
         -s<num>  skip lines from the input file
         -t<num>  TAB indent size (in character positions, default=8)
         -v<num>  verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)
         -w<num>  disable a specific warning by its number
         -X<num>  abstract machine size limit in bytes
         -XD<num> abstract machine data/stack size limit in bytes
         -Z[+/-]  run in compatibility mode (default=-)
         -E[+/-]  turn warnings in to errors
         -\       use '\' for escape characters
         -^       use '^' for escape characters
         -;[+/-]  require a semicolon to end each statement (default=-)
         -([+/-]  require parantheses for function invocation (default=-)
         sym=val  define constant "sym" with value "val"
         sym=     define constant "sym" with value 0

Options with a value may optionally separate the value from the option letter
with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"
and "-d:0" are all equivalent.

cd gamemodes && pawncc new.pwn
Code:
Pawn compiler 3.10.10              Copyright (c) 1997-2006, ITB CompuPhase

new.pwn(1) : fatal error 100: cannot read from file: "a_samp"

Compilation aborted.


1 Error.

how should i put where is my libs?
how should i make it to work in vscode?
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode