Git Product home page Git Product logo

gsclib's Introduction

gsclib

Checks CodeFactor License

gsclib acts as a standard library extension for the Call of Duty 4 scripting language. The features this library provides consists of an FTP/FTPS/SFTP client, an HTTP/HTTPS client, Regular Expression (PCRE2) support, Language Integrated Query (Linq) support, a MySQL connector for databases, casting/type conversion/fmt and other type utilities, ZIP files, async workers, and much more. More detailed information on each feature can be found in the documentation section.

Features & Documentation

Instructions

In order to use this library, you'll need to compile the binary and place it to the CoD4 plugins directory. Then you can simply use loadplugin gsclib in your server.cfg or as CLI arguments.

To initialize gsclib library you need to call GSCLIB_Init() at the start of your mod entry point.

main()
{
	GSCLIB_Init();
}

Server

  1. Edit plugin_handler.h then recompile the server with a clean obj directory:
#define MAX_SCRIPTFUNCTIONS 256

Building (Linux)

Pre-Requisites:

  1. CGSC and it's pre-requisites.
  2. CMake and vcpkg.

Build Command:

mkdir build && cd build
cmake .. --preset linux
cmake --build .

Building (Windows)

Pre-Requisites:

  1. CGSC and it's pre-requisites.
  2. CMake and vcpkg.

Build Command:

mkdir build && cd build
cmake .. --preset windows
cmake --build .

Troubleshouting

For resolving missing dependencies you can use the ldd command for Linux, and Dependency Walker for Windows.

Contributors:

Note: If you would like to contribute to this repository, feel free to send a pull request, and I will review your code. Also feel free to post about any problems that may arise in the issues section of the repository.

gsclib's People

Contributors

iswenzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gsclib's Issues

gsclib and mysql connection

SQL_SelectDB(): Changing DBs failed: 'Server has gone away': ]

***** script runtime error *******
SQL_Connect(): Connection failed: ]

i have ubuntu 22.04.

Cannot loadplugin on Windows

Error: Failed to load the plugin e:\steamlibrary\steamapps\common\call of duty 4\plugin.gsclib.tmp!

I built it just fine (with nocgsc), moved the gsclib.dll to main\plugins, and also moved libcurl.dll, libdre2.dll and libmysql.dll to the root of my CoD4x server folder.

Compile problem ubuntu 18.04

root@:# cd gsclib
root@:
/gsclib# cd build
root@:~/gsclib/build# conan install .. --build missing --profile:host ../.conan/linux_host.conf --profile:build ../.conan/linux_build.conf
Configuration (profile_host):
[settings]
arch=x86
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
[options]
[build_requires]
[env]
CC=gcc -D_FILE_OFFSET_BITS=64
Configuration (profile_build):
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
[options]
[build_requires]
[env]

WARN: libmysqlclient/8.0.17: requirement openssl/1.1.1s overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libmysqlclient/8.0.17: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libcurl/7.80.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libcurl/7.80.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libssh2/1.10.0: requirement openssl/1.1.1q overridden by libcurl/7.80.0 to openssl/1.1.1m
WARN: libzip/1.8.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libzip/1.8.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: pcre2/10.39: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
libmysqlclient/8.0.17: WARN: Package binary is corrupted, removing: 3a0e4423153ea4b1990929726bd6a090ddd19821
conanfile.py (gsclib/1.5.0): Installing package
Requirements
CGSC/1.2.2 from 'iswenzz-conan' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
cwalk/1.2.5 from 'conancenter' - Cache
greatest/1.5.0 from 'conancenter' - Cache
libcurl/7.80.0 from 'conancenter' - Cache
libmysqlclient/8.0.17 from 'conancenter' - Cache
libssh2/1.10.0 from 'conancenter' - Cache
libuv/1.44.2 from 'conancenter' - Cache
libzip/1.8.0 from 'conancenter' - Cache
openssl/1.1.1m from 'conancenter' - Cache
pcre2/10.39 from 'conancenter' - Cache
xz_utils/5.4.2 from 'conancenter' - Cache
zlib/1.2.12 from 'conancenter' - Cache
zstd/1.5.5 from 'conancenter' - Cache
Packages
CGSC/1.2.2:0871fd480d0537819ca22650eae2dd8aa2153c2a - Cache
bzip2/1.0.8:b5e213a80b28363233747aa275eb337ab3e693f2 - Cache
cwalk/1.2.5:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libcurl/7.80.0:04e23566d152e486dc0b37a57fea7dea451c4193 - Build
libmysqlclient/8.0.17:3a0e4423153ea4b1990929726bd6a090ddd19821 - Build
libssh2/1.10.0:5da026cebb12a89dabec384fa466f1cd1e24039a - Build
libuv/1.44.2:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
libzip/1.8.0:1a704f6bb1bbd7599b64f006c86437b733757040 - Build
openssl/1.1.1m:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
pcre2/10.39:e04c0e9f31c7b020c50b322b208adfd788d4555a - Build
xz_utils/5.4.2:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
zlib/1.2.12:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
zstd/1.5.5:dc598489a244e0c53da1bd9a4537659f2552e7c0 - Cache
Build requirements
autoconf/2.71 from 'conancenter' - Cache
automake/1.16.5 from 'conancenter' - Cache
greatest/1.5.0 from 'conancenter' - Cache
libtool/2.4.7 from 'conancenter' - Cache
m4/1.4.19 from 'conancenter' - Cache
pkgconf/1.9.3 from 'conancenter' - Cache
Build requirements packages
autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
automake/1.16.5:258f6f05ca54813b3d7180161753df7f9ccf7e1d - Cache
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libtool/2.4.7:445047bf696d55be0de53e5d97c24a63a4218039 - Cache
m4/1.4.19:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache
pkgconf/1.9.3:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

Cross-build from 'Linux:x86_64' to 'Linux:x86'
Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
cwalk/1.2.5: Already installed!
greatest/1.5.0: Already installed!
libuv/1.44.2: Already installed!
m4/1.4.19: Already installed!
m4/1.4.19: Appending PATH environment variable: /root/.conan/data/m4/1.4.19///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin
openssl/1.1.1m: Already installed!
pkgconf/1.9.3: Already installed!
pkgconf/1.9.3: Appending PATH env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin
pkgconf/1.9.3: Setting PKG_CONFIG env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/pkgconf
pkgconf/1.9.3: Appending AUTOMAKE_CONAN_INCLUDES env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/aclocal
xz_utils/5.4.2: Already installed!
zlib/1.2.12: Already installed!
zstd/1.5.5: Already installed!
CGSC/1.2.2: Already installed!
autoconf/2.71: Already installed!
autoconf/2.71: Defining AC_MACRODIR environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
autoconf/2.71: Defining autom4te_perllibdir environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
autoconf/2.71: Defining AUTOCONF environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoconf
autoconf/2.71: Defining AUTORECONF environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoreconf
autoconf/2.71: Defining AUTOHEADER environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoheader
autoconf/2.71: Defining AUTOM4TE environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autom4te
libmysqlclient/8.0.17: WARN: Build folder is dirty, removing it: /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
libmysqlclient/8.0.17: Copying sources to build folder
libmysqlclient/8.0.17: Building your package in /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
libmysqlclient/8.0.17: Generator cmake created conanbuildinfo.cmake
libmysqlclient/8.0.17: Generator pkg_config created libcrypto.pc
libmysqlclient/8.0.17: Generator pkg_config created libssl.pc
libmysqlclient/8.0.17: Generator pkg_config created openssl.pc
libmysqlclient/8.0.17: Generator pkg_config created zlib.pc
libmysqlclient/8.0.17: Aggregating env generators
libmysqlclient/8.0.17: Calling build()
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_ICU(ICU_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(ICU_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LIBEVENT(LIBEVENT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LIBEVENT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_RE2(RE2_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(RE2_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_RAPIDJSON(RAPIDJSON_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(RAPIDJSON_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_PROTOBUF(PROTOBUF_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(PROTOBUF_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'MYSQL_CHECK_LIBEDIT()
' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'INCLUDE(libedit)
' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LIBEDIT(LIBEDIT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LIBEDIT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LZ4(LZ4_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LZ4_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'IF(NOT OPENSSL_APPLINK_C)
' in 'source_subfolder/cmake/ssl.cmake' file.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821/CMakeFiles/CMakeOutput.log".
See also "/root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821/CMakeFiles/CMakeError.log".
libmysqlclient/8.0.17:
libmysqlclient/8.0.17: ERROR: Package '3a0e4423153ea4b1990929726bd6a090ddd19821' build failed
libmysqlclient/8.0.17: WARN: Build folder /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
ERROR: libmysqlclient/8.0.17: Error in build() method, line 240
cmake = self.configure_cmake()
while calling 'configure_cmake', line 235
cmake.configure(source_dir=self.source_subfolder)
ConanException: Error 1 while executing cd '/root/.conan/data/libmysqlclient/8.0.17/
/
/build/3a0e4423153ea4b1990929726bd6a090ddd19821' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9" -DCONAN_CXX_FLAGS="-m32" -DCONAN_SHARED_LINKER_FLAGS="-m32" -DCONAN_C_FLAGS="-m32" -DCONAN_LIBCXX="libstdc++" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/root/.conan/data/libmysqlclient/8.0.17/
//package/3a0e4423153ea4b1990929726bd6a090ddd19821" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DDISABLE_SHARED="True" -DSTACK_DIRECTION="-1" -DWITHOUT_SERVER="True" -DWITH_UNIT_TESTS="False" -DENABLED_PROFILING="False" -DMYSQL_MAINTAINER_MODE="False" -DWIX_DIR="False" -DWITH_SSL="/root/.conan/data/openssl/1.1.1m//_/package/860d64ebdb6ea8695c2a26368abbf08ada0fc660" -DWITH_ZLIB="system" -Wno-dev 'source_subfolder'
root@vmi1283936:~/gsclib/build# conan install .. --build missing --profile:host ../.conan/linux_host.conf --profile:build ../.conan/linux_build.conf -s compiler.version=7.5
Configuration (profile_host):
[settings]
arch=x86
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=7.5
os=Linux
[options]
[build_requires]
[env]
CC=gcc -D_FILE_OFFSET_BITS=64
Configuration (profile_build):
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
[options]
[build_requires]
[env]

WARN: libmysqlclient/8.0.17: requirement openssl/1.1.1s overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libmysqlclient/8.0.17: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libcurl/7.80.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libcurl/7.80.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libssh2/1.10.0: requirement openssl/1.1.1q overridden by libcurl/7.80.0 to openssl/1.1.1m
WARN: libzip/1.8.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libzip/1.8.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: pcre2/10.39: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
conanfile.py (gsclib/1.5.0): Installing package
Requirements
CGSC/1.2.2 from 'iswenzz-conan' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
cwalk/1.2.5 from 'conancenter' - Cache
greatest/1.5.0 from 'conancenter' - Cache
libcurl/7.80.0 from 'conancenter' - Cache
libmysqlclient/8.0.17 from 'conancenter' - Cache
libssh2/1.10.0 from 'conancenter' - Cache
libuv/1.44.2 from 'conancenter' - Cache
libzip/1.8.0 from 'conancenter' - Cache
openssl/1.1.1m from 'conancenter' - Cache
pcre2/10.39 from 'conancenter' - Cache
xz_utils/5.4.2 from 'conancenter' - Cache
zlib/1.2.12 from 'conancenter' - Cache
zstd/1.5.5 from 'conancenter' - Cache
Packages
CGSC/1.2.2:375c74c85f68ddbfb6d7706000f5159330496a28 - Cache
bzip2/1.0.8:21a7c2724a0a72f2ed543491908a2685ce271d2a - Cache
cwalk/1.2.5:421442a1fe47d5fe2faf872ef4e36df34ee27fb4 - Cache
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libcurl/7.80.0:2622be99c3945410ab5d4b2474d3329d292d11b7 - Cache
libmysqlclient/8.0.17:37937d0564787d28960a9e390b720330d4569ea7 - Cache
libssh2/1.10.0:053390916a5702dfa1a11a34d2aa28c8ae06ad0b - Cache
libuv/1.44.2:421442a1fe47d5fe2faf872ef4e36df34ee27fb4 - Cache
libzip/1.8.0:cc2c66002cdc5e8fb81c2d1c1812cc14542547e0 - Cache
openssl/1.1.1m:421442a1fe47d5fe2faf872ef4e36df34ee27fb4 - Cache
pcre2/10.39:09a716f3b352d2ae84f2c00dc03a99d95ed569d4 - Cache
xz_utils/5.4.2:421442a1fe47d5fe2faf872ef4e36df34ee27fb4 - Cache
zlib/1.2.12:421442a1fe47d5fe2faf872ef4e36df34ee27fb4 - Cache
zstd/1.5.5:91dd1f1add3b0e19e38d8c6e3d74b09e209f7cfc - Cache
Build requirements
greatest/1.5.0 from 'conancenter' - Cache
Build requirements packages
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Cross-build from 'Linux:x86_64' to 'Linux:x86'
Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
cwalk/1.2.5: Already installed!
greatest/1.5.0: Already installed!
libuv/1.44.2: Already installed!
openssl/1.1.1m: Already installed!
xz_utils/5.4.2: Already installed!
zlib/1.2.12: Already installed!
zstd/1.5.5: Already installed!
CGSC/1.2.2: Already installed!
libmysqlclient/8.0.17: Already installed!
libssh2/1.10.0: Already installed!
libzip/1.8.0: Already installed!
pcre2/10.39: Already installed!
pcre2/10.39: Appending PATH environment variable: /root/.conan/data/pcre2/10.39///package/09a716f3b352d2ae84f2c00dc03a99d95ed569d4/bin
libcurl/7.80.0: Already installed!
conanfile.py (gsclib/1.5.0): Applying build-requirement: greatest/1.5.0
conanfile.py (gsclib/1.5.0): Generator txt created conanbuildinfo.txt
conanfile.py (gsclib/1.5.0): Generator cmake created conanbuildinfo.cmake
conanfile.py (gsclib/1.5.0): Aggregating env generators
conanfile.py (gsclib/1.5.0): Generated conaninfo.txt
conanfile.py (gsclib/1.5.0): Generated graphinfo
root@vmi1283936:~/gsclib/build# conan install .. --build missing --profile:host ../.conan/linux_host.conf --profile:build ../.conan/linux_build.conf
Configuration (profile_host):
[settings]
arch=x86
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
[options]
[build_requires]
[env]
CC=gcc -D_FILE_OFFSET_BITS=64
Configuration (profile_build):
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
[options]
[build_requires]
[env]

WARN: libmysqlclient/8.0.17: requirement openssl/1.1.1s overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libmysqlclient/8.0.17: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libcurl/7.80.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: libcurl/7.80.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libssh2/1.10.0: requirement openssl/1.1.1q overridden by libcurl/7.80.0 to openssl/1.1.1m
WARN: libzip/1.8.0: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
WARN: libzip/1.8.0: requirement openssl/[>=1.1 <4] overridden by gsclib/1.5.0 to openssl/1.1.1m
WARN: pcre2/10.39: requirement zlib/1.2.13 overridden by gsclib/1.5.0 to zlib/1.2.12
libmysqlclient/8.0.17: WARN: Package binary is corrupted, removing: 3a0e4423153ea4b1990929726bd6a090ddd19821
conanfile.py (gsclib/1.5.0): Installing package
Requirements
CGSC/1.2.2 from 'iswenzz-conan' - Cache
bzip2/1.0.8 from 'conancenter' - Cache
cwalk/1.2.5 from 'conancenter' - Cache
greatest/1.5.0 from 'conancenter' - Cache
libcurl/7.80.0 from 'conancenter' - Cache
libmysqlclient/8.0.17 from 'conancenter' - Cache
libssh2/1.10.0 from 'conancenter' - Cache
libuv/1.44.2 from 'conancenter' - Cache
libzip/1.8.0 from 'conancenter' - Cache
openssl/1.1.1m from 'conancenter' - Cache
pcre2/10.39 from 'conancenter' - Cache
xz_utils/5.4.2 from 'conancenter' - Cache
zlib/1.2.12 from 'conancenter' - Cache
zstd/1.5.5 from 'conancenter' - Cache
Packages
CGSC/1.2.2:0871fd480d0537819ca22650eae2dd8aa2153c2a - Cache
bzip2/1.0.8:b5e213a80b28363233747aa275eb337ab3e693f2 - Cache
cwalk/1.2.5:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libcurl/7.80.0:04e23566d152e486dc0b37a57fea7dea451c4193 - Build
libmysqlclient/8.0.17:3a0e4423153ea4b1990929726bd6a090ddd19821 - Build
libssh2/1.10.0:5da026cebb12a89dabec384fa466f1cd1e24039a - Build
libuv/1.44.2:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
libzip/1.8.0:1a704f6bb1bbd7599b64f006c86437b733757040 - Build
openssl/1.1.1m:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
pcre2/10.39:e04c0e9f31c7b020c50b322b208adfd788d4555a - Build
xz_utils/5.4.2:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
zlib/1.2.12:860d64ebdb6ea8695c2a26368abbf08ada0fc660 - Cache
zstd/1.5.5:dc598489a244e0c53da1bd9a4537659f2552e7c0 - Cache
Build requirements
autoconf/2.71 from 'conancenter' - Cache
automake/1.16.5 from 'conancenter' - Cache
greatest/1.5.0 from 'conancenter' - Cache
libtool/2.4.7 from 'conancenter' - Cache
m4/1.4.19 from 'conancenter' - Cache
pkgconf/1.9.3 from 'conancenter' - Cache
Build requirements packages
autoconf/2.71:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
automake/1.16.5:258f6f05ca54813b3d7180161753df7f9ccf7e1d - Cache
greatest/1.5.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
libtool/2.4.7:445047bf696d55be0de53e5d97c24a63a4218039 - Cache
m4/1.4.19:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache
pkgconf/1.9.3:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

Cross-build from 'Linux:x86_64' to 'Linux:x86'
Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
cwalk/1.2.5: Already installed!
greatest/1.5.0: Already installed!
libuv/1.44.2: Already installed!
m4/1.4.19: Already installed!
m4/1.4.19: Appending PATH environment variable: /root/.conan/data/m4/1.4.19///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin
openssl/1.1.1m: Already installed!
pkgconf/1.9.3: Already installed!
pkgconf/1.9.3: Appending PATH env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin
pkgconf/1.9.3: Setting PKG_CONFIG env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/pkgconf
pkgconf/1.9.3: Appending AUTOMAKE_CONAN_INCLUDES env var: /root/.conan/data/pkgconf/1.9.3///package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/aclocal
xz_utils/5.4.2: Already installed!
zlib/1.2.12: Already installed!
zstd/1.5.5: Already installed!
CGSC/1.2.2: Already installed!
autoconf/2.71: Already installed!
autoconf/2.71: Defining AC_MACRODIR environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
autoconf/2.71: Defining autom4te_perllibdir environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
autoconf/2.71: Defining AUTOCONF environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoconf
autoconf/2.71: Defining AUTORECONF environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoreconf
autoconf/2.71: Defining AUTOHEADER environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoheader
autoconf/2.71: Defining AUTOM4TE environment variable: /root/.conan/data/autoconf/2.71///package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autom4te
libmysqlclient/8.0.17: WARN: Build folder is dirty, removing it: /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
libmysqlclient/8.0.17: Copying sources to build folder
libmysqlclient/8.0.17: Building your package in /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
libmysqlclient/8.0.17: Generator cmake created conanbuildinfo.cmake
libmysqlclient/8.0.17: Generator pkg_config created libcrypto.pc
libmysqlclient/8.0.17: Generator pkg_config created libssl.pc
libmysqlclient/8.0.17: Generator pkg_config created openssl.pc
libmysqlclient/8.0.17: Generator pkg_config created zlib.pc
libmysqlclient/8.0.17: Aggregating env generators
libmysqlclient/8.0.17: Calling build()
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_ICU(ICU_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(ICU_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LIBEVENT(LIBEVENT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LIBEVENT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_RE2(RE2_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(RE2_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_RAPIDJSON(RAPIDJSON_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(RAPIDJSON_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_PROTOBUF(PROTOBUF_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(PROTOBUF_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'MYSQL_CHECK_LIBEDIT()
' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'INCLUDE(libedit)
' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LIBEDIT(LIBEDIT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LIBEDIT_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'WARN_MISSING_SYSTEM_LZ4(LZ4_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'SET(LZ4_WARN_GIVEN)' in 'source_subfolder/CMakeLists.txt' file.
libmysqlclient/8.0.17: WARN: replace_in_file didn't find pattern 'IF(NOT OPENSSL_APPLINK_C)
' in 'source_subfolder/cmake/ssl.cmake' file.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821/CMakeFiles/CMakeOutput.log".
See also "/root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821/CMakeFiles/CMakeError.log".
libmysqlclient/8.0.17:
libmysqlclient/8.0.17: ERROR: Package '3a0e4423153ea4b1990929726bd6a090ddd19821' build failed
libmysqlclient/8.0.17: WARN: Build folder /root/.conan/data/libmysqlclient/8.0.17///build/3a0e4423153ea4b1990929726bd6a090ddd19821
ERROR: libmysqlclient/8.0.17: Error in build() method, line 240
cmake = self.configure_cmake()
while calling 'configure_cmake', line 235
cmake.configure(source_dir=self.source_subfolder)
ConanException: Error 1 while executing cd '/root/.conan/data/libmysqlclient/8.0.17/
/
/build/3a0e4423153ea4b1990929726bd6a090ddd19821' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9" -DCONAN_CXX_FLAGS="-m32" -DCONAN_SHARED_LINKER_FLAGS="-m32" -DCONAN_C_FLAGS="-m32" -DCONAN_LIBCXX="libstdc++" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="/root/.conan/data/libmysqlclient/8.0.17/
//package/3a0e4423153ea4b1990929726bd6a090ddd19821" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCONAN_CMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -DDISABLE_SHARED="True" -DSTACK_DIRECTION="-1" -DWITHOUT_SERVER="True" -DWITH_UNIT_TESTS="False" -DENABLED_PROFILING="False" -DMYSQL_MAINTAINER_MODE="False" -DWIX_DIR="False" -DWITH_SSL="/root/.conan/data/openssl/1.1.1m//_/package/860d64ebdb6ea8695c2a26368abbf08ada0fc660" -DWITH_ZLIB="system" -Wno-dev 'source_subfolder

Issues with dependencies on ubuntu 16.04

Hi, not sure if this is the correct place to post this, but I'm having a really difficult time with installing the dependencies on ubuntu 16.04
image
I have spent like 6hours already looking for anything that remotely solves the problem, but sure didn't find anything,
https://askubuntu.com/a/1111146
Let me know if I'm doing anything wrong

SQL dropping connection

Hello please i have problem about droping connection of sql connection
first i had error on query SQL_Query(): Query failed
so i edited plugin to add info what query is problematic and i checking mysql_error so after that i had
error Lost connection to server during query
so my query is ok but its dropping connection

Error

CMake Error: Could not read presets from /root/CoD4x_Server/plugins/gsclib: Unrecognized "version" field

getType() crashing server

calling getType(var) in anyway is crashing server, in developer 0 too

test = 1; getType(test);

zz = getType(test);

comPrintF( getType( test ) );

Error msg:
]./cod4x18_dedrun: symbol lookup error: /root/.callofduty4/plugin.gsclib.tmp: undefined symbol: Plugin_Scr_SelectParam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.