Building VC Project

Please post any questions about developing your plugin here. Please use the search function before posting!
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

Building VC Project

Postby Predz » Sun Apr 26, 2015 4:56 pm

Hey, haven't done this for a while and have seemed to get an error. I have followed everything on the Wiki tutorial however building the Visual Studio project using the batch file always ends in this error.

I have tried running it as Admin, and have ensured all permissions are available to edit the folders, but to no avail.

Code: Select all

Determining if the C compiler works failed with the following output:
Change Dir: C:/SourcePython/Source.Python/src/Builds/Windows/csgo/CMakeFiles/CMakeTmp

Run Build Command:"c:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe" "cmTryCompileExec3574417043.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=10.0"
Microsoft (R) Build Engine version 4.0.30319.17929

[Microsoft .NET Framework, version 4.0.30319.18063]

Copyright (C) Microsoft Corporation. All rights reserved.



Build started 26/04/2015 17:46:32.

Project "C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\cmTryCompileExec3574417043.vcxproj" on node 1 (default targets).

PrepareForBuild:

  Creating directory "cmTryCompileExec3574417043.dir\Debug\".

  Creating directory "C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\Debug\".

InitializeBuildStatus:

  Creating "cmTryCompileExec3574417043.dir\Debug\cmTryCompileExec3574417043.unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp :p recise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3574417043.dir\Debug\\" /Fd"cmTryCompileExec3574417043.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c

  Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

  Copyright (C) Microsoft Corporation.  All rights reserved.

 

  cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp :p recise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3574417043.dir\Debug\\" /Fd"cmTryCompileExec3574417043.dir\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c

 

  testCCompiler.c

ManifestResourceCompile:

  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec3574417043.dir\Debug\cmTryCompileExec3574417043.exe.embed.manifest.res" cmTryCompileExec3574417043.dir\Debug\cmTryCompileExec3574417043_manifest.rc

Link:

  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3574417043.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec3574417043.dir\Debug\cmTryCompileExec3574417043.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/SourcePython/Source.Python/src/Builds/Windows/csgo/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3574417043.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/SourcePython/Source.Python/src/Builds/Windows/csgo/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3574417043.lib" /MACHINE:X86 cmTryCompileExec3574417043.dir\Debug\cmTryCompileExec3574417043.exe.embed.manifest.res

  cmTryCompileExec3574417043.dir\Debug\testCCompiler.obj  /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\cmTryCompileExec3574417043.vcxproj]

Done Building Project "C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\cmTryCompileExec3574417043.vcxproj" (default targets) -- FAILED.



Build FAILED.



"C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\cmTryCompileExec3574417043.vcxproj" (default target) (1) ->

(Link target) ->

  LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\SourcePython\Source.Python\src\Builds\Windows\csgo\CMakeFiles\CMakeTmp\cmTryCompileExec3574417043.vcxproj]



    0 Warning(s)

    1 Error(s)



Time Elapsed 00:00:00.24



User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Apr 26, 2015 5:17 pm

Don't use debug, since it has been broken for some time.
Image

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 139 guests