Glfw Build Failed?

Monkey Targets Forums/Desktop/Glfw Build Failed?

Koburn(Posted 2013) [#1]
I just bought Monkey Pro, and I downloaded version 75(d)

I did some reading online about how to install all the SDK's so I can compile and run on almost all the targets. Most of them work except for a few. The Windows/Windows Phone 8 don't work because I have Windows 7 I think.

HTML5, Flash, Xna, and Cpp work fine right now.

When I run and build Gwlf, I get this error, I can't find any sources on how to fix it so my last resort is to post here.

CONSOLE:
"C:/Monkey/Monkey/bin/transcc_winnt" -target=Glfw_Game -config=Debug -run "C:/Users/Scott Rhine/Desktop/test.monkey"
TRANS monkey compiler V1.56
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine version 4.0.30319.17929
[Microsoft .NET Framework, version 4.0.30319.18052]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 10/4/2013 9:32:56 AM.
Project "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.sln" (1) is building "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\".
InitializeBuildStatus:
  Creating "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"../bdwgc/libatomic_ops-1.2/src" /I../bdwgc/include /I../stb /I../openal/include /I../glfw/include /I../glfw/lib /I../glfw/lib/win32 /Zi /nologo /W0 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHa /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue ..\glfw\lib\enable.c ..\glfw\lib\fullscreen.c ..\glfw\lib\glext.c ..\glfw\lib\image.c ..\glfw\lib\init.c ..\glfw\lib\input.c ..\glfw\lib\joystick.c ..\glfw\lib\stream.c ..\glfw\lib\tga.c ..\glfw\lib\thread.c ..\glfw\lib\time.c ..\glfw\lib\win32\win32_dllmain.c ..\glfw\lib\win32\win32_enable.c ..\glfw\lib\win32\win32_fullscreen.c ..\glfw\lib\win32\win32_glext.c ..\glfw\lib\win32\win32_init.c ..\glfw\lib\win32\win32_joystick.c ..\glfw\lib\win32\win32_thread.c ..\glfw\lib\win32\win32_time.c ..\glfw\lib\win32\win32_window.c ..\glfw\lib\window.c ..\stb\stb_image.c ..\stb\stb_vorbis.c /bigobj 
  stb_vorbis.c
  stb_image.c
  window.c
  win32_window.c
  win32_time.c
  win32_thread.c
  win32_joystick.c
  win32_init.c
  win32_glext.c
  win32_fullscreen.c
  win32_enable.c
  win32_dllmain.c
  time.c
  thread.c
  tga.c
  stream.c
  joystick.c
  input.c
  init.c
  image.c
  Generating Code...
  Compiling...
  glext.c
  fullscreen.c
  enable.c
  Generating Code...
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"../bdwgc/libatomic_ops-1.2/src" /I../bdwgc/include /I../stb /I../openal/include /I../glfw/include /I../glfw/lib /I../glfw/lib/win32 /Zi /nologo /W0 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHa /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp /bigobj 
  main.cpp
ManifestResourceCompile:
  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\MonkeyGame.exe.embed.manifest.res" "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\MonkeyGame_manifest.rc" 
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\Debug\MonkeyGame.exe" /INCREMENTAL /NOLOGO /LIBPATH:../openal/libs/Win32 opengl32.lib glu32.lib openal32.lib Ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\MonkeyGame.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\Debug\MonkeyGame.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /ENTRY:"mainCRTStartup" /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\Debug\MonkeyGame.lib" /MACHINE:X86 "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\MonkeyGame.exe.embed.manifest.res"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\enable.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\fullscreen.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\glext.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\image.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\init.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\input.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\joystick.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\stream.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\tga.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\thread.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\time.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_dllmain.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_enable.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_fullscreen.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_glext.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_init.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_joystick.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_thread.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_time.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\win32_window.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\window.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\main.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\stb_image.obj"
  "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\build\Debug\stb_vorbis.obj"
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.vcxproj]
Done Building Project "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(Link target) -> 
  LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\Scott Rhine\Desktop\test.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:04.75
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1
Done.



Any ideas on how to fix this?


ziggy(Posted 2013) [#2]
Did you delete your build folder after updating Monkey? If you're on Jungle Ide, you can select "Clean" from the compiler options. On Ted or other IDEs I don't know, but you could always go to your build folder, delete it, and rebuild everything, just in case.


Koburn(Posted 2013) [#3]
Yeah I deleted my projects build file and I rebuilt everything and I get the same error.


dawlane(Posted 2013) [#4]
I can't find any sources on how to fix it so my last resort is to post here.
It maybe a good idea to list what you have tried. As far as I know there are a few things that can cause this error ranging from a problem with the Net Frame work, needing vs2010 service pack 1, problems installing vs2012.


Koburn(Posted 2013) [#5]
Oh DERP! Haha, I forgot to install SP1 for VS2010. I feel stupid, lets see if that works. Thank you dawlane. I'll get back to you when I've finished installing it.


AdamRedwoods(Posted 2013) [#6]
stackoverflow:
http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval

it seems you need to install VC2010 SP1?
EDIT: others beat me to it


Koburn(Posted 2013) [#7]
Alright, I installed it and it builds and runs now. Thank you everyone, now I gotta tackle the Android builds.