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

Windows build instructions #5

Open
DrFridolin opened this issue May 15, 2018 · 3 comments
Open

Windows build instructions #5

DrFridolin opened this issue May 15, 2018 · 3 comments

Comments

@DrFridolin
Copy link

DrFridolin commented May 15, 2018

Hello,

What are the instructions for building and running the server on a windows machine? The build.sh script does not seem to work either on Windows 7 or Windows 10. I have tried with various Unix shells but could not successfully build it. I always get the following error on npm install stage:

.> sstk@0.5.3 preinstall c:\Users\ausumezbas\Documents\ONR_3DModeling\ScanNet\sstk
.> ./getdata.sh

'.' is not recognized as an internal or external command, operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sstk@0.5.3 preinstall: ./getdata.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sstk@0.5.3 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ausumezbas\AppData\Roaming\npm-cache_logs\2018-05-15T15_34_35_420Z-debug.log

Thanks!

@msavva
Copy link
Contributor

msavva commented May 20, 2018

Please try the updates on the dev branch, which enable building under windows, and let us know if you encounter any issues. We will merge these changes into master for an upcoming release.

Note that:

  • You will need to run in a bash shell with administrator privileges (necessary because creation of symlinks requires privileges in windows) -- we tested using the git bash shell.
  • If you encounter build errors, you may need to set the path to an installation of Python 2.7 using: npm config set python C:\path\to\python27\python.exe

@thunguyenphuoc
Copy link

@msavva: I got it working but I had to set the path to Python in UNIX notation (/c/path/to/python27/python.exe) in the git bash shell.

Also maybe it is worth mentioning somewhere in the readme file that it only works with Python 2.7? I wasted some time trying to make it work with Python 3 before I saw this post :)

@AmandaHuang66
Copy link

Sorry what do you mean by updates on the dev branch? I simply couldn't find it.

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