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

fail to build source code #690

Closed
royforu opened this issue Nov 14, 2018 · 1 comment
Closed

fail to build source code #690

royforu opened this issue Nov 14, 2018 · 1 comment

Comments

@royforu
Copy link

royforu commented Nov 14, 2018

hello everyone,
Sorry to bother. When I build source code, I encounter one problem. can not find file: openssl/rsa.h
C:\Users\royhsu\ipfs-desktop>npm start

[email protected] start C:\Users\royhsu\ipfs-desktop
electron-forge start

√ Checking your system
√ Locating Application
× Preparing native dependencies: 6 / 7

An unhandled error has occurred inside Forge:
�b���ѨM��פ��@���ظm�@�ӱM�סC�Y�n�ҥΥ���ظm�A�зs�W "/m" �ѼơC
ursaNative.cc
win_delay_load_hook.cc
c:\users\royhsu\ipfs-desktop\node_modules\ursa-optional\src\ursanative.h(13): fatal error C1083: �L�
k�}�ҥ]�t�ɮ�: 'openssl/rsa.h': No such file or directory (���b�sĶ��l�{���� ..\src\ursaNative.cc) [C:
Users\royhsu\ipfs-desktop\node_modules\ursa-optional\build\ursaNative.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\B in\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\royhsu\ipfs-desktop\node_modules\node-gyp\lib\bu
ild.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\royhsu\ipfs-desktop\node_module
s\node-gyp\bin\node-gyp.js" "rebuild" "--target=2.0.7" "--arch=x64" "--dist-url=https://atom.io/d
ownload/electron" "--build-from-source"
gyp ERR! cwd C:\Users\royhsu\ipfs-desktop\node_modules\ursa-optional
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

my environment:
os: win7
nodejs version: 10.13.0
npm version: 6.4.1
openssl version: 1.0.2p
also use npm install --global windows-build-tools
Did I miss something?
Thanks for everybody's help~~

@hacdias
Copy link
Member

hacdias commented Nov 14, 2018

To build on windows, you need windows-build-tools. I can assure you it will work since it's the platform I use 😄

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

No branches or pull requests

2 participants