[Ajuda] Zeex compiler
#1

Alguйm pode me dar uma breve explicaзгo de como compilar o gamemode no Linux VPS Ubuntu usando Zeex Compiler?
Reply
#2

Instalar:
Код:
dpkg --add-architecture i386
apt-get update
apt-get -y install libc6:i386
wget https://github.com/Zeex/pawn/releases/do...4426200tar xfz pawnc-3.10.2-linux.tar.gz 
mv pawnc-3.10.2-linux/bin/* /usr/local/bin
mv pawnc-3.10.2-linux/lib/* /usr/local/lib
rm pawnc-3.10.2-linux -rf
Usar:
Код:
pawncc
Pawn compiler 3.10.2	 	 	Copyright © 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=-)
         -\       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.
Reply
#3

Quote:
Originally Posted by Dayvison_
Посмотреть сообщение
Instalar:
Код:
dpkg --add-architecture i386
apt-get update
apt-get -y install libc6:i386
wget https://github.com/Zeex/pawn/releases/do...0002003tar xfz pawnc-3.10.2-linux.tar.gz 
mv pawnc-3.10.2-linux/bin/* /usr/local/bin
mv pawnc-3.10.2-linux/lib/* /usr/local/lib
rm pawnc-3.10.2-linux -rf
Usar:
Код:
pawncc
Pawn compiler 3.10.2	 	 	Copyright © 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=-)
         -\       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.
Ocorreu isso na instalaзгo:

Код:
pawncc: error while loading shared libraries: libpawnc.so: cannot open shared object file: No such file or directory
Reply
#4

Colocou o libpawnc.so em /lib/ ? vocк sу pode fazer isso com permissхes de super user, se o seu SO for 64bits e vocк nгo instalar as libs que o Dayvison_ passou o sistema simplesmente ignora a existкncia do pawncc, samp03svr pelo menos no ubuntu isso acontece nгo sei em outras distros
Reply
#5

Pronto. Consegui fazer a instalaзгo, agora pode me dizer onde envio as includes, gamemode etc.. e como compilar?
Reply
#6

Agora vocк precisa configurar o editor de cуdigo que for usar para compilar com o pawncc, os ъnicos argumentos obrigatуrios sгo o que redireciona para as includes e o prуprio arquivo o Dayvison_ passou todos os argumentos ali em cima.
Existe tutoriais no fуrum para vбrios editores, sublime, atom, notepad++... vocк pode tambйm acessar a documentaзгo no site deles.

Posts do fуrum:
https://sampforum.blast.hk/showthread.php?tid=550365 - ATOM
https://sampforum.blast.hk/showthread.php?tid=404068 - SUBLIME
https://sampforum.blast.hk/showthread.php?tid=445985 - SUBLIME
https://sampforum.blast.hk/showthread.php?tid=348618 - NOTEPAD++
Reply
#7

Vocк pode fazer pelo terminal, como eu mencionei.
Код:
pawncc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)