Building Source Python

All other Source.Python topics and issues.
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

Building Source Python

Postby Predz » Thu Mar 28, 2013 10:12 pm

Hey,

I have been writing a few test scripts for SP without a way to test them. So my question is as said in the title. How do I build SP for use on my Server?

I have Visual Studio installed already just dont know how to use it.

Thanks
Predz
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Thu Mar 28, 2013 10:20 pm

Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

Postby Predz » Fri Mar 29, 2013 9:19 am

Thank You for the Link however I now am getting Errors :S

Code: Select all

The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "C:/Program Files/Microsoft Visual Studio
  10.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Users/Rich/Desktop/Build/CMakeFiles/CMakeTmp

 

  Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
  cmTryCompileExec3151032846.vcxproj /p:Configuration=Debug
  /p:VisualStudioVersion=10.0

  Microsoft (R) Build Engine version 4.0.30319.17929

  [Microsoft .NET Framework, version 4.0.30319.17929]

  Copyright (C) Microsoft Corporation.  All rights reserved.

 

  Build started 29/03/2013 09:16:42.

  Project
  "C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\cmTryCompileExec3151032846.vcxproj"
  on node 1 (default targets).

  PrepareForBuild:

    Creating directory "cmTryCompileExec3151032846.dir\Debug\".
    Creating directory "C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\Debug\".

  InitializeBuildStatus:

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

  ClCompile:

    C:\Program Files\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"cmTryCompileExec3151032846.dir\Debug\\" /Fd"C:/Users/Rich/Desktop/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3151032846.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
    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"cmTryCompileExec3151032846.dir\Debug\\" /Fd"C:/Users/Rich/Desktop/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3151032846.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
   
    testCCompiler.c

  ManifestResourceCompile:

    C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec3151032846.dir\Debug\cmTryCompileExec3151032846.exe.embed.manifest.res" cmTryCompileExec3151032846.dir\Debug\cmTryCompileExec3151032846_manifest.rc

  Link:

    C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3151032846.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:"cmTryCompileExec3151032846.dir\Debug\cmTryCompileExec3151032846.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/Users/Rich/Desktop/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3151032846.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/Rich/Desktop/Build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3151032846.lib" /MACHINE:X86 cmTryCompileExec3151032846.dir\Debug\cmTryCompileExec3151032846.exe.embed.manifest.res
    cmTryCompileExec3151032846.dir\Debug\testCCompiler.obj  /machine:X86 /debug

  LINK : fatal error LNK1123: failure during conversion to COFF: file invalid
  or corrupt
  [C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\cmTryCompileExec3151032846.vcxproj]


  Done Building Project
  "C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\cmTryCompileExec3151032846.vcxproj"
  (default targets) -- FAILED.

 

  Build FAILED.

 

 
  "C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\cmTryCompileExec3151032846.vcxproj"
  (default target) (1) ->

  (Link target) ->

    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\Users\Rich\Desktop\Build\CMakeFiles\CMakeTmp\cmTryCompileExec3151032846.vcxproj]

 

      0 Warning(s)
      1 Error(s)

 

  Time Elapsed 00:00:00.85

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
 


Configuring incomplete, errors occurred!


If someone could help would be nice, and thank you in advance. :)
your-name-here
Developer
Posts: 168
Joined: Sat Jul 07, 2012 1:58 am

Postby your-name-here » Fri Mar 29, 2013 2:22 pm

You're erroring out in the makefile generation stage. That is some of the strangest stuff I have ever seen.

CMake tries to compile a test program to see if you have a valid and working compiler. It looks like your compiler has not passed this test. What version of Visual Studio are you using? Is it express? If not, did you get the Service Pack 1 for it?

EDIT: Please see if the following thread answers your question:
Link

Basically, go to wherever cl.exe is located. Then right click on it and set it to run as an administrator.
Predz
Senior Member
Posts: 158
Joined: Wed Aug 08, 2012 9:05 pm
Location: Bristol, United Kingdom

Postby Predz » Fri Mar 29, 2013 4:09 pm

Set the CL.exe to run as Admin and it worked ;)

Thank You
Predz

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 146 guests