System2 extends Sourcemod with a easy HTTP/FTP Request API and also provides some useful system commands, which missing in the Sourcemod API.
Binaries and more information can be found on alliedmods.net
Set build path
export BUILD_DIR=$HOME
cd $BUILD_DIR
Build openssl
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz && tar -xvzf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k
setarch i386 ./config -m32 no-shared && make
mkdir lib && cp *.a lib/
cd $BUILD_DIR
Build zlib
wget http://zlib.net/zlib1211.zip && unzip zlib1211.zip
cd zlib-1.2.11
CFLAGS=-m32 ./configure -static && make
mkdir include && mkdir lib && cp *.h include/ && cp libz.a lib
cd $BUILD_DIR
Build libidn
wget https://ftp.gnu.org/gnu/libidn/libidn2-2.2.0.tar.gz && tar -xvzf libidn2-2.2.0.tar.gz
cd libidn2-2.2.0
CFLAGS=-m32 ./configure --disable-shared --enable-static --disable-doc && make
mkdir include && cp lib/*.h include/ && cp lib/.libs/libidn2.a lib
cd $BUILD_DIR
Build libcurl
wget https://curl.se/download/curl-7.76.0.zip && unzip curl-7.76.0.zip
cd curl-7.76.0
./configure --with-ssl=$BUILD_DIR/openssl-1.1.1k --with-zlib=$BUILD_DIR/zlib-1.2.11 --with-libidn2=$BUILD_DIR/libidn2-2.2.0 --disable-shared --enable-static --disable-rtsp --disable-ldap --disable-ldaps --disable-manual --disable-libcurl-option --without-librtmp --without-libssh2 --without-nghttp2 --without-gssapi --host=i386-pc-linux-gnu CFLAGS=-m32 && make all ca-bundle
cd $BUILD_DIR
Get Sourcemod 1.10
git clone https://github.com/alliedmodders/sourcemod --recursive --branch 1.10-dev --single-branch sourcemod-1.10
Build system2
git clone https://github.com/dordnung/System2
cd System2
make SMSDK=$BUILD_DIR/sourcemod-1.10 OPENSSL=$BUILD_DIR/openssl-1.1.1k ZLIB=$BUILD_DIR/zlib-1.2.11 IDN=$BUILD_DIR/libidn2-2.2.0 CURL=$BUILD_DIR/curl-7.76.0
Build zlib
https://zlib.net/zlib1211.zip
and unzip to some folderDeveloper Command Prompt for VS 2019
at the zlib-1.2.11
foldervcvarsall.bat x86
and press ENTERnmake /f win32/Makefile.msc LOC=-MT
and press ENTERmd lib include
and press ENTERcopy /Y zlib.lib lib
and press ENTERcopy /Y *h include
and press ENTERZLIB
pointing to the zlib-1.2.11
folderBuild libcurl
https://curl.se/download/curl-7.76.0.zip
and unzip to some folderDeveloper Command Prompt for VS 2019
at the curl-7.76.0
foldervcvarsall.bat x86
and press ENTERcd winbuild
and press ENTERnmake /f Makefile.vc mode=static WITH_ZLIB=static ZLIB_PATH=%ZLIB% RTLIBCFG=static VC=16 MACHINE=x86
and press ENTERCURL
pointing to the curl-7.76.0/builds/libcurl-vc16-x86-release-static-zlib-static-ipv6-sspi-schannel
folderGet Sourcemod 1.10
git clone https://github.com/alliedmodders/sourcemod --recursive --branch 1.10-dev --single-branch sourcemod-1.10
SOURCEMOD
with the path to the sourcemod-1.10 folderBuild System2
git clone https://github.com/dordnung/System2
Developer Command Prompt for VS 2019
at the system2
foldervcvarsall.bat x86
and press ENTERmsbuild msvc19/system2.sln /p:Platform="win32"
and press ENTER