overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
127 stars 47 forks source link

Build failing on Windows #947

Open ksuprynowicz opened 1 month ago

ksuprynowicz commented 1 month ago

I used cmake .. -G "Visual Studio 16 2019" -A x64 and I'm really stuck on this - I've been unable to build Overte on Windows on several different machines for some time now.

Severity    Code    Description Project File    Line    Suppression State   Details
Error   LNK1120 2 unresolved externals  interface   C:\Users\74hc595\overte\build\interface\RelWithDebInfo\interface.exe    1       
Error   LNK1120 1 unresolved externals  openvr  C:\Users\74hc595\overte\build\plugins\openvr\RelWithDebInfo\openvr.dll  1       
Warning LNK4099 PDB 'voice_detection_cc.pdb' was not found with 'webrtc.lib(voice_detection.obj)' or at 'C:\Users\74hc595\overte\build\plugins\oculus\RelWithDebInfo\voice_detection_cc.pdb'; linking object as if no debug info    oculus  C:\Users\74hc595\overte\build\plugins\oculus\webrtc.lib(voice_detection.obj)    1       
Warning LNK4099 PDB 'rtc_media_base_cc.pdb' was not found with 'webrtc.lib(codec.obj)' or at 'C:\Users\74hc595\overte\build\plugins\openvr\RelWithDebInfo\rtc_media_base_cc.pdb'; linking object as if no debug info    openvr  C:\Users\74hc595\overte\build\plugins\openvr\webrtc.lib(codec.obj)  1       
Warning LNK4099 PDB 'common_audio_cc.pdb' was not found with 'webrtc.lib(audio_converter.obj)' or at 'C:\Users\74hc595\overte\build\plugins\oculus\RelWithDebInfo\common_audio_cc.pdb'; linking object as if no debug info  oculus  C:\Users\74hc595\overte\build\plugins\oculus\webrtc.lib(audio_converter.obj)    1       
Error   LNK1120 1 unresolved externals  oculus  C:\Users\74hc595\overte\build\plugins\oculus\RelWithDebInfo\oculus.dll  1       
Warning LNK4099 PDB 'null_aec_dump_factory_cc.pdb' was not found with 'webrtc.lib(null_aec_dump_factory.obj)' or at 'C:\Users\74hc595\overte\build\plugins\oculus\RelWithDebInfo\null_aec_dump_factory_cc.pdb'; linking object as if no debug info  oculus  C:\Users\74hc595\overte\build\plugins\oculus\webrtc.lib(null_aec_dump_factory.obj)  1       
Error   LNK2019 unresolved external symbol __std_find_trivial_4 referenced in function "int * __cdecl std::_Find_unchecked<int *,int>(int *,int * const,int const &)" (??$_Find_unchecked@PEAHH@std@@YAPEAHPEAHQEAHAEBH@Z)  oven    C:\Users\74hc595\overte\build\tools\oven\draco.lib(point_cloud.cc.obj)  1       
Error   LNK2019 unresolved external symbol __std_init_once_link_alternate_names_and_abort referenced in function "void __cdecl std::call_once<class <lambda_0e64988457575224279dcb6d61e61bdd> >(struct std::once_flag &,class <lambda_0e64988457575224279dcb6d61e61bdd> &&)" (??$call_once@V<lambda_0e64988457575224279dcb6d61e61bdd>@@$$V@std@@YAXAEAUonce_flag@0@$$QEAV<lambda_0e64988457575224279dcb6d61e61bdd>@@@Z) oven    C:\Users\74hc595\overte\build\tools\oven\EtcLib.lib(EtcImage.obj)   1       
Error   LNK1120 2 unresolved externals  oven    C:\Users\74hc595\overte\build\tools\oven\RelWithDebInfo\oven.exe    1       
Warning LNK4075 ignoring '/INCREMENTAL' due to '/OPT:ICF' specification assignment-client   C:\Users\74hc595\overte\build\assignment-client\LINK    1       
Warning LNK4075 ignoring '/INCREMENTAL' due to '/OPT:ICF' specification interface   C:\Users\74hc595\overte\build\interface\LINK    1       
Error   LNK2019 unresolved external symbol __std_init_once_link_alternate_names_and_abort referenced in function "void __cdecl std::call_once<class <lambda_0e64988457575224279dcb6d61e61bdd> >(struct std::once_flag &,class <lambda_0e64988457575224279dcb6d61e61bdd> &&)" (??$call_once@V<lambda_0e64988457575224279dcb6d61e61bdd>@@$$V@std@@YAXAEAUonce_flag@0@$$QEAV<lambda_0e64988457575224279dcb6d61e61bdd>@@@Z) assignment-client   C:\Users\74hc595\overte\build\assignment-client\EtcLib.lib(EtcImage.obj)    1       
Error   LNK2019 unresolved external symbol __std_find_trivial_4 referenced in function "int * __cdecl std::_Find_unchecked<int *,int>(int *,int * const,int const &)" (??$_Find_unchecked@PEAHH@std@@YAPEAHPEAHQEAHAEBH@Z)  assignment-client   C:\Users\74hc595\overte\build\assignment-client\draco.lib(point_cloud.cc.obj)   1       
Error   LNK1120 2 unresolved externals  assignment-client   C:\Users\74hc595\overte\build\assignment-client\RelWithDebInfo\assignment-client.exe    1       
Error   LNK2019 unresolved external symbol __std_find_trivial_4 referenced in function "int * __cdecl std::_Find_unchecked<int *,int>(int *,int * const,int const &)" (??$_Find_unchecked@PEAHH@std@@YAPEAHPEAHQEAHAEBH@Z)  interface   C:\Users\74hc595\overte\build\interface\draco.lib(point_cloud.cc.obj)   1       
Error   LNK2019 unresolved external symbol __std_init_once_link_alternate_names_and_abort referenced in function "void __cdecl std::call_once<class <lambda_0e64988457575224279dcb6d61e61bdd> >(struct std::once_flag &,class <lambda_0e64988457575224279dcb6d61e61bdd> &&)" (??$call_once@V<lambda_0e64988457575224279dcb6d61e61bdd>@@$$V@std@@YAXAEAUonce_flag@0@$$QEAV<lambda_0e64988457575224279dcb6d61e61bdd>@@@Z) interface   C:\Users\74hc595\overte\build\interface\EtcLib.lib(EtcImage.obj)    1       
ksuprynowicz commented 1 month ago

It seems like people are having similar issue here: https://github.com/actions/runner-images/issues/6091

ksuprynowicz commented 1 month ago

It works perfectly on VS 2022 with 2022 build tools, so only 2019 is affected.