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

can't compile, nan.h: No such file or directory #23

Closed
masterkain opened this issue Jul 15, 2019 · 1 comment
Closed

can't compile, nan.h: No such file or directory #23

masterkain opened this issue Jul 15, 2019 · 1 comment

Comments

@masterkain
Copy link
Contributor

masterkain commented Jul 15, 2019

ubuntu 16.04
node v10.16.0
npm 6.9.0

I tried also #22 but I get the same error.
I tried also updating deps to no aval, same error also with node 12

taglib seems to compile properly.

maybe related cmake-js/cmake-js#39

log extract:

npm install taglib2
...

-- Installing: /home/ubuntu/node_modules/taglib2/taglib/lib/pkgconfig/taglib_c.pc
[ 81%] Completed 'taglib'
[ 81%] Built target taglib
Scanning dependencies of target taglib2
[ 90%] Building CXX object CMakeFiles/taglib2.dir/src/taglib2.cc.o
/home/ubuntu/node_modules/taglib2/src/taglib2.cc:5:17: fatal error: nan.h: No such file or directory
compilation terminated.
CMakeFiles/taglib2.dir/build.make:62: recipe for target 'CMakeFiles/taglib2.dir/src/taglib2.cc.o' failed
make[2]: *** [CMakeFiles/taglib2.dir/src/taglib2.cc.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/taglib2.dir/all' failed
make[1]: *** [CMakeFiles/taglib2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
ERR! OMG Process terminated: 2
@masterkain
Copy link
Contributor Author

cmake issues, might happen when node_modules is in a non standard location (outside project root)

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

1 participant