Junior Member
|
06-08-2016
, 15:49
Re: MM:S Plugin Development on Ubuntu
|
#3
|
My Project Directory
Code:
hl2sdk hl2sdk-csgo hl2sdk-css hl2sdk-ob hl2sdk-ob-valve metamod-source
I cloned from github these sdks above.
and i build stub_mm sample plugin, give error below
make ENGINE=original:
Code:
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
mkdir -p Release.original
ln -sf ../../hl2sdk/linux_sdk/vstdlib_i486.so
ln -sf ../../hl2sdk/linux_sdk/tier0_i486.so
make -f Makefile stub_mm
make[1]: Entering directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
gcc -I../../hl2sdk/public/dlls -I. -I.. -I../../hl2sdk/public -I../../hl2sdk/public/engine -I../../hl2sdk/public/mathlib -I../../hl2sdk/public/vstdlib -I../../hl2sdk/public/tier0 -I../../hl2sdk/public/tier1 -I. -I../core-legacy -I../core-legacy/sourcehook -DSOURCE_ENGINE=1 -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_CSS=6 -DSE_ORANGEBOXVALVE=7 -DSE_LEFT4DEAD=8 -DSE_LEFT4DEAD2=9 -DSE_ALIENSWARM=10 -DSE_PORTAL2=11 -DSE_CSGO=12 -O3 -funroll-loops -pipe -D_LINUX -DPOSIX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -DCOMPILER_GCC -Wall -Wno-non-virtual-dtor -Wno-overloaded-virtual -Werror -fPIC -fno-exceptions -fno-rtti -msse -m32 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -o Release.original/stub_mm.o -c stub_mm.cpp
In file included from ../core-legacy/sourcehook/sourcehook.h:112:0,
from ../core-legacy/ISmmPlugin.h:20,
from stub_mm.h:18,
from stub_mm.cpp:16:
../core-legacy/sourcehook/FastDelegate.h: In function ‘OutputClass fastdelegate::detail::horrible_cast(InputClass)’:
../core-legacy/sourcehook/FastDelegate.h:181:14: error: typedef ‘ERROR_CantUseHorrible_cast’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseHorrible_cast[sizeof(InputClass)==sizeof(u)
^
../core-legacy/sourcehook/FastDelegate.h: In static member function ‘static fastdelegate::detail::GenericClass* fastdelegate::detail::SimplifyMemFunc<N>::Convert(X*, XFuncType, GenericMemFuncType&)’:
../core-legacy/sourcehook/FastDelegate.h:298:16: error: typedef ‘ERROR_Unsupported_member_function_pointer_on_this_compiler’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char ERROR_Unsupported_member_function_pointer_on_this_compiler[N-100
^
../core-legacy/sourcehook/FastDelegate.h: In member function ‘void fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::bindstaticfunc(DerivedClass*, ParentInvokerSig, StaticFuncPtr)’:
../core-legacy/sourcehook/FastDelegate.h:784:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(GenericClass *)==sizeof(function_t
^
../core-legacy/sourcehook/FastDelegate.h: In member function ‘UnvoidStaticFuncPtr fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::GetStaticFunction() const’:
../core-legacy/sourcehook/FastDelegate.h:799:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(UnvoidStaticFuncPtr)==sizeof(this)
^
In file included from ../core-legacy/ISmmPlugin.h:20:0,
from stub_mm.h:18,
from stub_mm.cpp:16:
../core-legacy/sourcehook/sourcehook.h: In instantiation of ‘void SourceHook::CSHDelegate<T>::DeleteThis() [with T = fastdelegate::FastDelegate3<edict_t*, int, int>]’:
stub_mm.cpp:107:1: required from here
../core-legacy/sourcehook/sourcehook.h:214:4: error: deleting object of polymorphic class type ‘SourceHook::CSHDelegate<fastdelegate::FastDelegate3<edict_t*, int, int> >’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor]
delete this;
^
cc1plus: all warnings being treated as errors
Makefile:186: recipe for target 'Release.original/stub_mm.o' failed
make[1]: *** [Release.original/stub_mm.o] Error 1
make[1]: Leaving directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
Makefile:189: recipe for target 'all' failed
make: *** [all] Error 2
make ENGINE=orangebox
Code:
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
mkdir -p Release.orangebox
ln -sf ../../hl2sdk-ob/lib/linux/vstdlib_i486.so
ln -sf ../../hl2sdk-ob/lib/linux/tier0_i486.so
make -f Makefile stub_mm
make[1]: Entering directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
gcc -I../../hl2sdk-ob/public/game/server -I. -I.. -I../../hl2sdk-ob/public -I../../hl2sdk-ob/public/engine -I../../hl2sdk-ob/public/mathlib -I../../hl2sdk-ob/public/vstdlib -I../../hl2sdk-ob/public/tier0 -I../../hl2sdk-ob/public/tier1 -I. -I../core -I../core/sourcehook -DSOURCE_ENGINE=3 -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_CSS=6 -DSE_ORANGEBOXVALVE=7 -DSE_LEFT4DEAD=8 -DSE_LEFT4DEAD2=9 -DSE_ALIENSWARM=10 -DSE_PORTAL2=11 -DSE_CSGO=12 -O3 -funroll-loops -pipe -D_LINUX -DPOSIX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -DCOMPILER_GCC -Wall -Wno-non-virtual-dtor -Wno-overloaded-virtual -Werror -fPIC -fno-exceptions -fno-rtti -msse -m32 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -o Release.orangebox/stub_mm.o -c stub_mm.cpp
In file included from ../core/sourcehook/sourcehook.h:118:0,
from ../core/ISmmPlugin.h:37,
from stub_mm.h:18,
from stub_mm.cpp:16:
../core/sourcehook/FastDelegate.h: In function ‘OutputClass fastdelegate::detail::horrible_cast(InputClass)’:
../core/sourcehook/FastDelegate.h:181:14: error: typedef ‘ERROR_CantUseHorrible_cast’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseHorrible_cast[sizeof(InputClass)==sizeof(u)
^
../core/sourcehook/FastDelegate.h: In static member function ‘static fastdelegate::detail::GenericClass* fastdelegate::detail::SimplifyMemFunc<N>::Convert(X*, XFuncType, GenericMemFuncType&)’:
../core/sourcehook/FastDelegate.h:298:16: error: typedef ‘ERROR_Unsupported_member_function_pointer_on_this_compiler’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char ERROR_Unsupported_member_function_pointer_on_this_compiler[N-100
^
../core/sourcehook/FastDelegate.h: In member function ‘void fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::bindstaticfunc(DerivedClass*, ParentInvokerSig, StaticFuncPtr)’:
../core/sourcehook/FastDelegate.h:784:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(GenericClass *)==sizeof(function_t
^
../core/sourcehook/FastDelegate.h: In member function ‘UnvoidStaticFuncPtr fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::GetStaticFunction() const’:
../core/sourcehook/FastDelegate.h:799:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(UnvoidStaticFuncPtr)==sizeof(this)
^
In file included from ../core/ISmmPlugin.h:37:0,
from stub_mm.h:18,
from stub_mm.cpp:16:
stub_mm.cpp: In member function ‘virtual void __SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl::DeleteThis()’:
../core/sourcehook/sourcehook.h:1058:30: error: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor]
void DeleteThis() { delete this; } \
^
../core/sourcehook/sourcehook.h:1717:3: note: in expansion of macro ‘MAKE_DELEG_void’
MAKE_DELEG_void((param1 p1, param2 p2, param3 p3), (p1, p2, p3)); \
^
stub_mm.cpp:18:1: note: in expansion of macro ‘SH_DECL_HOOK3_void’
SH_DECL_HOOK3_void(IServerGameDLL, ServerActivate, SH_NOATTRIB, 0, edict_t *, i
^
cc1plus: all warnings being treated as errors
Makefile:186: recipe for target 'Release.orangebox/stub_mm.o' failed
make[1]: *** [Release.orangebox/stub_mm.o] Error 1
make[1]: Leaving directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
Makefile:189: recipe for target 'all' failed
make: *** [all] Error 2
make ENGINE=csgo
Code:
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
mkdir -p Release.csgo
ln -sf ../../hl2sdk-csgo/lib/linux/libvstdlib.so
ln -sf ../../hl2sdk-csgo/lib/linux/libtier0.so
make -f Makefile stub_mm
make[1]: Entering directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
if [ "true" = "false" ]; then \
echo "You must supply one of the following values for ENGINE:"; \
echo "csgo, left4dead2, left4dead, css, orangeboxvalve, orangebox, or original"; \
exit 1; \
fi
gcc -I../../hl2sdk-csgo/public/game/server -I. -I.. -I../../hl2sdk-csgo/public -I../../hl2sdk-csgo/public/engine -I../../hl2sdk-csgo/public/mathlib -I../../hl2sdk-csgo/public/vstdlib -I../../hl2sdk-csgo/public/tier0 -I../../hl2sdk-csgo/public/tier1 -I. -I../core -I../core/sourcehook -DSOURCE_ENGINE=12 -DSE_EPISODEONE=1 -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_CSS=6 -DSE_ORANGEBOXVALVE=7 -DSE_LEFT4DEAD=8 -DSE_LEFT4DEAD2=9 -DSE_ALIENSWARM=10 -DSE_PORTAL2=11 -DSE_CSGO=12 -O3 -funroll-loops -pipe -D_LINUX -DPOSIX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -DCOMPILER_GCC -Wall -Wno-non-virtual-dtor -Wno-overloaded-virtual -Werror -fPIC -fno-exceptions -fno-rtti -msse -m32 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -o Release.csgo/stub_mm.o -c stub_mm.cpp
In file included from ../core/sourcehook/sourcehook.h:118:0,
from ../core/ISmmPlugin.h:37,
from stub_mm.h:18,
from stub_mm.cpp:16:
../core/sourcehook/FastDelegate.h: In function ‘OutputClass fastdelegate::detail::horrible_cast(InputClass)’:
../core/sourcehook/FastDelegate.h:181:14: error: typedef ‘ERROR_CantUseHorrible_cast’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseHorrible_cast[sizeof(InputClass)==sizeof(u)
^
../core/sourcehook/FastDelegate.h: In static member function ‘static fastdelegate::detail::GenericClass* fastdelegate::detail::SimplifyMemFunc<N>::Convert(X*, XFuncType, GenericMemFuncType&)’:
../core/sourcehook/FastDelegate.h:298:16: error: typedef ‘ERROR_Unsupported_member_function_pointer_on_this_compiler’ locally defined but not used [-Werror=unused-local-typedefs]
typedef char ERROR_Unsupported_member_function_pointer_on_this_compiler[N-100
^
../core/sourcehook/FastDelegate.h: In member function ‘void fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::bindstaticfunc(DerivedClass*, ParentInvokerSig, StaticFuncPtr)’:
../core/sourcehook/FastDelegate.h:784:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(GenericClass *)==sizeof(function_t
^
../core/sourcehook/FastDelegate.h: In member function ‘UnvoidStaticFuncPtr fastdelegate::detail::ClosurePtr<GenericMemFunc, StaticFuncPtr, UnvoidStaticFuncPtr>::GetStaticFunction() const’:
../core/sourcehook/FastDelegate.h:799:15: error: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Werror=unused-local-typedefs]
typedef int ERROR_CantUseEvilMethod[sizeof(UnvoidStaticFuncPtr)==sizeof(this)
^
In file included from ../core/ISmmPlugin.h:37:0,
from stub_mm.h:18,
from stub_mm.cpp:16:
stub_mm.cpp: In member function ‘virtual void __SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl::DeleteThis()’:
../core/sourcehook/sourcehook.h:1058:30: error: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor]
void DeleteThis() { delete this; } \
^
../core/sourcehook/sourcehook.h:1717:3: note: in expansion of macro ‘MAKE_DELEG_void’
MAKE_DELEG_void((param1 p1, param2 p2, param3 p3), (p1, p2, p3)); \
^
stub_mm.cpp:18:1: note: in expansion of macro ‘SH_DECL_HOOK3_void’
SH_DECL_HOOK3_void(IServerGameDLL, ServerActivate, SH_NOATTRIB, 0, edict_t *, i
^
cc1plus: all warnings being treated as errors
Makefile:186: recipe for target 'Release.csgo/stub_mm.o' failed
make[1]: *** [Release.csgo/stub_mm.o] Error 1
make[1]: Leaving directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
Makefile:189: recipe for target 'all' failed
make: *** [all] Error 2
I dont understand, where do I make mistake??
|
|