View Single Post
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 01-06-2021 , 15:09   Re: [ANY] SteamWorks
Reply With Quote #813

Check out updated AMBuildScript (https://github.com/hexa-core-eu/Stea.../AMBuildScript) and set environment variables CC and CXX to clang.

Try to add '-Wno-delete-non-virtual-dtor' to cxx.cxxflags

HTML Code:
CC=clang CXX=clang python ../configure.py <params ...>

Download compiled extension for Linux/Win/macOS: https://github.com/hexa-core-eu/SteamWorks/releases (SteamWorks 1.49, SM >= 1.10)
Or fork, edit what you want and build on Github (https://github.com/hexa-core-eu/Stea...flows/main.yml).


Quote:
Originally Posted by kadet.89 View Post
I'm trying to build this extension and get 3 such errors:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/swgchooks.cpp:28:1errordelete called on non-final '__SourceHook_FHCls_ISteamGameCoordinatorSendMessage0::CMyDelegateImpl' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
SH_DECL_HOOK3(ISteamGameCoordinatorSendMessageSH_NOATTRIB0EGCResultsuint32, const void *, uint32);
^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1696:3noteexpanded from macro 'SH_DECL_HOOK3'
                
MAKE_DELEG(rettype, (param1 p1param2 p2param3 p3), (p1p2p3)); \
                ^
/
home/d/alliedmodders/mmsource-1.10/core/sourcehook/sourcehook.h:1047:23noteexpanded from macro 'MAKE_DELEG'
                
void DeleteThis() { delete this; } \ 
PHP Code:
/home/d/alliedmodders/sourcemod/public/amtl/amtl/am-string.h:110:28errorno member named 'make_unique' in namespace 'std'
        
auto buffer std::make_unique<char[]>(1); 
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/extension.cpp:74:2errordelete called on non-final 'SteamWorksHTTP' that has virtual functions but non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
        
delete this->pSWHTTP
I'm using the latest SDK and clang 3.8. What could be the reason?
Also I had to add these pathes (ambuild couldn't find some headers):

It seams to me that I'm building it the wrong way, is there an instruction?

Here are my steps:
1) I downloaded SDK, mm , sm this way https://wiki.alliedmods.net/Building_sourcemod
2) Placed SteamWorks alongside with sourcemod
3) Downloaded steamworks SDK from this link https://partner.steamgames.com/downl...mworks_sdk.zip
4) Extracted the arhive and renamed sdk to steamworks_sdk
5)


UPD:
after switching to gcc 5.5 I get this error:
PHP Code:
/home/d/alliedmodders/SteamWorks/Extension/sdk/smsdk_ext.cpp:475:33errorexpected initializer before '_GLIBCXX_USE_NOEXCEPT'
 
void operator delete(void *ptr_GLIBCXX_USE_NOEXCEPT 
__________________

Last edited by NomisCZ; 01-06-2021 at 15:18.
NomisCZ is offline