Компиляция под linux
Для тех, кто хочет сделать мир лучше.
Сообщение
Автор
#1 Сообщение 03.02.2010, 17:33
пробовал скомпилить свой серверный плагин под линукс. все без успешно.
может кто то сможет собрать виртуальную машину (VMware) чтобы все было просто.
Source SDK
Wiki
скомпилить нужно hl2sdk-ob-valve\utils\serverplugin_sample
может кто то сможет собрать виртуальную машину (VMware) чтобы все было просто.
Source SDK
Wiki
скомпилить нужно hl2sdk-ob-valve\utils\serverplugin_sample

kadet89 писал(а):Не врубился в этот алгоритм...но думаю моно попробовать через бинарник изменить саму команду...только вот в каком файле она?
- pinkpiton2
- Майор
- Сообщения: 724
- Зарегистрирован: 06.08.2008
- Откуда: Одесса
- Благодарил (а): 1 раз
- Поблагодарили: 1 раз
#2 Сообщение 03.02.2010, 21:14
ближе к ночи попробую
Добавлено спустя 2 часа 47 минут 10 секунд:
балалайка
deb lenny gcc-4.3
opensuse 11.2 gcc-4.4
Добавлено спустя 2 часа 47 минут 10 секунд:
балалайка
deb:/home/pinkpiton/456/hl2sdk-ob/linux_sdk# make plugin
if [ -z "/usr/bin/gcc-4.3" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.3 AR="ar rvs" CPLUS=/usr/bin/g++-4.3 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.3 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/games/TeamFortress2/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.3 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
cc1plus: warnings being treated as errors
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h: In function ‘void SetupFPUControlWord()’:
../public/tier0/platform.h:532: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/tier0/platform.h:976,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘short unsigned int dface_t::GetNumPrims() const’:
../public/bspfile.h:756: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1036: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1100: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:310: error: conversion to ‘float’ from ‘int’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Ошибка 1
make[1]: Leaving directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
make: *** [plugin] Ошибка 2
deb:/home/pinkpiton/456/hl2sdk-ob/linux_sdk#
if [ -z "/usr/bin/gcc-4.3" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/games/TeamFortress2/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.3 AR="ar rvs" CPLUS=/usr/bin/g++-4.3 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.3 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/games/TeamFortress2/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.3 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
cc1plus: warnings being treated as errors
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h: In function ‘void SetupFPUControlWord()’:
../public/tier0/platform.h:532: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/tier0/platform.h:976,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘short unsigned int dface_t::GetNumPrims() const’:
../public/bspfile.h:756: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1036: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1100: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:310: error: conversion to ‘float’ from ‘int’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Ошибка 1
make[1]: Leaving directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
make: *** [plugin] Ошибка 2
deb:/home/pinkpiton/456/hl2sdk-ob/linux_sdk#
suse:/home/pinkpiton/456/hl2sdk-ob/linux_sdk # make plugin
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/usr/games/TeamFortress2.idle/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:287:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:976,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
make: *** [plugin] Error 2
suse:/home/pinkpiton/456/hl2sdk-ob/linux_sdk #
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /usr/games/TeamFortress2.idle/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/usr/games/TeamFortress2.idle/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:287:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:976,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/pinkpiton/456/hl2sdk-ob/linux_sdk'
make: *** [plugin] Error 2
suse:/home/pinkpiton/456/hl2sdk-ob/linux_sdk #
#3 Сообщение 03.02.2010, 21:45
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
я на этом тоже застрял :)
я на этом тоже застрял :)

kadet89 писал(а):Не врубился в этот алгоритм...но думаю моно попробовать через бинарник изменить саму команду...только вот в каком файле она?
#4 Сообщение 03.02.2010, 22:42
http://rghost.ru/931669 ну если это оно тогда я правильно собрал :) собран на gcc-4.2 ...жду ответа работает или нет и вываливаю с убунты :)
кстати а что это за плагин?

кстати а что это за плагин?
valera@valera-pk:~/hl2sdk-ob-valve-321078110c97/linux_sdk$ make plugin
if [ -z "/usr/bin/gcc-4.2" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.2 AR="ar rvs" CPLUS=/usr/bin/g++-4.2 CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.2 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/valera/srcds_/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include/xersesc XERCES_LIB_DIR=/usr/lib
make[1]: Вход в каталог `/home/valera/hl2sdk-ob-valve-321078110c97/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_empty.o -c ../utils/serverplugin_sample/serverplugin_empty.cpp
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/tier0/memoverride.o -c ../public/tier0/memoverride.cpp
/usr/bin/gcc-4.2 -o ./serverplugin_empty_i486.so -m32 -shared ./obj/serverplugin_empty_i486/serverplugin_bot.o ./obj/serverplugin_empty_i486/serverplugin_empty.o ./obj/serverplugin_empty_i486/tier0/memoverride.o /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a -lm -ldl tier0_i486.so vstdlib_i486.so ../lib/linux/mathlib_i486.a ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a
make[1]: Выход из каталога `/home/valera/hl2sdk-ob-valve-321078110c97/linux_sdk'
if [ -z "/usr/bin/gcc-4.2" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/valera/srcds_/orangebox/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.2 AR="ar rvs" CPLUS=/usr/bin/g++-4.2 CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.2 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/valera/srcds_/orangebox MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include/xersesc XERCES_LIB_DIR=/usr/lib
make[1]: Вход в каталог `/home/valera/hl2sdk-ob-valve-321078110c97/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_empty.o -c ../utils/serverplugin_sample/serverplugin_empty.cpp
/usr/bin/g++-4.2 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/tier0/memoverride.o -c ../public/tier0/memoverride.cpp
/usr/bin/gcc-4.2 -o ./serverplugin_empty_i486.so -m32 -shared ./obj/serverplugin_empty_i486/serverplugin_bot.o ./obj/serverplugin_empty_i486/serverplugin_empty.o ./obj/serverplugin_empty_i486/tier0/memoverride.o /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a -lm -ldl tier0_i486.so vstdlib_i486.so ../lib/linux/mathlib_i486.a ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a
make[1]: Выход из каталога `/home/valera/hl2sdk-ob-valve-321078110c97/linux_sdk'
#5 Сообщение 04.02.2010, 13:53
для начала портирую простой SourceMod скрипт. (чтобы он работал без Metamod,Sourcemod) а потом написать что то свое
в никсах я почти нуб.
лучше скиньте мне VMware образ или cygwin уже настроенный.
в никсах я почти нуб.
лучше скиньте мне VMware образ или cygwin уже настроенный.

kadet89 писал(а):Не врубился в этот алгоритм...но думаю моно попробовать через бинарник изменить саму команду...только вот в каком файле она?
- pinkpiton2
- Майор
- Сообщения: 724
- Зарегистрирован: 06.08.2008
- Откуда: Одесса
- Благодарил (а): 1 раз
- Поблагодарили: 1 раз
#6 Сообщение 04.02.2010, 14:08
да там ничего сложногоkoshmel писал(а):для начала портирую простой SourceMod скрипт. (чтобы он работал без Metamod,Sourcemod) а потом написать что то свое
в никсах я почти нуб.
лучше скиньте мне VMware образ или cygwin уже настроенный.
если ляпом ставить систему, то телодвижений столько же как и в виндах
с образом сложнее...
у меня чаще винда эмулируется...
#7 Сообщение 04.02.2010, 14:46
хм..у меня убунта поднята на отдельном винте...так что сам понимаешь образа не получишь :)
при компиляции чуток подправил make файл под свое расположение библиотек и расположение вальвовских сошек, и все откомпилилось с первого раза.
вечером могу выложить правленый макефайл, если это критично ;) парсер XERCES установил надеюсь? посмотри в тех ли папках он находиться что прописаны в makefile.
при компиляции чуток подправил make файл под свое расположение библиотек и расположение вальвовских сошек, и все откомпилилось с первого раза.
вечером могу выложить правленый макефайл, если это критично ;) парсер XERCES установил надеюсь? посмотри в тех ли папках он находиться что прописаны в makefile.
#11 Сообщение 04.02.2010, 18:17
ne pashet
output
Добавлено спустя 1 минуту 43 секунды:
sudo apt-get install libxerces-c3.0
tak 9 stavil
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ make plugin
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s ~/srcds/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s ~/srcds/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s ~/srcds/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=~/srcds MOD_CONFIG=Server(SDK)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:291:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:980,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
make: *** [plugin] Error 2
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ clear
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ ^C
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis libstdc++.a
libstdc++:
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis libst
libst:
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis lib
lib: /usr/src/linux-headers-2.6.31-14/lib /usr/src/linux-headers-2.6.31-14-generic/lib /usr/local/lib
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s ~/srcds/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s ~/srcds/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s ~/srcds/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="libstdc++.a libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=~/srcds MOD_CONFIG=Server(SDK)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:291:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:980,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
make: *** [plugin] Error 2
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ clear
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ ^C
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis libstdc++.a
libstdc++:
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis libst
libst:
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ whereis lib
lib: /usr/src/linux-headers-2.6.31-14/lib /usr/src/linux-headers-2.6.31-14-generic/lib /usr/local/lib
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$
sudo apt-get install libxerces-c3.0
tak 9 stavil

kadet89 писал(а):Не врубился в этот алгоритм...но думаю моно попробовать через бинарник изменить саму команду...только вот в каком файле она?
- pinkpiton2
- Майор
- Сообщения: 724
- Зарегистрирован: 06.08.2008
- Откуда: Одесса
- Благодарил (а): 1 раз
- Поблагодарили: 1 раз
#13 Сообщение 04.02.2010, 18:59
pinkpiton2
собрал на дебиане?
Добавлено спустя 21 минуту 12 секунд:
makefile
output2
собрал на дебиане?
Добавлено спустя 21 минуту 12 секунд:
#
# SDK Makefile for x86 Linux
#
#
#############################################################################
# Developer configurable items
#############################################################################
# the name of the mod binary (_i486.so is appended to the end)
NAME = server
# the location of the vcproj that builds the mod
MOD_PROJ = ../game/server/server_scratch-2005.vcproj
# the name of the mod configuration (typically <proj name>_<build type><build target>)
MOD_CONFIG = Server\(SDK\)_ReleaseWin32
# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
SRCDS_DIR = /home/orange/srcds
# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
GAME_DIR = $(SRCDS_DIR)/scratchmod
# compiler options (gcc 3.4.1 or above is required - 4.1.2+ recommended)
CC = /usr/bin/gcc-4.4
CPLUS = /usr/bin/g++-4.4
CLINK = /usr/bin/gcc-4.4
CPP_LIB = "/usr/lib/gcc/i486-linux-gnu/4.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.4/libgcc_eh.a"
# put any compiler flags you want passed here
USER_CFLAGS =
# link flags for your mod, make sure to include any special libraries here
LDFLAGS = "-lm -ldl $(LIB_DIR)/particles_i486.a $(LIB_DIR)/dmxloader_i486.a $(LIB_DIR)/mathlib_i486.a tier0_i486.so vstdlib_i486.so $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a $(LIB_DIR)/choreoobjects_i486.a steam_api_i486.so"
# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
XERCES_INC_DIR = /usr/include/xercesc
XERCES_LIB_DIR = /usr/lib
# Change this to true if you want to build debug binaries for everything
# The only exception is the mod/game as MOD_CONFIG determines if it's a debug build or not
DEBUG = false
#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE = make
AR = "ar rvs"
# the dir we want to put binaries we build into
BUILD_DIR = .
# the place to put object files
BUILD_OBJ_DIR = $(BUILD_DIR)/obj
# the location of the source code
SRC_DIR = ..
# the location of the Linux static libraries
LIB_DIR = $(SRC_DIR)/lib/linux
# the CPU target for the build, must be i486 for now
ARCH = i486
ARCH_CFLAGS = -mtune=i686 -march=pentium3 -mmmx -m32
DEFINES = -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp \
-D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof
SHLIBEXT = so
SHLIBCFLAGS = -fPIC
SHLIBLDFLAGS = -shared -Wl,-Map,$@_map.txt -Wl
# Flags passed to the c compiler
CFLAGS = $(DEFINES) $(ARCH_CFLAGS) -O3 $(BASE_CFLAGS)
ifdef USER_CFLAGS
CFLAGS += $(USER_CFLAGS)
endif
CFLAGS += $(UNDEF)
# Debug flags
DBG_DEFINES = "-D_DEBUG -DDEBUG"
DBG_CFLAGS = "$(DEFINES) $(ARCH_CFLAGS) -g -ggdb $(BASE_CFLAGS) $(UNDEF)"
# define list passed to make for the sub makefile
BASE_DEFINES = CC=$(CC) AR=$(AR) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) DEBUG=$(DEBUG) \
BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) SRC_DIR=$(SRC_DIR) \
LIB_DIR=$(LIB_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
CLINK=$(CLINK) CFLAGS="$(CFLAGS)" DBG_CFLAGS=$(DBG_CFLAGS) LDFLAGS=$(LDFLAGS) \
DEFINES="$(DEFINES)" DBG_DEFINES=$(DBG_DEFINES) \
ARCH=$(ARCH) SRCDS_DIR=$(SRCDS_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)
# Project Makefile
MAKE_SERVER = Makefile.server
MAKE_VCPM = Makefile.vcpm
MAKE_PLUGIN = Makefile.plugin
MAKE_TIER1 = Makefile.tier1
MAKE_MATH = Makefile.mathlib
MAKE_CHOREO = Makefile.choreo
all: check vcpm mod
check:
if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d $(BUILD_DIR) ];then mkdir -p $(BUILD_DIR);fi
cd $(BUILD_DIR)
if [ ! -e "$(LIB_DIR)/tier1_i486.a" ]; then $(MAKE) tier1;fi
if [ ! -e "$(LIB_DIR)/mathlib_i486.a" ]; then $(MAKE) mathlib;fi
if [ ! -e "$(LIB_DIR)/choreoobjects_i486.a" ]; then $(MAKE) choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/steam_api_i486.so .; fi
vcpm: check
if [ ! -e "vcpm" ]; then $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES);fi
mod: check vcpm
./vcpm $(MOD_PROJ)
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES)
plugin: check
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)
tier1:
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES)
mathlib:
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES)
choreo:
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES)
install:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
installrelease:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
strip $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
clean:
$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES) clean
# SDK Makefile for x86 Linux
#
#
#############################################################################
# Developer configurable items
#############################################################################
# the name of the mod binary (_i486.so is appended to the end)
NAME = server
# the location of the vcproj that builds the mod
MOD_PROJ = ../game/server/server_scratch-2005.vcproj
# the name of the mod configuration (typically <proj name>_<build type><build target>)
MOD_CONFIG = Server\(SDK\)_ReleaseWin32
# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
SRCDS_DIR = /home/orange/srcds
# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
GAME_DIR = $(SRCDS_DIR)/scratchmod
# compiler options (gcc 3.4.1 or above is required - 4.1.2+ recommended)
CC = /usr/bin/gcc-4.4
CPLUS = /usr/bin/g++-4.4
CLINK = /usr/bin/gcc-4.4
CPP_LIB = "/usr/lib/gcc/i486-linux-gnu/4.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.4/libgcc_eh.a"
# put any compiler flags you want passed here
USER_CFLAGS =
# link flags for your mod, make sure to include any special libraries here
LDFLAGS = "-lm -ldl $(LIB_DIR)/particles_i486.a $(LIB_DIR)/dmxloader_i486.a $(LIB_DIR)/mathlib_i486.a tier0_i486.so vstdlib_i486.so $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a $(LIB_DIR)/choreoobjects_i486.a steam_api_i486.so"
# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
XERCES_INC_DIR = /usr/include/xercesc
XERCES_LIB_DIR = /usr/lib
# Change this to true if you want to build debug binaries for everything
# The only exception is the mod/game as MOD_CONFIG determines if it's a debug build or not
DEBUG = false
#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE = make
AR = "ar rvs"
# the dir we want to put binaries we build into
BUILD_DIR = .
# the place to put object files
BUILD_OBJ_DIR = $(BUILD_DIR)/obj
# the location of the source code
SRC_DIR = ..
# the location of the Linux static libraries
LIB_DIR = $(SRC_DIR)/lib/linux
# the CPU target for the build, must be i486 for now
ARCH = i486
ARCH_CFLAGS = -mtune=i686 -march=pentium3 -mmmx -m32
DEFINES = -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp \
-D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof
SHLIBEXT = so
SHLIBCFLAGS = -fPIC
SHLIBLDFLAGS = -shared -Wl,-Map,$@_map.txt -Wl
# Flags passed to the c compiler
CFLAGS = $(DEFINES) $(ARCH_CFLAGS) -O3 $(BASE_CFLAGS)
ifdef USER_CFLAGS
CFLAGS += $(USER_CFLAGS)
endif
CFLAGS += $(UNDEF)
# Debug flags
DBG_DEFINES = "-D_DEBUG -DDEBUG"
DBG_CFLAGS = "$(DEFINES) $(ARCH_CFLAGS) -g -ggdb $(BASE_CFLAGS) $(UNDEF)"
# define list passed to make for the sub makefile
BASE_DEFINES = CC=$(CC) AR=$(AR) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) DEBUG=$(DEBUG) \
BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) SRC_DIR=$(SRC_DIR) \
LIB_DIR=$(LIB_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
CLINK=$(CLINK) CFLAGS="$(CFLAGS)" DBG_CFLAGS=$(DBG_CFLAGS) LDFLAGS=$(LDFLAGS) \
DEFINES="$(DEFINES)" DBG_DEFINES=$(DBG_DEFINES) \
ARCH=$(ARCH) SRCDS_DIR=$(SRCDS_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)
# Project Makefile
MAKE_SERVER = Makefile.server
MAKE_VCPM = Makefile.vcpm
MAKE_PLUGIN = Makefile.plugin
MAKE_TIER1 = Makefile.tier1
MAKE_MATH = Makefile.mathlib
MAKE_CHOREO = Makefile.choreo
all: check vcpm mod
check:
if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d $(BUILD_DIR) ];then mkdir -p $(BUILD_DIR);fi
cd $(BUILD_DIR)
if [ ! -e "$(LIB_DIR)/tier1_i486.a" ]; then $(MAKE) tier1;fi
if [ ! -e "$(LIB_DIR)/mathlib_i486.a" ]; then $(MAKE) mathlib;fi
if [ ! -e "$(LIB_DIR)/choreoobjects_i486.a" ]; then $(MAKE) choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/steam_api_i486.so .; fi
vcpm: check
if [ ! -e "vcpm" ]; then $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES);fi
mod: check vcpm
./vcpm $(MOD_PROJ)
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES)
plugin: check
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)
tier1:
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES)
mathlib:
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES)
choreo:
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES)
install:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
installrelease:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
strip $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
clean:
$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES) clean
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$ make plugin
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/orange/srcds/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/orange/srcds/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/orange/srcds/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="/usr/lib/gcc/i486-linux-gnu/4.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.4/libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/orange/srcds MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include/xercesc XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:291:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:980,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
make: *** [plugin] Error 2
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$
if [ -z "/usr/bin/gcc-4.4" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir -p .;fi
cd .
if [ ! -e "../lib/linux/tier1_i486.a" ]; then make tier1;fi
if [ ! -e "../lib/linux/mathlib_i486.a" ]; then make mathlib;fi
if [ ! -e "../lib/linux/choreoobjects_i486.a" ]; then make choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s /home/orange/srcds/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s /home/orange/srcds/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s /home/orange/srcds/bin/steam_api_i486.so .; fi
make -f Makefile.plugin CC=/usr/bin/gcc-4.4 AR="ar rvs" CPLUS=/usr/bin/g++-4.4 CPP_LIB="/usr/lib/gcc/i486-linux-gnu/4.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.4/libgcc_eh.a" DEBUG=false BUILD_DIR=. BUILD_OBJ_DIR=./obj SRC_DIR=.. LIB_DIR=../lib/linux SHLIBLDFLAGS=-shared -Wl,-Map,plugin_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc-4.4 CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" DBG_CFLAGS="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -g -ggdb -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE" LDFLAGS="-lm -ldl ../lib/linux/particles_i486.a ../lib/linux/dmxloader_i486.a ../lib/linux/mathlib_i486.a tier0_i486.so vstdlib_i486.so ../lib/linux/tier1_i486.a ../lib/linux/tier2_i486.a ../lib/linux/tier3_i486.a ../lib/linux/choreoobjects_i486.a steam_api_i486.so" DEFINES="-D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp" DBG_DEFINES="-D_DEBUG -DDEBUG" ARCH=i486 SRCDS_DIR=/home/orange/srcds MOD_CONFIG=Server\(SDK\)_ReleaseWin32 NAME=server XERCES_INC_DIR=/usr/include/xercesc XERCES_LIB_DIR=/usr/lib
make[1]: Entering directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
mkdir -p ./obj
mkdir -p ./obj/serverplugin_empty_i486
mkdir -p ./obj/serverplugin_empty_i486/tier0
/usr/bin/g++-4.4 -I../public -I../public/tier0 -I../public/tier1 -DARCH=i486 -DNDEBUG -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -mtune=i686 -march=pentium3 -mmmx -m32 -O3 -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE -o obj/serverplugin_empty_i486/serverplugin_bot.o -c ../utils/serverplugin_sample/serverplugin_bot.cpp
In file included from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/platform.h:291:6: error: #elif with no expression
cc1plus: warnings being treated as errors
In file included from ../public/tier0/platform.h:980,
from ../public/tier1/interface.h:57,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:14:
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMicrosecondsF() const’:
../public/tier0/fasttimer.h:394: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetMillisecondsF() const’:
../public/tier0/fasttimer.h:412: error: conversion to ‘double’ from ‘long long int’ may alter its value
../public/tier0/fasttimer.h: In member function ‘double CCycleCount::GetSeconds() const’:
../public/tier0/fasttimer.h:418: error: conversion to ‘double’ from ‘long long int’ may alter its value
In file included from ../public/mathlib/vector.h:32,
from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector2d.h: In member function ‘void Vector2D::Random(float, float)’:
../public/mathlib/vector2d.h:242: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector2d.h:243: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/mathlib/mathlib.h:12,
from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/vector.h: In member function ‘void Vector::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:520: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:521: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:522: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator+=(const ShortVector&)’:
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:823: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator-=(const ShortVector&)’:
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:829: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(float)’:
../public/mathlib/vector.h:835: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:836: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:837: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:838: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator*=(const ShortVector&)’:
../public/mathlib/vector.h:844: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:845: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:846: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:847: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(float)’:
../public/mathlib/vector.h:855: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:856: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:857: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:858: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘ShortVector& ShortVector::operator/=(const ShortVector&)’:
../public/mathlib/vector.h:865: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:866: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:867: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h:868: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void ShortVectorMultiply(const ShortVector&, float, ShortVector&)’:
../public/mathlib/vector.h:875: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:876: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:877: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:878: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator*=(float)’:
../public/mathlib/vector.h:985: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:986: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:987: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:988: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘IntVector4D& IntVector4D::operator/=(float)’:
../public/mathlib/vector.h:1005: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1006: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1007: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1008: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In function ‘void IntVector4DMultiply(const IntVector4D&, float, IntVector4D&)’:
../public/mathlib/vector.h:1025: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1026: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1027: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h:1028: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/vector.h: In member function ‘void QAngle::Random(vec_t, vec_t)’:
../public/mathlib/vector.h:1856: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1857: error: conversion to ‘float’ alters ‘int’ constant value
../public/mathlib/vector.h:1858: error: conversion to ‘float’ alters ‘int’ constant value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In member function ‘void Frustum_t::SetPlane(int, int, const Vector&, float)’:
../public/mathlib/mathlib.h:85: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:86: error: conversion to ‘byte’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:87: error: conversion to ‘vec_t’ from ‘double’ may alter its value
In file included from ../public/tier1/utlblockmemory.h:19,
from ../public/tier1/utlrbtree.h:14,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/mathlib/mathlib.h: In function ‘vec_t RoundInt(vec_t)’:
../public/mathlib/mathlib.h:308: error: conversion to ‘vec_t’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘void SinCos(float, float*, float*)’:
../public/mathlib/mathlib.h:336: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h:337: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float anglemod(float)’:
../public/mathlib/mathlib.h:501: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘unsigned char RoundFloatToByte(float)’:
../public/mathlib/mathlib.h:1140: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘bool IsIntegralValue(float, float)’:
../public/mathlib/mathlib.h:1182: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float ClampToMsec(float)’:
../public/mathlib/mathlib.h:1278: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float QuinticInterpolatingPolynomial(float)’:
../public/mathlib/mathlib.h:1652: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float CalcDistanceToAABB(const Vector&, const Vector&, const Vector&)’:
../public/mathlib/mathlib.h:1680: error: conversion to ‘float’ from ‘double’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_SHORT2(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1876: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1877: error: conversion to ‘short int’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1883: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1889: error: conversion to ‘short int’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1892: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1893: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h: In function ‘float* UnpackNormal_UBYTE4(const unsigned int*, float*, bool)’:
../public/mathlib/mathlib.h:1948: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1949: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1953: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1954: error: conversion to ‘unsigned char’ from ‘unsigned int’ may alter its value
../public/mathlib/mathlib.h:1957: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1958: error: conversion to ‘float’ from ‘int’ may alter its value
../public/mathlib/mathlib.h:1980: error: conversion to ‘float’ from ‘double’ may alter its value
In file included from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlrbtree.h: In function ‘bool CaselessStringLessThanIgnoreSlashes(const char* const&, const char* const&)’:
../public/tier1/utlrbtree.h:54: error: conversion to ‘char’ from ‘int’ may alter its value
../public/tier1/utlrbtree.h:57: error: conversion to ‘char’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In constructor ‘CVarBitVecBase::CVarBitVecBase(int)’:
../public/bitvec.h:445: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:448: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h: In member function ‘void CVarBitVecBase::Attach(uint32*, int)’:
../public/bitvec.h:495: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:496: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:17,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bitvec.h: In member function ‘void CVarBitVecBase::Resize(int, bool)’:
../public/bitvec.h:1303: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bitvec.h:1316: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void dface_t::SetNumPrims(short unsigned int)’:
../public/bspfile.h:762: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:763: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dface_t::SetDynamicShadowsEnabled(bool)’:
../public/bspfile.h:774: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/iservernetworkable.h:19,
from ../public/edict.h:20,
from ../public/eiface.h:18,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/bspfile.h: In member function ‘void doverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1037: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetFaceCount() const’:
../public/bspfile.h:1042: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void doverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1048: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1049: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int doverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1054: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetFaceCount(short unsigned int)’:
../public/bspfile.h:1101: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetFaceCount() const’:
../public/bspfile.h:1106: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘void dwateroverlay_t::SetRenderOrder(short unsigned int)’:
../public/bspfile.h:1112: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h:1113: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/bspfile.h: In member function ‘short unsigned int dwateroverlay_t::GetRenderOrder() const’:
../public/bspfile.h:1118: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
In file included from ../public/eiface.h:25,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:19:
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitNoCheck(int)’:
../public/tier1/bitbuf.h:264: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:266: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h: In member function ‘void old_bf_write::WriteOneBitAt(int, int)’:
../public/tier1/bitbuf.h:288: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
../public/tier1/bitbuf.h:290: error: conversion to ‘unsigned char’ from ‘int’ may alter its value
In file included from ../public/engine/IEngineTrace.h:17,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:28:
../public/mathlib/vector4d.h: In member function ‘void Vector4D::Random(vec_t, vec_t)’:
../public/mathlib/vector4d.h:252: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:253: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:254: error: conversion to ‘vec_t’ alters ‘int’ constant value
../public/mathlib/vector4d.h:255: error: conversion to ‘vec_t’ alters ‘int’ constant value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_UpdateDirection(CPluginBot*)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:226: error: conversion to ‘float’ from ‘double’ may alter its value
../utils/serverplugin_sample/serverplugin_bot.cpp: In function ‘void Bot_SetForwardMovement(CPluginBot*, CBotCmd&)’:
../utils/serverplugin_sample/serverplugin_bot.cpp:313: error: conversion to ‘float’ alters ‘double’ constant value
In file included from ../public/tier1/utlrbtree.h:12,
from ../public/tier1/utlsymbol.h:17,
from ../public/filesystem.h:13,
from ../utils/serverplugin_sample/serverplugin_bot.cpp:15:
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::First() const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:67: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h: In member function ‘CUtlMemory<T, I>::Iterator_t CUtlMemory<T, I>::Next(const CUtlMemory<T, I>::Iterator_t&) const [with T = UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, I = short unsigned int]’:
../public/tier1/utlrbtree.h:1113: instantiated from ‘void CUtlRBTree<T, I, L, M>::RemoveAll() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:1142: instantiated from ‘void CUtlRBTree<T, I, L, M>::Purge() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlrbtree.h:377: instantiated from ‘CUtlRBTree<T, I, L, M>::~CUtlRBTree() [with T = CUtlSymbolTable::CStringPoolIndex, I = short unsigned int, L = CUtlSymbolTable::CLess, M = CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, short unsigned int>, short unsigned int>]’
../public/tier1/utlsymbol.h:150: instantiated from here
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
../public/tier1/utlmemory.h:68: error: conversion to ‘short unsigned int’ from ‘int’ may alter its value
make[1]: *** [obj/serverplugin_empty_i486/serverplugin_bot.o] Error 1
make[1]: Leaving directory `/home/orange/hl2sdk-ob-valve/linux_sdk'
make: *** [plugin] Error 2
orange@ubuntu:~/hl2sdk-ob-valve/linux_sdk$

kadet89 писал(а):Не врубился в этот алгоритм...но думаю моно попробовать через бинарник изменить саму команду...только вот в каком файле она?
#14 Сообщение 04.02.2010, 19:19
xerces у меня 2.6 вроде

#
# SDK Makefile for x86 Linux
#
#
#############################################################################
# Developer configurable items
#############################################################################
# the name of the mod binary (_i486.so is appended to the end)
NAME = server
# the location of the vcproj that builds the mod
MOD_PROJ = ../game/server/server_scratch-2005.vcproj
# the name of the mod configuration (typically <proj name>_<build type><build target>)
MOD_CONFIG = Server\(SDK\)_ReleaseWin32
# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
SRCDS_DIR = /home/valera/srcds_/orangebox
# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
#GAME_DIR = $(SRCDS_DIR)/scratchmod
GAME_DIR = $(SRCDS_DIR)
# compiler options (gcc 3.4.1 or above is required - 4.1.2+ recommended)
CC = /usr/bin/gcc-4.2
CPLUS = /usr/bin/g++-4.2
CLINK = /usr/bin/gcc-4.2
#CPP_LIB = "libstdc++.a libgcc_eh.a"
CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a"
# put any compiler flags you want passed here
USER_CFLAGS =
# link flags for your mod, make sure to include any special libraries here
LDFLAGS = "-lm -ldl $(LIB_DIR)/particles_i486.a $(LIB_DIR)/dmxloader_i486.a $(LIB_DIR)/mathlib_i486.a tier0_i486.so vstdlib_i486.so $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a $(LIB_DIR)/choreoobjects_i486.a steam_api_i486.so"
# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
#XERCES_INC_DIR = /usr/include
#XERCES_LIB_DIR = /usr/lib
XERCES_INC_DIR=/usr/include/xersesc
XERCES_LIB_DIR=/usr/lib
# Change this to true if you want to build debug binaries for everything
# The only exception is the mod/game as MOD_CONFIG determines if it's a debug build or not
DEBUG = false
#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE = make
AR = "ar rvs"
# the dir we want to put binaries we build into
BUILD_DIR = .
# the place to put object files
BUILD_OBJ_DIR = $(BUILD_DIR)/obj
# the location of the source code
SRC_DIR = ..
# the location of the Linux static libraries
LIB_DIR = $(SRC_DIR)/lib/linux
# the CPU target for the build, must be i486 for now
ARCH = i486
ARCH_CFLAGS = -mtune=i686 -march=pentium3 -mmmx -m32
DEFINES = -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp \
-D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof
SHLIBEXT = so
SHLIBCFLAGS = -fPIC
SHLIBLDFLAGS = -shared -Wl,-Map,$@_map.txt -Wl
# Flags passed to the c compiler
CFLAGS = $(DEFINES) $(ARCH_CFLAGS) -O3 $(BASE_CFLAGS)
ifdef USER_CFLAGS
CFLAGS += $(USER_CFLAGS)
endif
CFLAGS += $(UNDEF)
# Debug flags
DBG_DEFINES = "-D_DEBUG -DDEBUG"
DBG_CFLAGS = "$(DEFINES) $(ARCH_CFLAGS) -g -ggdb $(BASE_CFLAGS) $(UNDEF)"
# define list passed to make for the sub makefile
BASE_DEFINES = CC=$(CC) AR=$(AR) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) DEBUG=$(DEBUG) \
BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) SRC_DIR=$(SRC_DIR) \
LIB_DIR=$(LIB_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
CLINK=$(CLINK) CFLAGS="$(CFLAGS)" DBG_CFLAGS=$(DBG_CFLAGS) LDFLAGS=$(LDFLAGS) \
DEFINES="$(DEFINES)" DBG_DEFINES=$(DBG_DEFINES) \
ARCH=$(ARCH) SRCDS_DIR=$(SRCDS_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)
# Project Makefile
MAKE_SERVER = Makefile.server
MAKE_VCPM = Makefile.vcpm
MAKE_PLUGIN = Makefile.plugin
MAKE_TIER1 = Makefile.tier1
MAKE_MATH = Makefile.mathlib
MAKE_CHOREO = Makefile.choreo
all: check vcpm mod
check:
if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d $(BUILD_DIR) ];then mkdir -p $(BUILD_DIR);fi
cd $(BUILD_DIR)
if [ ! -e "$(LIB_DIR)/tier1_i486.a" ]; then $(MAKE) tier1;fi
if [ ! -e "$(LIB_DIR)/mathlib_i486.a" ]; then $(MAKE) mathlib;fi
if [ ! -e "$(LIB_DIR)/choreoobjects_i486.a" ]; then $(MAKE) choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/steam_api_i486.so .; fi
vcpm: check
if [ ! -e "vcpm" ]; then $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES);fi
mod: check vcpm
./vcpm $(MOD_PROJ)
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES)
plugin: check
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)
tier1:
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES)
mathlib:
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES)
choreo:
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES)
install:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
installrelease:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
strip $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
clean:
$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES) clean
# SDK Makefile for x86 Linux
#
#
#############################################################################
# Developer configurable items
#############################################################################
# the name of the mod binary (_i486.so is appended to the end)
NAME = server
# the location of the vcproj that builds the mod
MOD_PROJ = ../game/server/server_scratch-2005.vcproj
# the name of the mod configuration (typically <proj name>_<build type><build target>)
MOD_CONFIG = Server\(SDK\)_ReleaseWin32
# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
SRCDS_DIR = /home/valera/srcds_/orangebox
# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
#GAME_DIR = $(SRCDS_DIR)/scratchmod
GAME_DIR = $(SRCDS_DIR)
# compiler options (gcc 3.4.1 or above is required - 4.1.2+ recommended)
CC = /usr/bin/gcc-4.2
CPLUS = /usr/bin/g++-4.2
CLINK = /usr/bin/gcc-4.2
#CPP_LIB = "libstdc++.a libgcc_eh.a"
CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.2.4/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.2.4/libgcc_eh.a"
# put any compiler flags you want passed here
USER_CFLAGS =
# link flags for your mod, make sure to include any special libraries here
LDFLAGS = "-lm -ldl $(LIB_DIR)/particles_i486.a $(LIB_DIR)/dmxloader_i486.a $(LIB_DIR)/mathlib_i486.a tier0_i486.so vstdlib_i486.so $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a $(LIB_DIR)/choreoobjects_i486.a steam_api_i486.so"
# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
#XERCES_INC_DIR = /usr/include
#XERCES_LIB_DIR = /usr/lib
XERCES_INC_DIR=/usr/include/xersesc
XERCES_LIB_DIR=/usr/lib
# Change this to true if you want to build debug binaries for everything
# The only exception is the mod/game as MOD_CONFIG determines if it's a debug build or not
DEBUG = false
#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE = make
AR = "ar rvs"
# the dir we want to put binaries we build into
BUILD_DIR = .
# the place to put object files
BUILD_OBJ_DIR = $(BUILD_DIR)/obj
# the location of the source code
SRC_DIR = ..
# the location of the Linux static libraries
LIB_DIR = $(SRC_DIR)/lib/linux
# the CPU target for the build, must be i486 for now
ARCH = i486
ARCH_CFLAGS = -mtune=i686 -march=pentium3 -mmmx -m32
DEFINES = -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp \
-D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE
BASE_CFLAGS = -fno-strict-aliasing -Wall -Werror -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof
SHLIBEXT = so
SHLIBCFLAGS = -fPIC
SHLIBLDFLAGS = -shared -Wl,-Map,$@_map.txt -Wl
# Flags passed to the c compiler
CFLAGS = $(DEFINES) $(ARCH_CFLAGS) -O3 $(BASE_CFLAGS)
ifdef USER_CFLAGS
CFLAGS += $(USER_CFLAGS)
endif
CFLAGS += $(UNDEF)
# Debug flags
DBG_DEFINES = "-D_DEBUG -DDEBUG"
DBG_CFLAGS = "$(DEFINES) $(ARCH_CFLAGS) -g -ggdb $(BASE_CFLAGS) $(UNDEF)"
# define list passed to make for the sub makefile
BASE_DEFINES = CC=$(CC) AR=$(AR) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) DEBUG=$(DEBUG) \
BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) SRC_DIR=$(SRC_DIR) \
LIB_DIR=$(LIB_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
CLINK=$(CLINK) CFLAGS="$(CFLAGS)" DBG_CFLAGS=$(DBG_CFLAGS) LDFLAGS=$(LDFLAGS) \
DEFINES="$(DEFINES)" DBG_DEFINES=$(DBG_DEFINES) \
ARCH=$(ARCH) SRCDS_DIR=$(SRCDS_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)
# Project Makefile
MAKE_SERVER = Makefile.server
MAKE_VCPM = Makefile.vcpm
MAKE_PLUGIN = Makefile.plugin
MAKE_TIER1 = Makefile.tier1
MAKE_MATH = Makefile.mathlib
MAKE_CHOREO = Makefile.choreo
all: check vcpm mod
check:
if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d $(BUILD_DIR) ];then mkdir -p $(BUILD_DIR);fi
cd $(BUILD_DIR)
if [ ! -e "$(LIB_DIR)/tier1_i486.a" ]; then $(MAKE) tier1;fi
if [ ! -e "$(LIB_DIR)/mathlib_i486.a" ]; then $(MAKE) mathlib;fi
if [ ! -e "$(LIB_DIR)/choreoobjects_i486.a" ]; then $(MAKE) choreo;fi
if [ ! -f "tier0_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/vstdlib_i486.so .; fi
if [ ! -f "steam_api_i486.so" ]; then ln -s $(SRCDS_DIR)/bin/steam_api_i486.so .; fi
vcpm: check
if [ ! -e "vcpm" ]; then $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES);fi
mod: check vcpm
./vcpm $(MOD_PROJ)
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES)
plugin: check
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)
tier1:
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES)
mathlib:
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES)
choreo:
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES)
install:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
installrelease:
cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
strip $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
clean:
$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES) clean
$(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES) clean