Raised This Month: $12 Target: $400
 3% 

MM:S Plugin Development on Ubuntu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
merhaben
Junior Member
Join Date: Jun 2016
Old 06-08-2016 , 09:42   MM:S Plugin Development on Ubuntu
Reply With Quote #1

Firstly I don't know English very well. I'm sorry for that.
I want to develop MM:S plugin for csgo on ubuntu 16.04, not sourcemod extension.
I read MM:S documentation wiki. I did all things what the doc says.
But I didnt build stub_mm plugin in the 'metamod-source' source code folder.
I clone metamod-source from github - https://github.com/alliedmodders/metamod-source - foldername metamod-source
I clone hl2sdk - https://github.com/alliedmodders/hl2sdk - foldername hl2sdk
I clone hl2sdk branch csgo like this: git clone -b csgo --single-branch https://github.com/alliedmodders/hl2sdk - foldername hl2sdk-csgo
I clone hl2sdk branch css like this: git clone -b css --single-branch https://github.com/alliedmodders/hl2sdk - foldername hl2sdk-css
I clone hl2sdk branch orangebox like this: git clone -b orangebox --single-branch https://github.com/alliedmodders/hl2sdk - foldername hl2sdk-ob
I clone hl2sdk branch sdk2013 like this: git clone -b sdk2013 --single-branch https://github.com/alliedmodders/hl2sdk - foldername hl2sdk-ob-valve

My Project folder contains
hl2sdk, hl2sdk-csgo, hl2sdk-css, hl2sdk-ob, hl2sdk-ob-valve and metamod-source
But I dont understand, which is branches match these names above and stub_mm plugin 'Makefile' file?
HL2SDK_ORIG = ../../hl2sdk -> Which branch the mm:s github repo
HL2SDK_OB = ../../hl2sdk-ob ->
Which branch the mm:s github repo
HL2SDK_CSS = ../../hl2sdk-css ->
HL2SDK_OB_VALVE = ../../hl2sdk-ob-valve ->
Which branch the mm:s github repo
HL2SDK_CSGO = ../../hl2sdk-csgo -> which branch ?
MMSOURCE19 = .. this is mm:s github repo probably
Do I clone sourcemod repo ? And why? Makefile doesnt use sourcemod
I install all library for build plugin:
sudo apt-get install gcc g++ sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install clang
sudo apt-get install lib32stdc++-4.8-dev sudo apt-get install lib32z1 lib32z1-dev sudo apt-get install libc6-dev-i386 libc6-i386 - from this link https://wiki.alliedmods.net/Building_SourceMod
I did everything but i didnt build simple stub_mm plugin. Please Help me...
merhaben is offline
Chief149
Member
Join Date: Sep 2010
Old 06-08-2016 , 14:40   Re: MM:S Plugin Development on Ubuntu
Reply With Quote #2

In the makefile all you do is edit those paths. So all you gotta do is make HL2SDK_OB = the directory where you cloned that particular branch.

The same applies to the other paths.
Chief149 is offline
merhaben
Junior Member
Join Date: Jun 2016
Old 06-08-2016 , 15:49   Re: MM:S Plugin Development on Ubuntu
Reply With Quote #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??
merhaben is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-08-2016 , 17:38   Re: MM:S Plugin Development on Ubuntu
Reply With Quote #4

Remove -Werror from the Makefile.
__________________
asherkin is offline
merhaben
Junior Member
Join Date: Jun 2016
Old 06-09-2016 , 04:13   Re: MM:S Plugin Development on Ubuntu
Reply With Quote #5

I removed -Werror flag. The result..:
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 -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: warning: typedef ‘ERROR_CantUseHorrible_cast’ locally defined but not used [-Wunused-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: warning: typedef ‘ERROR_Unsupported_member_function_pointer_on_this_compiler’ locally defined but not used [-Wunused-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: warning: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Wunused-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: warning: typedef ‘ERROR_CantUseEvilMethod’ locally defined but not used [-Wunused-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: warning: deleting object of polymorphic class type ‘__SourceHook_FHCls_IServerGameDLLServerActivate0::CMyDelegateImpl’ which has non-virtual destructor might cause undefined behaviour [-Wdelete-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
 ^
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 -m32 Release.csgo/stub_mm.o ../../hl2sdk-csgo/lib/linux/tier1_i486.a libvstdlib.so libtier0.so ../../hl2sdk-csgo/lib/linux/interfaces_i486.a -shared -static-libgcc -ldl -lm -o Release.csgo/stub_mm.so
make[1]: Leaving directory '/home/cemalege/mmsproject/metamod-source/stub_mm'
But created stub_mm.o and stub_mm.so
These plugins didnt load..
Code:
meta list
Listing 1 plugin:
  [01] <ERROR>
meta info 1
Plugin 1 is not loaded.
File: /home/username/csgoserver/csgo/addons/stub_mm.so

meta load /home/username/csgoserver/csgo/addons/stub_mm.so
Failed to load plugin /home/username/csgoserver/csgo/addons/stub_mm.so (/home/username/csgoserver/csgo/addons/stub_mm.so: undefined symbol: _ZdlPv).
merhaben is offline
merhaben
Junior Member
Join Date: Jun 2016
Old 06-09-2016 , 06:57   Re: MM:S Plugin Development on Ubuntu
Reply With Quote #6

I solved my problem. I added -lstdc++ flag. Thanks for help. I love this forum...
merhaben is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode