Comments (2)
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.
@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)
- Using node native Module parse failed: Unexpected character
- Unavailable transitive dependencies (@types/keyv) due to dependency on old version of got HOT 1
- node-canvas error: node-gyp failed to rebuild. Error C2429: language feature 'terse static assert' requires compiler flag '/std:c++17' HOT 5
- Sysroot downloader doesn't support electron 19+ HOT 1
- Cannot use alternative CXX Library with Electron v20+
- extraResources does not work as expected, nothing is copied HOT 1
- How can I tell electron-rebuild to ignore my library? HOT 4
- How to rebuild .node file without existing in a node_module?
- Error related to `.forge-meta` file HOT 1
- GCC_PREFIX_HEADER & GCC_PRECOMPILE_PREFIX_HEADER incompatible with Electron 20
- error rebuild canvas on Windows HOT 3
- Rebuilding node-canvas with electron-rebuild fails HOT 4
- Could not detect abi for version 22.3.3 and runtime electron. Updating "node-abi" might help solve this issue if it is a new release of electron at getAbi HOT 8
- no file node_modules/.bin/electron-rebuild in 3.2.11 HOT 1
- Error when rebuilding node-java package HOT 1
- Python 2 died 1,259 days ago on 1/1/2020. Why still use it? HOT 1
- Cross Compile on Linux
- Help using rebuild to package node-sqlite3 to use with Electron HOT 2
- ERR_REQUIRE_ESM HOT 1
- Follow OS conventions for storing cache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rebuild.