OptimalBits / navcodec

nodejs extension for libavcodec
151 stars 19 forks source link

Fails to compile on Ubuntu 13.10 #13

Closed danscan closed 11 years ago

danscan commented 11 years ago

NPM logged the following when it failed to compile navcodec on Ubuntu 13.10. Recommendations / resolution would be extremely appreciated!

npm http GET https://registry.npmjs.org/navcodec
npm http 304 https://registry.npmjs.org/navcodec
Nothing to clean (project not configured)
Setting srcdir to                        : /home/transcoder/transcoder-worker/node_modules/navcodec 
Setting blddir to                        : /home/transcoder/transcoder-worker/node_modules/navcodec/build 
Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : not found 
Checking for node prefix                 : ok /usr 
Checking for libavcodec                  : yes 
Checking for libavformat                 : yes 
Checking for libswscale                  : yes 
Checking for libavutil                   : yes 
'configure' finished successfully (0.084s)
Waf: Entering directory `/home/transcoder/transcoder-worker/node_modules/navcodec/build'
[ 1/15] cxx: src/navcodec.cpp -> build/Release/src/navcodec_1.o
[ 2/15] cxx: src/navcodeccontext.cpp -> build/Release/src/navcodeccontext_1.o
[ 3/15] cxx: src/navframe.cpp -> build/Release/src/navframe_1.o
[ 4/15] cxx: src/navformat.cpp -> build/Release/src/navformat_1.o
../src/navformat.cpp: In function ‘int decodeFrame(AVFormatContext*, unsigned int, StreamFrame*, Baton*)’:
../src/navformat.cpp:110:33: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
../src/navformat.cpp:110:33: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
[ 5/15] cxx: src/navstream.cpp -> build/Release/src/navstream_1.o
[ 6/15] cxx: src/navoutformat.cpp -> build/Release/src/navoutformat_1.o
[ 7/15] cxx: src/navpixformat.cpp -> build/Release/src/navpixformat_1.o
../src/navstream.cpp: In static member function ‘static v8::Handle<v8::Value> NAVStream::New(AVStream*)’:
../src/navstream.cpp:70:15: error: ‘AVStream’ has no member named ‘r_frame_rate’
../src/navstream.cpp:73:5: error: ‘AVStream’ has no member named ‘r_frame_rate’
../src/navstream.cpp:74:5: error: ‘AVStream’ has no member named ‘r_frame_rate’
../src/navoutformat.cpp: In function ‘void dumpFrame(AVCodecContext*, AVFrame*)’:
../src/navoutformat.cpp:38:35: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘int64_t {aka long int}’ [-Wformat]
../src/navoutformat.cpp:40:31: warning: ‘AVFrame::type’ is deprecated (declared at /usr/local/include/libavutil/frame.h:246) [-Wdeprecated-declarations]
../src/navoutformat.cpp:40:31: warning: ‘AVFrame::type’ is deprecated (declared at /usr/local/include/libavutil/frame.h:246) [-Wdeprecated-declarations]
../src/navoutformat.cpp: In static member function ‘static v8::Handle<v8::Value> NAVOutputFormat::AddStream(const v8::Arguments&)’:
../src/navoutformat.cpp:238:3: error: ‘CodecID’ was not declared in this scope
../src/navoutformat.cpp:238:11: error: expected ‘;’ before ‘codec_id’
../src/navoutformat.cpp:262:5: error: ‘codec_id’ was not declared in this scope
../src/navoutformat.cpp:266:5: error: ‘codec_id’ was not declared in this scope
../src/navoutformat.cpp:269:3: error: ‘codec_id’ was not declared in this scope
../src/navoutformat.cpp: In member function ‘const char* NAVOutputFormat::EncodeVideoFrame(AVStream*, AVFrame*, int*)’:
../src/navoutformat.cpp:442:82: error: ‘avcodec_encode_video’ was not declared in this scope
../src/navoutformat.cpp: In static member function ‘static v8::Handle<v8::Value> NAVOutputFormat::End(const v8::Arguments&)’:
../src/navoutformat.cpp:622:27: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
../src/navoutformat.cpp:622:27: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
../src/navoutformat.cpp:624:20: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
../src/navoutformat.cpp:624:20: warning: ‘AVFrame::owner’ is deprecated (declared at /usr/local/include/libavutil/frame.h:299) [-Wdeprecated-declarations]
Waf: Leaving directory `/home/transcoder/transcoder-worker/node_modules/navcodec/build'
Build failed:
 -> task failed (err #1): 
    {task: cxx navstream.cpp -> navstream_1.o}
 -> task failed (err #1): 
    {task: cxx navoutformat.cpp -> navoutformat_1.o}
npm ERR! error installing navcodec@0.3.4

npm ERR! navcodec@0.3.4 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the navcodec@0.3.4 preinstall 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-waf clean || (exit 0); node-waf configure build
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! 
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "node" "/usr/bin/npm" "install" "navcodec"
npm ERR! cwd /home/transcoder/transcoder-worker
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message navcodec@0.3.4 preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! message `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/transcoder/transcoder-worker/npm-debug.log
npm not ok
manast commented 11 years ago

Is this a dupe of #14?

danscan commented 11 years ago

No. I provided logs. 

— Dan Scanlon CEO at Present 267.373.8883

On Tue, Nov 5, 2013 at 3:52 AM, Manuel Astudillo notifications@github.com wrote:

Is this a dupe of #14?

Reply to this email directly or view it on GitHub: https://github.com/OptimalBits/navcodec/issues/13#issuecomment-27755572

danscan commented 11 years ago

Uninstalled libav and compiled 9.10 from source. It compiled fine!