Error while trying to compile godot for WinRT (Windows Phone)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alexander Taylor
:warning: Old Version Published before Godot 3 was released.

Hello, I am following this guide to compile and export a WinRT export template. I am having a problem during compilation, I’ll show you my build process so you can help me if I screwed up.

  1. Open the VS CMD prompt for ARM. The shortcut path is: %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86_arm
  2. Navigate to my godot source and entered: scons -j4 platform=winrt target=release_debug
  3. Wait for compilation. It will fail during the linking phase.
  4. Received this error that there is no online help for:

link /nologo /MACHINE:ARM /MANIFEST:NO /NXCOMPAT /DYNAMICBASE /WINMD /APPCONTAINER /ERRORREPORT:PROMPT /NOLOGO /TLBID:1 /NODEFAULTLIB:"kernel32.lib" /NODEFAULTLIB:"ole32.lib" /SUBSYSTEM:CONSOLE WindowsApp.lib mincore.lib libANGLE.lib libEGL.lib libGLESv2.lib xaudio2_8.lib /OUT:bin\godot.winrt.opt.debug.32.arm.exe "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store\arm" /LIBPATH:C:\Users\giaco\dev\angle\winrt\10\src\Release_ARM\lib "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store\references" main\main.winrt.opt.debug.32.arm.lib modules\modules.winrt.opt.debug.32.arm.lib bin\tests\tests.winrt.opt.debug.32.arm.lib drivers\drivers.winrt.opt.debug.32.arm.lib scene\scene.winrt.opt.debug.32.arm.lib servers\servers.winrt.opt.debug.32.arm.lib core\core.winrt.opt.debug.32.arm.lib modules\freetype\freetype_builtin.winrt.opt.debug.32.arm.lib platform\winrt\thread_winrt.winrt.opt.debug.32.arm.obj platform\windows\tcp_server_winsock.winrt.opt.debug.32.arm.obj platform\windows\packet_peer_udp_winsock.winrt.opt.debug.32.arm.obj platform\windows\stream_peer_winsock.winrt.opt.debug.32.arm.obj platform\windows\key_mapping_win.winrt.opt.debug.32.arm.obj platform\winrt\joystick_winrt.winrt.opt.debug.32.arm.obj platform\winrt\gl_context_egl.winrt.opt.debug.32.arm.obj platform\winrt\app.winrt.opt.debug.32.arm.obj platform\winrt\os_winrt.winrt.opt.debug.32.arm.obj Creating library bin\godot.winrt.opt.debug.32.arm.lib and object bin\godot.winrt.opt.debug.32.arm.exp tcp_server_winsock.winrt.opt.debug.32.arm.obj : error LNK2001: unresolved external symbol in6addr_any packet_peer_udp_winsock.winrt.opt.debug.32.arm.obj : error LNK2001: unresolved external symbol in6addr_any bin\godot.winrt.opt.debug.32.arm.exe : fatal error LNK1120: 1 unresolved externals scons: *** [bin\godot.winrt.opt.debug.32.arm.exe] Error 1120 scons: building terminated because of errors.

Only thing I could think of, that I did differently, was that for vcvarsall.bat I could not find just an “arm” architecture target as an argument option so I used x86_arm. I also tried compiling with x64_arm and I get the same error.

Seems like the build broke with the recent changes int the code.

vnen | 2016-10-31 22:21

Could be or I just did something wrong. I’m reinstalling Visual Studio to try a clean attempt. I noticed that I had multiple versions of the WIndows 10 SDK, I’ll see what happens if I use just the oldest version.

Alexander Taylor | 2016-10-31 22:38

No, it’s broken indeed, fails for me too (and I was the one who did the port, so…). Anyway, I opened an issue to make people aware: Linking error for UWP · Issue #7003 · godotengine/godot · GitHub.

vnen | 2016-10-31 23:23

Oh, thanks for checking then, hopefully it can be sorted out. It’s also a shame there is no pre-made export template for WinRT.

Alexander Taylor | 2016-10-31 23:29

:bust_in_silhouette: Reply From: vnen

Adding as an answer so other people know: current master is broken for UWP. I opened an issue about it and already send a patch to fix but it’s not yet merged.