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

hdf5_home_win does not get set #102

Closed
mheppner opened this issue Jan 25, 2019 · 2 comments
Closed

hdf5_home_win does not get set #102

mheppner opened this issue Jan 25, 2019 · 2 comments

Comments

@mheppner
Copy link

I'm not very familiar with building native node modules, so I'm not sure if this is even an issue with this project. I was able to build this without any issues on Linux, but it took a bit of effort on Windows. I think the hdf5_home_win flag isn't getting set.

I tried setting it with --hdf5_home_win="C:\Program Files\HDF_Group\HDF5\1.10.4", and also with npm config set hdf5_home_win "C:\Program Files\HDF_Group\HDF5\1.10.4". Neither worked. Downloading this package with npm pack hdf5, untar'ing it, then changing the variable value "hdf5_home_win%" in binding.gyp, still didn't work. I finally got it to build after replacing all of the <(hdf5_home_win) placeholders in binding.gyp with the full path.

Windows 10
node v10.11.0
npm 6.4.1
windows-build-tools 5.1.0
HDF5 1.10.4

@mheppner
Copy link
Author

I reinstalled HDF5 to C:\hdf5 and the npm config set hdf5_home_win config and --hdf5_home_win flag both seem to let the package build. I'm guessing it's because of the space in "Program Files"? Could this be documented somehow?

@rimmartin
Copy link
Collaborator

I'll experiment with spaces; not sure what gyp on windows expects. Thanks

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