How to access nmake and visual studio tools?

Lilith River's Avatar

Lilith River

14 Jul, 2014 02:14 PM

I've tried this:

%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"" amd64

But get this response: The specified configuration type is missing. The tools for the configuration might not be installed.

I need to build libwebp: https://ci.appveyor.com/project/nathanaeljones/libwebp-net

  1. Support Staff 1 Posted by Feodor Fitsner on 14 Jul, 2014 02:55 PM

    Feodor Fitsner's Avatar

    x64 environment comes with Windows SDK 7.0.

    Use SetEnv.bat for setting up environment:

    "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
    

    Example: https://ci.appveyor.com/project/appvyr/appveyor-bot-0904-0540

  2. 2 Posted by Lilith River on 14 Jul, 2014 03:17 PM

    Lilith River's Avatar

    Is there a corresponding appveyor.yml file? Encoding quotes and spaces properly seems to be a minefield.

    Slash-encoding spaces fails:

    C:\Program\ Files\Microsoft\ SDKs\Windows\v7.1\Bin\SetEnv.cmd /x64
    -> 'C:\Program\' is not recognized as an internal or external command, operable program or batch file.

    AppVeyor crashes and gives a 404 for the build page if you forget to double-backslash slashes:
    "\"C:\Program Files\Microsoft\ SDKs\Windows\v7.1\Bin\SetEnv.cmd\" /x64" -> AppVeyor 404.

    "\"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd\" /x64" -> Works, but.. my eyes! Surely there's a cleaner way?

  3. Support Staff 3 Posted by Feodor Fitsner on 14 Jul, 2014 03:23 PM

    Feodor Fitsner's Avatar

    In appveyor.yml:

    install:
      - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
    

    single quotes - it's a string without escapes.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:46 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac