Skip to content

"libavcodec/avcodec.h" file not found #26

@iamsebastian

Description

@iamsebastian

Hej,

I can not install the package on two of five OSX systems.

$ npm i navcodec
info trying registry request attempt 1 at 17:15:44
http GET https://registry.npmjs.org/navcodec
http 200 https://registry.npmjs.org/navcodec
info trying registry request attempt 1 at 17:15:49
http GET https://registry.npmjs.org/underscore
info trying registry request attempt 1 at 17:15:49
http GET https://registry.npmjs.org/async
info trying registry request attempt 1 at 17:15:49
http GET https://registry.npmjs.org/when
info trying registry request attempt 1 at 17:15:49
http GET https://registry.npmjs.org/printf
http 200 https://registry.npmjs.org/printf
http 200 https://registry.npmjs.org/when
http 200 https://registry.npmjs.org/async
http 200 https://registry.npmjs.org/underscore
/
> [email protected] install /Users/sblei/bitbucket/cr/api/CrowdRadioApi3.0/node_modules/navcodec
> node-gyp rebuild

2015-02-09 17:15:51.631 xcodebuild[57010:83910] [MT] PluginLoading: Required plug-in compatibility UUID C4A681B0-4A26-480E-93EC-1218098B9AA0 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2015-02-09 17:15:51.632 xcodebuild[57010:83910] Failed to load plugin at: /Users/sblei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin, skipping.  Reason for failure: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
  CXX(target) Release/obj.target/navcodec/src/navcodec.o
In file included from ../src/navcodec.cpp:22:
In file included from ../src/navcodec.h:22:
In file included from ../src/navformat.h:25:
../src/navstream.h:29:10: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
        ^
1 error generated.
make: *** [Release/obj.target/navcodec/src/navcodec.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack    at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack    at ChildProcess.emit (events.js:98:17)
gyp ERR! stack    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sblei/bitbucket/cr/api/CrowdRadioApi3.0/node_modules/navcodec
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the navcodec package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!    node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!    npm owner ls navcodec
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "i" "navcodec"
npm ERR! cwd /Users/sblei/bitbucket/cr/api/CrowdRadioApi3.0
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

I'm on OSX 10.10.1.
I tried node 0.10.31, 0.10.36, 0.12.0, different npm versions, different ffmpeg versions (via homebrew or compiled libav from sources), but no change. I'm always stuck on the same failure.

The three macs, where the installation could be completed, are Mac Minis, while the two systems, where the installation could not be completed are MBPs (Mid 2008 and one from 2012).

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