Mac OS source pawn компиляция

MrStark_

Участник
Сообщения
45
Реакции
6
Добрый день.
Не так давно снова вернулся на Mac OS и возникла потребность скомпилировать плагин, но сделать это не удалось, ибо выбивает ошибку.

C-подобный:
Compiling star_wars.sp ...
SourcePawn Compiler 1.9.0.6241
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2017 AlliedModders LLC

star_wars.sp(2) : fatal error 183: cannot read from file: "sw/core.inc"

Compilation aborted.
1 Error.
 

iSe7en

Участник
Сообщения
209
Реакции
111
C-подобный:
#!/bin/bash -e
cd "$(dirname "$0")"

test -e compiled || mkdir compiled

if [[ $# -ne 0 ]]; then
    for sourcefile in "$@"
    do
        smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
        echo -e "\nCompiling $sourcefile..."
        ./spcomp $sourcefile -iinclude -ocompiled/$smxfile
    done
else
    for sourcefile in *.sp
    do
        smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
        echo -e "\nCompiling $sourcefile ..."
        ./spcomp $sourcefile -iinclude -ocompiled/$smxfile
    done
fi

Используй этот compile.sh или добавь сам -iinclude в свой на строках с ./spcomp
 

MrStark_

Участник
Сообщения
45
Реакции
6
C-подобный:
#!/bin/bash -e
cd "$(dirname "$0")"

test -e compiled || mkdir compiled

if [[ $# -ne 0 ]]; then
    for sourcefile in "$@"
    do
        smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
        echo -e "\nCompiling $sourcefile..."
        ./spcomp $sourcefile -iinclude -ocompiled/$smxfile
    done
else
    for sourcefile in *.sp
    do
        smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
        echo -e "\nCompiling $sourcefile ..."
        ./spcomp $sourcefile -iinclude -ocompiled/$smxfile
    done
fi

Используй этот compile.sh или добавь сам -iinclude в свой на строках с ./spcomp
не помогло
 

Virus

Участник
Сообщения
706
Реакции
786
  • Команда форума
  • #9

Вложения

  • 54345.JPG
    54345.JPG
    4 КБ · Просмотры: 19
Сверху Снизу