Giter VIP home page Giter VIP logo

Comments (2)

anaisbetts avatar anaisbetts commented on July 28, 2024

You can't use VS2015 to build anything Electron right now, install VS2013 (you don't need to uninstall VS2015, just have VS2013) and set the environment variable GYP_MSVS_VERSION=2013

from rebuild.

vasumahesh1 avatar vasumahesh1 commented on July 28, 2024

@paulcbetts I have the variable set GYP_MSVS_VERSION to 2013. Have both VS 2015 and VS 2013. But electron-rebuild seems to be using 2015 version.

I am trying to rebuild pdfium. Here is the log I am getting on rebuild:

PS> Get-ChildItem Env:GYP_MSVS_VERSION

Name                           Value
----                           -----
GYP_MSVS_VERSION               2013

.\node_modules\.bin\electron-rebuild .

  color.cpp
  console.cpp
  Consts.cpp
  Document.cpp
  event.cpp
  Field.cpp
  global.cpp
  Icon.cpp
  JS_Context.cpp
  JS_EventHandler.cpp
  JS_GlobalData.cpp
  JS_Object.cpp
  JS_Runtime.cpp
  JS_Value.cpp
  PublicMethods.cpp
  report.cpp
  resource.cpp
  util.cpp
..\..\..\third_party\pdfium\fpdfsdk\src\javascript\JS_Runtime.cpp(103): error C2660: 'v8::Isolate::New' : function does
not take 0 arguments [P:\tempProject\node_modules\pdfium\build\third_party\pdfium\javascript
vcxproj]
..\..\..\third_party\pdfium\fpdfsdk\src\javascript\PublicMethods.cpp(229): warning C4244: 'argument' : conversion from
__int64' to 'FX_STRSIZE', possible loss of data [P:\tempProject\node_modules\pdfium\build\th
rd_party\pdfium\javascript.vcxproj]
..\..\..\third_party\pdfium\fpdfsdk\src\javascript\PublicMethods.cpp(250): warning C4244: 'argument' : conversion from
__int64' to 'FX_STRSIZE', possible loss of data [P:\tempProject\node_modules\pdfium\build\th
rd_party\pdfium\javascript.vcxproj]
  fxjs_v8.cpp
  win_delay_load_hook.c
  jsapi.vcxproj -> P:\tempProject\node_modules\pdfium\build\Release\\jsapi.lib
  PWL_Button.cpp
  PWL_Caret.cpp
  PWL_ComboBox.cpp
  PWL_Edit.cpp
  PWL_EditCtrl.cpp
  PWL_FontMap.cpp
  PWL_Icon.cpp
  PWL_IconList.cpp
  PWL_Label.cpp
  PWL_ListBox.cpp
  PWL_ListCtrl.cpp
  PWL_Note.cpp
  PWL_ScrollBar.cpp
  PWL_Signature.cpp
  PWL_SpecialButton.cpp
  PWL_Utils.cpp
  PWL_Wnd.cpp
  win_delay_load_hook.c
  pdfwindow.vcxproj -> P:\tempProject\node_modules\pdfium\build\Release\\pdfwindow.lib

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (P:\tempProject\node_modules\electron-rebuild\node
modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "P:\\tempProject\\node_modules\\electron-rebuild\\node_modules\\n
m\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd P:\tempProject\node_modules\pdfium
gyp ERR! node -v v0.12.10
gyp ERR! node-gyp -v v3.3.0
gyp ERR! not ok

C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe Seems to be using 14.0 ? Shouldn't VS2013 use 12.0 ? I have two folders in MSBuild one is 14.0 other is 12.0

Pretty sure I have VS 2013 Installed correctly as node-pdfium requires VS2013 for a stable build and I was facing a lot of issues with VS2015, Yesterday downloaded the Community edition of 2013 and I was able to npm install it.

Any help would be awesome.. Been stuck on this issue for a long time :(

from rebuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.