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

VCPKG / Building x86-windows-static #298

Open
GabrielR22 opened this issue Aug 30, 2023 · 0 comments
Open

VCPKG / Building x86-windows-static #298

GabrielR22 opened this issue Aug 30, 2023 · 0 comments

Comments

@GabrielR22
Copy link

Hello! Trying to build/use GNS into my game engine.
Unfortunately I'm bound to X86 and Static linking.

VCPKG install of x86-windows-static gives this error:
gamenetworkingsockets[core]:x86-windows-static is only supported on '!(static & windows) & !uwp & !(arm64 & windows)'

Tried downloading and building, with success, but when implementing in my source setting STEAMNETWORKINGSOCKETS_STATIC_LINK and linking GameNetworkingSockets_s.lib I get a lot of linking errors :

`Build started...
1>------ Build started: Project: GameServer, Configuration: Debug Win32 ------
1>Build started 30/08/2023 14:31:33.
1>Target InitializeBuildStatus:
1> Touching "C:\Users\Administrator\Desktop\Priston\PTEU_\pristontaleeu-source\Src\GameServer..\Cache\GameServer\Debug\GameServer.tlog\unsuccessfulbuild".
1>Target VcpkgTripletSelection:
1> Using triplet "x86-windows-static" from "C:\vcpkg\installed\x86-windows-static"
1> Using normalized configuration "Debug"
1>Target ClCompile:
1> All outputs are up-to-date.
1> GNS_Server.cpp
1> All outputs are up-to-date.
1>Target Link:
1> ASM_functions.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1> Creating library C:\Users\Administrator\Desktop\Priston\PTEU_\pristontaleeu-source\Src\GameServer....\bin\server\game-server\server.lib and object C:\Users\Administrator\Desktop\Priston\PTEU_\pristontaleeu-source\Src\GameServer....\bin\server\game-server\server.exp
1> LINK : warning LNK4217: symbol '_free' defined in 'libucrtd.lib(free.obj)' is imported by 'ZLib_d.lib(zutil.obj)' in function '_zcfree'
1> LINK : warning LNK4217: symbol '_malloc' defined in 'libucrtd.lib(malloc.obj)' is imported by 'ZLib_d.lib(zutil.obj)' in function '_zcalloc'
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p_ice.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages_udp.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_stun.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_udp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_certstore.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(csteamnetworkingsockets.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages_certs.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_certs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_connections.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (_imp??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p_ice.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages_udp.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_stun.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_udp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_certstore.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(csteamnetworkingsockets.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages_certs.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_certs.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_connections.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (_imp??1LogMessage@internal@protobuf@google@@QAE@XZ)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p_ice.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (_imp??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_messages_udp.pb.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (_imp??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_stun.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (_imp??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_p2p.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (_imp??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)
1> GameNetworkingSockets_s.lib(steamnetworkingsockets_udp.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (imp??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)
................................................................
1>C:\Users\Administrator\Desktop\Priston\PTEU
\pristontaleeu-source\Src\GameServer....\bin\server\game-server\server.dll : fatal error LNK1120: 190 unresolved externals
1> 3 Warning(s)
1> 408 Error(s)
1>
1>Time Elapsed 00:00:02.18
Build has been canceled.
========== Elapsed 14:31 ==========

Projects build report:
Status | Project [Debug|Win32]
-----------|---------------------------------------------------------------------------------------------------
Failed | GameServer
`

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