Skip to content

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

Description

@masterkain

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions