Cmake is Unable to Configure Project for Visual Studios 10 amd64

前端 未结 2 714
庸人自扰
庸人自扰 2020-12-18 05:44

I am trying to get CMAKE to create a project for msvc 10 express edition for x64 architecture. I have both MSVC 2010 Express and Windows SDK 7.1 installed.

If I s

相关标签:
2条回答
  • 2020-12-18 06:20

    I had similar issues on Win7, and was getting the same error - The C compiler "cl.exe" is not able to compile a simple test program.

    The solution that worked for me :

    1. On Windows Donot run cmake on the cygwin terminal.
    2. Run it from the command prompt, AND also ensure that you have admin rights, In windows 7 you can start command prompt as administrator by going to Start->All programs->Accessories-> (Right Click on Command Prompt) and Select "Run as administrator"

    Then run cmake <your source> Worked like a charm for me.

    0 讨论(0)
  • 2020-12-18 06:31

    I found that my x64 compilers were destroyed by installing SP 1. Try this update to restore them :

    http://www.microsoft.com/en-us/download/details.aspx?id=4422

    0 讨论(0)
提交回复
热议问题