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

Build instructions #1

Open
deece opened this issue Jan 2, 2019 · 6 comments
Open

Build instructions #1

deece opened this issue Jan 2, 2019 · 6 comments

Comments

@deece
Copy link

deece commented Jan 2, 2019

Add build instructions to README

@deece
Copy link
Author

deece commented Jan 2, 2019

Looks like it needs electron-builder

@zaped212
Copy link

@deece, has there been any progress on getting build instructions setup?
There are some changes I would like to propose and will need the build instructions for it.

@deece
Copy link
Author

deece commented Feb 21, 2019

No sorry, i have had time to look into this. If you know how to, please send a PR.

@Krzewo
Copy link

Krzewo commented Mar 2, 2019

Hey guys!
I've recently started using deepnest and I've had some issues with it but I will discuss it seperately.
Can you supply me with build instructions for windows?

@dsiee
Copy link

dsiee commented Jul 15, 2019

I have been trying to build this project without success. Thus far I have done:
Install NodeJS
Install electron
Download Clone
open PowerShell as admin in root of prog folder
npm install -g node-gyp
npm install --global --production windows-build-tools

(this required adding powershell to the path Path is an environment variable which you can set in "advanced system settings" (Control Panel -> System -> Advanced System Settings -> Environment Variables / Or press "Windows key" + "Pause key" -> Advanced System Settings -> Environment Variables ))

Now I am getting errors from the boost libraries when running npm install in the directory of my clone:

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
addon.cc
minkowski.cc
win_delay_load_hook.cc
c:\deepnest-master\minkowski.h(3): fatal error C1083: Cannot open include file: 'boost/polygon/polygon.hpp': No such fi
le or directory (compiling source file ..\minkowski.cc) [C:\Deepnest-master\build\addon.vcxproj]
c:\deepnest-master\minkowski.h(3): fatal error C1083: Cannot open include file: 'boost/polygon/polygon.hpp': No such fi
le or directory (compiling source file ..\addon.cc) [C:\Deepnest-master\build\addon.vcxproj]

This has really stumped me thus far. I do not come from a background related to all this node and buildtools magic.\ :)

I'm keen for any input on how to proceed and thought i would put this up as a starting point in case someone else wants to jump in from here.

@dsiee
Copy link

dsiee commented Aug 5, 2019

From a closed issue by @blackmd on building the project:

Okay, for anyone else having trouble with this, this worked for me

make sure to use node v8.16.0 which is compatible with the node version in the electron version this app uses
rebuild the native bindings
copy the compiled bindings to where the app looks for them

nvm use v8.16.0
npx node-gyp rebuild
cp ./build/Release/addon.node ./minkowski/Release/addon.node

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

4 participants