philippj / SteamworksPy

A working Python API system for Valve's Steamworks.
MIT License
212 stars 39 forks source link

[Kali Linux] Can't make SteamworksPy.so #88

Open gungugugungu opened 1 year ago

gungugugungu commented 1 year ago

Whenever I try to run the command the website says g++ -std=c++11 -o SteamworksPy.so -shared -fPIC SteamworksPy.cpp -l steam_api -L. it gives me an error:

SteamworksPy.cpp: In function ‘int GetAuthSessionTicket(char*)’: SteamworksPy.cpp:987:38: error: no matching function for call to ‘ISteamUser::GetAuthSessionTicket(char*&, int, uint32*)’ 987 | SteamUser()->GetAuthSessionTicket(buffer, 1024, &size); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from sdk/steam/steam_api.h:25, from SteamworksPy.cpp:16: sdk/steam/isteamuser.h:130:29: note: candidate: ‘virtual HAuthTicket ISteamUser::GetAuthSessionTicket(void*, int, uint32*, const SteamNetworkingIdentity*)’ 130 | virtual HAuthTicket GetAuthSessionTicket( void *pTicket, int cbMaxTicket, uint32 *pcbTicket, const SteamNetworkingIdentity *pSteamNetworkingIdentity ) = 0; | ^~~~~~~~~~~~~~~~~~~~ sdk/steam/isteamuser.h:130:29: note: candidate expects 4 arguments, 3 provided

Does anyone know how I could fix this? I've spent way too much trying to fix it, and this is my only hope.

philippj commented 1 year ago

I cant speak for Kali as I have only used Deb to compile it for Linux so far. Im gonna push out a new release that contains the latest lib version for Win, Mac & Deb over the next week or so.

twstagg commented 1 year ago

I cant speak for Kali as I have only used Deb to compile it for Linux so far. Im gonna push out a new release that contains the latest lib version for Win, Mac & Deb over the next week or so.

This is happening because of some changes made to that since SW SDK 156-157

See: https://partner.steamgames.com/downloads/list

image

@dDog7 Best to stay on Steamworks SDK <=155 for the time being, until SteamworksPy is updated for it.

Gh0stReaper123 commented 11 months ago

@philippj Any chance on that release? I'm really struggling to get this so file compiled

BigMeatyClaws commented 3 months ago

Same issue here as above. Would really love an update on this.

gungugugungu commented 3 months ago

Well, I did a disto hop, now I'm on Ubuntu. If you want it, here's my compiled SteamworksPy.so.