Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbol: SteamAPI_Init (Rebuild native libraries?) #136

Open
dolda2000 opened this issue Dec 23, 2023 · 1 comment
Open

Undefined symbol: SteamAPI_Init (Rebuild native libraries?) #136

dolda2000 opened this issue Dec 23, 2023 · 1 comment

Comments

@dolda2000
Copy link

dolda2000 commented Dec 23, 2023

I'm new to Steam, so I'm not really sure if this is something that changed with the Steamworks SDK recently or if I'm doing something wrong, but it looks like the former to me.

Trying to get some simple sample code running, I get the following error when running SteamAPI.init():

java: symbol lookup error: /tmp/lwjgl_fredrik/3.3.3-snapshot/x64/libsteamworks4j.so: undefined symbol: SteamAPI_Init

This is on Linux, in case it makes a difference. Looking at libsteam_api.so, it does indeed not have any SteamAPI_Init symbol. Rather, looking further at the include files in the SDK, SteamAPI_Init is now an inline function that only exists in the header files: From steam_api.h:

inline bool SteamAPI_Init()
{
	return SteamAPI_InitEx( NULL ) == k_ESteamAPIInitResult_OK;
}

I followed the instructions to rebuild the native libraries, and having done that, it now seems to work properly. Therefore, it seems to me that the native libraries that ship with the Git repo should be rebuilt and recommitted. I would do this myself, but I don't have access to a Windows or MacOS build environment.

@dolda2000
Copy link
Author

Having found the list of historical Steamworks SDKs for download, I found that this change was introduced in version 1.58a, currently the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant