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

Add Windows support #1

Closed
dapetcu21 opened this issue Dec 29, 2017 · 0 comments

Comments

@dapetcu21
Copy link
Owner

commented Dec 29, 2017

Windows support is blocked by a MSVC compiler bug (see below).

Potential solutions:

  • Use something else than LuaBridge
  • Wait until the Defold team changes the compiler version for some reason
  • Compile this module with my own version of MSVC and provide it as a lib

A Google search about this bug yielded: https://social.msdn.microsoft.com/Forums/office/en-US/ea2b805b-5464-4678-af2f-f20331c0367f/visual-studio-enterprise-2015-update-3-compiler-has-stopped-working?forum=visualstudiogeneral

Build server output: wine cl.exe /nologo /TP /O2 /Oy- /Z7 /MT /D__STDC_LIMIT_MACROS /DWINVER=0x0600 /D_WIN32_WINNT=0x0600 /DWIN32 /D_CRT_SECURE_NO_WARNINGS /wd4200 /W3 /EHsc /DDM_PLATFORM_WINDOWS /DLUA_BYTECODE_ENABLE   /Iupload/fmod/include/  /I/var/extender/sdk/0faa10db6bb28907d67358ad5810f3962437f3fd/defoldsdk//include /I/var/extender/sdk/0faa10db6bb28907d67358ad5810f3962437f3fd/defoldsdk//sdk/include /IC:/ProgramFilesx86/MicrosoftVisualStudio14.0/VC/INCLUDE /IC:/ProgramFilesx86/MicrosoftVisualStudio14.0/VC/ATLMFC/INCLUDE /IC:/ProgramFilesx86/WindowsKits/10/include/10.0.10240.0/ucrt /IC:/ProgramFilesx86/WindowsKits/NETFXSDK/4.6.1/include/um /IC:/ProgramFilesx86/WindowsKits/8.1/include/shared /IC:/ProgramFilesx86/WindowsKits/8.1/include/um /IC:/ProgramFilesx86/WindowsKits/8.1/include/winrt  upload/fmod/src/main.cpp /c /Fobuild/main.cpp_0.o
main.cpp

wine cl.exe /nologo /TP /O2 /Oy- /Z7 /MT /D__STDC_LIMIT_MACROS /DWINVER=0x0600 /D_WIN32_WINNT=0x0600 /DWIN32 /D_CRT_SECURE_NO_WARNINGS /wd4200 /W3 /EHsc /DDM_PLATFORM_WINDOWS /DLUA_BYTECODE_ENABLE   /Iupload/fmod/include/  /I/var/extender/sdk/0faa10db6bb28907d67358ad5810f3962437f3fd/defoldsdk//include /I/var/extender/sdk/0faa10db6bb28907d67358ad5810f3962437f3fd/defoldsdk//sdk/include /IC:/ProgramFilesx86/MicrosoftVisualStudio14.0/VC/INCLUDE /IC:/ProgramFilesx86/MicrosoftVisualStudio14.0/VC/ATLMFC/INCLUDE /IC:/ProgramFilesx86/WindowsKits/10/include/10.0.10240.0/ucrt /IC:/ProgramFilesx86/WindowsKits/NETFXSDK/4.6.1/include/um /IC:/ProgramFilesx86/WindowsKits/8.1/include/shared /IC:/ProgramFilesx86/WindowsKits/8.1/include/um /IC:/ProgramFilesx86/WindowsKits/8.1/include/winrt  upload/fmod/src/fmod_classes.cpp /c /Fobuild/fmod_classes.cpp_1.o
fmod_classes.cpp
z:\tmp\job4828900208295212704\upload\fmod\src\fmod_helpers.hpp(202): warning C4244: '=': conversion from 'lua_Number' to 'float', possible loss of data
z:\tmp\job4828900208295212704\upload\fmod\src\fmod_helpers.hpp(207): warning C4244: '=': conversion from 'lua_Number' to 'float', possible loss of data
z:\tmp\job4828900208295212704\upload\fmod\src\fmod_helpers.hpp(212): warning C4244: '=': conversion from 'lua_Number' to 'float', possible loss of data
z:\tmp\job4828900208295212704\upload\fmod\include\luabridge\detail/Namespace.h(796): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1468)
 To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++ 
 Help menu, or open the Technical Support help file for more information
upload/fmod/src/fmod_classes.cpp(185): note: see reference to function template instantiation 'luabridge::Namespace::Class<FMODBridge::StudioBus> &luabridge::Namespace::Class<FMODBridge::StudioBus>::addFunction<FMOD_GUID(__thiscall FMODBridge::StudioBus::* )(lua_State *)>(const char *,MemFn)' being compiled
upload/fmod/src/fmod_classes.cpp(249): note: see reference to function template instantiation 'luabridge::Namespace::Class<FMODBridge::StudioBus> &luabridge::Namespace::Class<FMODBridge::StudioBus>::addFunction<FMOD_GUID(__thiscall FMODBridge::StudioBus::* )(lua_State *)>(const char *,MemFn)' being compiled
Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe.  You will be prompted to send an error report to Microsoft later.
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe'
    Please choose the Technical Support command on the Visual C++
    Help menu, or open the Technical Support help file for more information

@dapetcu21 dapetcu21 closed this in 7be9d70 Jan 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.