Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nw-gyp does not seem to support msvs 2015 #4033

Closed
flynx opened this issue Dec 4, 2015 · 11 comments
Closed

nw-gyp does not seem to support msvs 2015 #4033

flynx opened this issue Dec 4, 2015 · 11 comments
Labels

Comments

@flynx
Copy link

flynx commented Dec 4, 2015

When rebuilding via...

nw-gyp rebuild --msvs_version=2015 --target=0.12.3

nw-gup crashes with: KeyError: '2015'

node-gyp works fine using msvs2015
The module I'm rebuilding is sharp (npm install sharp)

Thanks!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@HanaHsu
Copy link

HanaHsu commented Dec 9, 2015

Same issue, can not rebuild module while assigning msvs_version as 2015

@Rob--
Copy link

Rob-- commented Dec 12, 2015

I'm in the process of developing a node add-on have found node-gyp and nw-gyp very difficult to work with - however I have found a fix (although not entirely ideal, it does work) for the following error (posting the generic error so other people with this issue that are busy searching for a fix can find it):

    versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2015'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1

The error will be thrown from a file called MSVSVersion.py that is most likely in the path (if the module was installed globally [npm install nw-gyp -g]) %appdata%\npm\node_modules\nw-gyp\gyp\pylib\gyp.


Follow the steps below, or just replace the contents of the file with the code below the steps.

Open MSVSVersion.py to edit it and do the following procedures:

At line 379, there should be a dict called version_map.
On the next line the value for auto will be defined.
Replace this line with 'auto': ('14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),.
Add '2015': ('14.0',), to the list, it should look something like this:

  version_map = {
    'auto': ('14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
    '2005': ('8.0',),
    '2005e': ('8.0',),
    '2008': ('9.0',),
    '2008e': ('9.0',),
    '2010': ('10.0',),
    '2010e': ('10.0',),
    '2012': ('11.0',),
    '2012e': ('11.0',),
    '2013': ('12.0',),
    '2013e': ('12.0',),
    '2015': ('14.0',),
    '2015e': ('14.0',),
  }

At line 320, there should be a dict called version_to_year.
Add '14.0': '2015', to the list, it should look something like this:

  version_to_year = {
    '8.0': '2005',
    '9.0': '2008',
    '10.0': '2010',
    '11.0': '2012',
    '12.0': '2013',
    '14.0': '2015',
  }

At line 207, there should be a dict called versions.
Add the following two objects to the list:

      '2015': VisualStudioVersion('2015',
                              'Visual Studio 2015',
                              solution_version='12.00',
                              project_version='14.0',
                              flat_sln=False,
                              uses_vcxproj=True,
                              path=path,
                              sdk_based=sdk_based,
                              default_toolset='v140'),
      '2015e': VisualStudioVersion('2015e',
                              'Visual Studio 2015',
                              solution_version='12.00',
                              project_version='14.0',
                              flat_sln=True,
                              uses_vcxproj=True,
                              path=path,
                              sdk_based=sdk_based,
                              default_toolset='v140'),

You can follow the steps above, or replace the contents of the file with:

# Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Handle version information related to Visual Stuio."""

import errno
import os
import re
import subprocess
import sys
import gyp
import glob


class VisualStudioVersion(object):
  """Information regarding a version of Visual Studio."""

  def __init__(self, short_name, description,
               solution_version, project_version, flat_sln, uses_vcxproj,
               path, sdk_based, default_toolset=None):
    self.short_name = short_name
    self.description = description
    self.solution_version = solution_version
    self.project_version = project_version
    self.flat_sln = flat_sln
    self.uses_vcxproj = uses_vcxproj
    self.path = path
    self.sdk_based = sdk_based
    self.default_toolset = default_toolset

  def ShortName(self):
    return self.short_name

  def Description(self):
    """Get the full description of the version."""
    return self.description

  def SolutionVersion(self):
    """Get the version number of the sln files."""
    return self.solution_version

  def ProjectVersion(self):
    """Get the version number of the vcproj or vcxproj files."""
    return self.project_version

  def FlatSolution(self):
    return self.flat_sln

  def UsesVcxproj(self):
    """Returns true if this version uses a vcxproj file."""
    return self.uses_vcxproj

  def ProjectExtension(self):
    """Returns the file extension for the project."""
    return self.uses_vcxproj and '.vcxproj' or '.vcproj'

  def Path(self):
    """Returns the path to Visual Studio installation."""
    return self.path

  def ToolPath(self, tool):
    """Returns the path to a given compiler tool. """
    return os.path.normpath(os.path.join(self.path, "VC/bin", tool))

  def DefaultToolset(self):
    """Returns the msbuild toolset version that will be used in the absence
    of a user override."""
    return self.default_toolset

  def SetupScript(self, target_arch):
    """Returns a command (with arguments) to be used to set up the
    environment."""
    # Check if we are running in the SDK command line environment and use
    # the setup script from the SDK if so. |target_arch| should be either
    # 'x86' or 'x64'.
    assert target_arch in ('x86', 'x64')
    sdk_dir = os.environ.get('WindowsSDKDir')
    if self.sdk_based and sdk_dir:
      return [os.path.normpath(os.path.join(sdk_dir, 'Bin/SetEnv.Cmd')),
              '/' + target_arch]
    else:
      # We don't use VC/vcvarsall.bat for x86 because vcvarsall calls
      # vcvars32, which it can only find if VS??COMNTOOLS is set, which it
      # isn't always.
      if target_arch == 'x86':
        if self.short_name == '2013' and (
            os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
            os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
          # VS2013 non-Express has a x64-x86 cross that we want to prefer.
          return [os.path.normpath(
             os.path.join(self.path, 'VC/vcvarsall.bat')), 'amd64_x86']
        # Otherwise, the standard x86 compiler.
        return [os.path.normpath(
          os.path.join(self.path, 'Common7/Tools/vsvars32.bat'))]
      else:
        assert target_arch == 'x64'
        arg = 'x86_amd64'
        if (os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
            os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
          # Use the 64-on-64 compiler if we can.
          arg = 'amd64'
        return [os.path.normpath(
            os.path.join(self.path, 'VC/vcvarsall.bat')), arg]


def _RegistryQueryBase(sysdir, key, value):
  """Use reg.exe to read a particular key.

  While ideally we might use the win32 module, we would like gyp to be
  python neutral, so for instance cygwin python lacks this module.

  Arguments:
    sysdir: The system subdirectory to attempt to launch reg.exe from.
    key: The registry key to read from.
    value: The particular value to read.
  Return:
    stdout from reg.exe, or None for failure.
  """
  # Skip if not on Windows or Python Win32 setup issue
  if sys.platform not in ('win32', 'cygwin'):
    return None
  # Setup params to pass to and attempt to launch reg.exe
  cmd = [os.path.join(os.environ.get('WINDIR', ''), sysdir, 'reg.exe'),
         'query', key]
  if value:
    cmd.extend(['/v', value])
  p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  # Obtain the stdout from reg.exe, reading to the end so p.returncode is valid
  # Note that the error text may be in [1] in some cases
  text = p.communicate()[0]
  # Check return code from reg.exe; officially 0==success and 1==error
  if p.returncode:
    return None
  return text


def _RegistryQuery(key, value=None):
  """Use reg.exe to read a particular key through _RegistryQueryBase.

  First tries to launch from %WinDir%\Sysnative to avoid WoW64 redirection. If
  that fails, it falls back to System32.  Sysnative is available on Vista and
  up and available on Windows Server 2003 and XP through KB patch 942589. Note
  that Sysnative will always fail if using 64-bit python due to it being a
  virtual directory and System32 will work correctly in the first place.

  KB 942589 - http://support.microsoft.com/kb/942589/en-us.

  Arguments:
    key: The registry key.
    value: The particular registry value to read (optional).
  Return:
    stdout from reg.exe, or None for failure.
  """
  text = None
  try:
    text = _RegistryQueryBase('Sysnative', key, value)
  except OSError, e:
    if e.errno == errno.ENOENT:
      text = _RegistryQueryBase('System32', key, value)
    else:
      raise
  return text


def _RegistryGetValue(key, value):
  """Use reg.exe to obtain the value of a registry key.

  Args:
    key: The registry key.
    value: The particular registry value to read.
  Return:
    contents of the registry key's value, or None on failure.
  """
  text = _RegistryQuery(key, value)
  if not text:
    return None
  # Extract value.
  match = re.search(r'REG_\w+\s+([^\r]+)\r\n', text)
  if not match:
    return None
  return match.group(1)


def _RegistryKeyExists(key):
  """Use reg.exe to see if a key exists.

  Args:
    key: The registry key to check.
  Return:
    True if the key exists
  """
  if not _RegistryQuery(key):
    return False
  return True


def _CreateVersion(name, path, sdk_based=False):
  """Sets up MSVS project generation.

  Setup is based off the GYP_MSVS_VERSION environment variable or whatever is
  autodetected if GYP_MSVS_VERSION is not explicitly specified. If a version is
  passed in that doesn't match a value in versions python will throw a error.
  """
  if path:
    path = os.path.normpath(path)
  versions = {
      '2015': VisualStudioVersion('2015',
                                  'Visual Studio 2015',
                                  solution_version='12.00',
                                  project_version='14.0',
                                  flat_sln=False,
                                  uses_vcxproj=True,
                                  path=path,
                                  sdk_based=sdk_based,
                                  default_toolset='v140'),
      '2015e': VisualStudioVersion('2015e',
                                  'Visual Studio 2015',
                                  solution_version='12.00',
                                  project_version='14.0',
                                  flat_sln=True,
                                  uses_vcxproj=True,
                                  path=path,
                                  sdk_based=sdk_based,
                                  default_toolset='v140'),
      '2013': VisualStudioVersion('2013',
                                  'Visual Studio 2013',
                                  solution_version='13.00',
                                  project_version='12.0',
                                  flat_sln=False,
                                  uses_vcxproj=True,
                                  path=path,
                                  sdk_based=sdk_based,
                                  default_toolset='v120'),
      '2013e': VisualStudioVersion('2013e',
                                   'Visual Studio 2013',
                                   solution_version='13.00',
                                   project_version='12.0',
                                   flat_sln=True,
                                   uses_vcxproj=True,
                                   path=path,
                                   sdk_based=sdk_based,
                                   default_toolset='v120'),
      '2012': VisualStudioVersion('2012',
                                  'Visual Studio 2012',
                                  solution_version='12.00',
                                  project_version='4.0',
                                  flat_sln=False,
                                  uses_vcxproj=True,
                                  path=path,
                                  sdk_based=sdk_based,
                                  default_toolset='v110'),
      '2012e': VisualStudioVersion('2012e',
                                   'Visual Studio 2012',
                                   solution_version='12.00',
                                   project_version='4.0',
                                   flat_sln=True,
                                   uses_vcxproj=True,
                                   path=path,
                                   sdk_based=sdk_based,
                                   default_toolset='v110'),
      '2010': VisualStudioVersion('2010',
                                  'Visual Studio 2010',
                                  solution_version='11.00',
                                  project_version='4.0',
                                  flat_sln=False,
                                  uses_vcxproj=True,
                                  path=path,
                                  sdk_based=sdk_based),
      '2010e': VisualStudioVersion('2010e',
                                   'Visual C++ Express 2010',
                                   solution_version='11.00',
                                   project_version='4.0',
                                   flat_sln=True,
                                   uses_vcxproj=True,
                                   path=path,
                                   sdk_based=sdk_based),
      '2008': VisualStudioVersion('2008',
                                  'Visual Studio 2008',
                                  solution_version='10.00',
                                  project_version='9.00',
                                  flat_sln=False,
                                  uses_vcxproj=False,
                                  path=path,
                                  sdk_based=sdk_based),
      '2008e': VisualStudioVersion('2008e',
                                   'Visual Studio 2008',
                                   solution_version='10.00',
                                   project_version='9.00',
                                   flat_sln=True,
                                   uses_vcxproj=False,
                                   path=path,
                                   sdk_based=sdk_based),
      '2005': VisualStudioVersion('2005',
                                  'Visual Studio 2005',
                                  solution_version='9.00',
                                  project_version='8.00',
                                  flat_sln=False,
                                  uses_vcxproj=False,
                                  path=path,
                                  sdk_based=sdk_based),
      '2005e': VisualStudioVersion('2005e',
                                   'Visual Studio 2005',
                                   solution_version='9.00',
                                   project_version='8.00',
                                   flat_sln=True,
                                   uses_vcxproj=False,
                                   path=path,
                                   sdk_based=sdk_based),
  }
  return versions[str(name)]


def _ConvertToCygpath(path):
  """Convert to cygwin path if we are using cygwin."""
  if sys.platform == 'cygwin':
    p = subprocess.Popen(['cygpath', path], stdout=subprocess.PIPE)
    path = p.communicate()[0].strip()
  return path


def _DetectVisualStudioVersions(versions_to_check, force_express):
  """Collect the list of installed visual studio versions.

  Returns:
    A list of visual studio versions installed in descending order of
    usage preference.
    Base this on the registry and a quick check if devenv.exe exists.
    Only versions 8-10 are considered.
    Possibilities are:
      2005(e) - Visual Studio 2005 (8)
      2008(e) - Visual Studio 2008 (9)
      2010(e) - Visual Studio 2010 (10)
      2012(e) - Visual Studio 2012 (11)
      2013(e) - Visual Studio 2013 (11)
      2015(e) - Visual Studio 2015 (14)
    Where (e) is e for express editions of MSVS and blank otherwise.
  """
  version_to_year = {
    '8.0': '2005',
    '9.0': '2008',
    '10.0': '2010',
    '11.0': '2012',
    '12.0': '2013',
    '14.0': '2015',
  }
  versions = []
  for version in versions_to_check:
    # Old method of searching for which VS version is installed
    # We don't use the 2010-encouraged-way because we also want to get the
    # path to the binaries, which it doesn't offer.
    keys = [r'HKLM\Software\Microsoft\VisualStudio\%s' % version,
            r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\%s' % version,
            r'HKLM\Software\Microsoft\VCExpress\%s' % version,
            r'HKLM\Software\Wow6432Node\Microsoft\VCExpress\%s' % version]
    for index in range(len(keys)):
      path = _RegistryGetValue(keys[index], 'InstallDir')
      if not path:
        continue
      path = _ConvertToCygpath(path)
      # Check for full.
      full_path = os.path.join(path, 'devenv.exe')
      express_path = os.path.join(path, '*express.exe')
      if not force_express and os.path.exists(full_path):
        # Add this one.
        versions.append(_CreateVersion(version_to_year[version],
            os.path.join(path, '..', '..')))
      # Check for express.
      elif glob.glob(express_path):
        # Add this one.
        versions.append(_CreateVersion(version_to_year[version] + 'e',
            os.path.join(path, '..', '..')))

    # The old method above does not work when only SDK is installed.
    keys = [r'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
            r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7']
    for index in range(len(keys)):
      path = _RegistryGetValue(keys[index], version)
      if not path:
        continue
      path = _ConvertToCygpath(path)
      versions.append(_CreateVersion(version_to_year[version] + 'e',
          os.path.join(path, '..'), sdk_based=True))

  return versions


def SelectVisualStudioVersion(version='auto'):
  """Select which version of Visual Studio projects to generate.

  Arguments:
    version: Hook to allow caller to force a particular version (vs auto).
  Returns:
    An object representing a visual studio project format version.
  """
  # In auto mode, check environment variable for override.
  if version == 'auto':
    version = os.environ.get('GYP_MSVS_VERSION', 'auto')
  version_map = {
    'auto': ('14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
    '2005': ('8.0',),
    '2005e': ('8.0',),
    '2008': ('9.0',),
    '2008e': ('9.0',),
    '2010': ('10.0',),
    '2010e': ('10.0',),
    '2012': ('11.0',),
    '2012e': ('11.0',),
    '2013': ('12.0',),
    '2013e': ('12.0',),
    '2015': ('14.0',),
    '2015e': ('14.0',),
  }
  override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH')
  if override_path:
    msvs_version = os.environ.get('GYP_MSVS_VERSION')
    if not msvs_version:
      raise ValueError('GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be '
                       'set to a particular version (e.g. 2010e).')
    return _CreateVersion(msvs_version, override_path, sdk_based=True)
  version = str(version)
  versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
  if not versions:
    if version == 'auto':
      # Default to 2005 if we couldn't find anything
      return _CreateVersion('2005', None)
    else:
      return _CreateVersion(version, None)
  return versions[0]

@flynx
Copy link
Author

flynx commented Dec 27, 2015

@Rob-- nope, still breaks for me...

compilation of pipeline.cc fails with:

..\src\pipeline.cc(303): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(303): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(307): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(307): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(399): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(399): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(400): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(400): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(520): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(520): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(523): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(523): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(691): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(691): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(692): error C2589: '(': illegal token on right side of '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]
..\src\pipeline.cc(692): error C2059: syntax error: '::' [L:\work\ImageGrid\ui (gen4)\node_modules\sharp\build\sharp.vcxproj]

P.S. had to re-patch nw-gyp to also support the community edition MSVS (2015e)...
P.P.S. sorry still haven't enough time to dive into this myself.

Merry Christmas and a Happy New Year to everyone!

Thanks!

@Rob--
Copy link

Rob-- commented Dec 27, 2015

Just updated my comment and added 2015e to version_map.
2015e was already included in versions, not sure why I didn't include it in the version map dict.

Happy holidays to you too!

@eugenesvk
Copy link

@Rob-- thank you very much for your detailed walkthrough!

@Rob--
Copy link

Rob-- commented Apr 12, 2016

@eugenesvk No problem! Happy to help :)

@Christywl
Copy link
Contributor

Is this issue still reproduced on the latest nwjs build?

@flynx
Copy link
Author

flynx commented May 11, 2017

On 0.22.3 the build goes through...

Though comparing to node-gyp, nw-gyp throws a bunch of "unknown pragma" warnings in node_buffer.cc....

I'm building sharp (http://sharp.dimens.io/en/stable/) on Win10, x64....

nw-gyp rebuild --msvs_version=2015 --target=0.22.3 --arch=x64 > build.txt

(log: build.txt )

@ghost
Copy link

ghost commented May 18, 2017

Or just nw-gyp rebuild --msvs_version=2017 --target=0.22.3 --arch=x64 > build.txt

@Christywl
Copy link
Contributor

It works fine for me on Windows 10:

  1. npm install sharp
  2. cd node_modules/sharp; nw-gyp rebuild --msvs_version=2015 --target=0.26.0 --arch=x64
C:\nwjs\bugs\4033\node_modules\sharp>nw-gyp rebuild --msvs_version=2015 --target=0.26.0 --arch=x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp http GET http://node-webkit.s3.amazonaws.com/v0.26.0/nw-headers-v0.26.0.tar.gz
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.26.0/nw-headers-v0.26.0.tar.gz
gyp http GET http://node-webkit.s3.amazonaws.com/v0.26.0/nw.lib
gyp http GET http://node-webkit.s3.amazonaws.com/v0.26.0/x64/nw.lib
gyp http GET http://node-webkit.s3.amazonaws.com/v0.26.0/node.lib
gyp http GET http://node-webkit.s3.amazonaws.com/v0.26.0/x64/node.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.26.0/x64/node.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.26.0/node.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.26.0/nw.lib
gyp http 200 http://node-webkit.s3.amazonaws.com/v0.26.0/x64/nw.lib
gyp info spawn C:\src\depot_tools\python.BAT
gyp info spawn args [ 'C:\\Users\\WebQA\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info �[0mspawn args   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\nwjs\\bugs\\4033\\node_modules\\sharp\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\WebQA\\AppData\\Roaming\\npm\\node_modules\\nw-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\WebQA\\.nw-gyp\\0.26.0\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\WebQA\\.nw-gyp\\0.26.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\WebQA\\AppData\\Roaming\\npm\\node_modules\\nw-gyp',
gyp info spawn args   '-Dnode_lib_file=nw.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\nwjs\\bugs\\4033\\node_modules\\sharp',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '-Dv13=1',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\nwjs\\bugs\\4033\\node_modules\\sharp\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  VError.cpp
  VInterpolate.cpp
  VImage.cpp
  win_delay_load_hook.cc
     Creating library C:\nwjs\bugs\4033\node_modules\sharp\build\Release\libvips-cpp.lib and object C:\nwjs\bugs\4033\n
  ode_modules\sharp\build\Release\libvips-cpp.exp
  Generating code
  Finished generating code
  libvips-cpp.vcxproj -> C:\nwjs\bugs\4033\node_modules\sharp\build\Release\\libvips-cpp.dll
  libvips-cpp.vcxproj -> C:\nwjs\bugs\4033\node_modules\sharp\build\Release\libvips-cpp.pdb (Full PDB)
  common.cc
  metadata.cc
  operations.cc
  pipeline.cc
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\metadata.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\metadata.cc)
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\common.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\common.cc)
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\pipeline.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\pipeline.cc)
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\operations.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\operations.cc)
  sharp.cc
  utilities.cc
  win_delay_load_hook.cc
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\sharp.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\sharp.cc)
c:\nwjs\bugs\4033\node_modules\nan\nan_maybe_43_inl.h(112): warning C4996: 'v8::Object::ForceSet': was declared depreca
ted (compiling source file ..\src\utilities.cc) [C:\nwjs\bugs\4033\node_modules\sharp\build\sharp.vcxproj]
  C:\Users\WebQA\.nw-gyp\0.26.0\deps\v8\include\v8.h(3117): note: see declaration of 'v8::Object::ForceSet' (compiling
  source file ..\src\utilities.cc)
     Creating library C:\nwjs\bugs\4033\node_modules\sharp\build\Release\sharp.lib and object C:\nwjs\bugs\4033\node_mo
  dules\sharp\build\Release\sharp.exp
  Generating code
  Finished generating code
  sharp.vcxproj -> C:\nwjs\bugs\4033\node_modules\sharp\build\Release\\sharp.node
  sharp.vcxproj -> C:\nwjs\bugs\4033\node_modules\sharp\build\Release\sharp.pdb (Full PDB)
  Copying vendor/lib/libcroco-0.6-3.dll to build/Release\libcroco-0.6-3.dll
          1 file(s) copied.
  Copying vendor/lib/libfreetype-6.dll to build/Release\libfreetype-6.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-2.dll to build/Release\libcairo-2.dll
          1 file(s) copied.
  Copying vendor/lib/libexif-12.dll to build/Release\libexif-12.dll
          1 file(s) copied.
  Copying vendor/lib/libgdk_pixbuf-2.0-0.dll to build/Release\libgdk_pixbuf-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libtiff-5.dll to build/Release\libtiff-5.dll
          1 file(s) copied.
  Copying vendor/lib/liblcms2-2.dll to build/Release\liblcms2-2.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-gobject-2.dll to build/Release\libcairo-gobject-2.dll
          1 file(s) copied.
  Copying vendor/lib/libgif-7.dll to build/Release\libgif-7.dll
          1 file(s) copied.
  Copying vendor/lib/libxml2-2.dll to build/Release\libxml2-2.dll
          1 file(s) copied.
  Copying vendor/lib/libiconv-2.dll to build/Release\libiconv-2.dll
          1 file(s) copied.
  Copying vendor/lib/libjpeg-62.dll to build/Release\libjpeg-62.dll
          1 file(s) copied.
  Copying vendor/lib/libglib-2.0-0.dll to build/Release\libglib-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libfftw3-3.dll to build/Release\libfftw3-3.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-script-interpreter-2.dll to build/Release\libcairo-script-interpreter-2.dll
          1 file(s) copied.
  Copying vendor/lib/libgmodule-2.0-0.dll to build/Release\libgmodule-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgthread-2.0-0.dll to build/Release\libgthread-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libfontconfig-1.dll to build/Release\libfontconfig-1.dll
          1 file(s) copied.
  Copying vendor/lib/librsvg-2-2.dll to build/Release\librsvg-2-2.dll
          1 file(s) copied.
  Copying vendor/lib/GNU.Gettext.dll to build/Release\GNU.Gettext.dll
          1 file(s) copied.
  Copying vendor/lib/zlib1.dll to build/Release\zlib1.dll
          1 file(s) copied.
  Copying vendor/lib/libstdc++-6.dll to build/Release\libstdc++-6.dll
          1 file(s) copied.
  Copying vendor/lib/libasprintf-0.dll to build/Release\libasprintf-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgobject-2.0-0.dll to build/Release\libgobject-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libwebp-7.dll to build/Release\libwebp-7.dll
          1 file(s) copied.
  Copying vendor/lib/libgio-2.0-0.dll to build/Release\libgio-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgcc_s_seh-1.dll to build/Release\libgcc_s_seh-1.dll
          1 file(s) copied.
  Copying vendor/lib/libquadmath-0.dll to build/Release\libquadmath-0.dll
          1 file(s) copied.
  Copying vendor/lib/libintl-8.dll to build/Release\libintl-8.dll
          1 file(s) copied.
  Copying vendor/lib/libpng16-16.dll to build/Release\libpng16-16.dll
          1 file(s) copied.
  Copying vendor/lib/libpango-1.0-0.dll to build/Release\libpango-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libpixman-1-0.dll to build/Release\libpixman-1-0.dll
          1 file(s) copied.
  Copying vendor/lib/libcharset-1.dll to build/Release\libcharset-1.dll
          1 file(s) copied.
  Copying vendor/lib/libpangocairo-1.0-0.dll to build/Release\libpangocairo-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libvips-42.dll to build/Release\libvips-42.dll
          1 file(s) copied.
  Copying vendor/lib/libgsf-1-114.dll to build/Release\libgsf-1-114.dll
          1 file(s) copied.
  Copying vendor/lib/libpangowin32-1.0-0.dll to build/Release\libpangowin32-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libffi-6.dll to build/Release\libffi-6.dll
          1 file(s) copied.
  Copying vendor/lib/libexpat-1.dll to build/Release\libexpat-1.dll
          1 file(s) copied.
  Copying vendor/lib/libssp-0.dll to build/Release\libssp-0.dll
          1 file(s) copied.
gyp info ok

@rogerwang
Copy link
Member

close as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants