untrunc icon indicating copy to clipboard operation
untrunc copied to clipboard

Debian 10 build failed

Open gr-butler opened this issue 6 years ago • 2 comments

wget https://github.com/ponchio/untrunc/archive/master.zip --2019-11-14 20:52:19-- https://github.com/ponchio/untrunc/archive/master.zip Resolving github.com (github.com)... 140.82.118.4 Connecting to github.com (github.com)|140.82.118.4|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/ponchio/untrunc/zip/master [following] --2019-11-14 20:52:19-- https://codeload.github.com/ponchio/untrunc/zip/master Resolving codeload.github.com (codeload.github.com)... 140.82.114.10 Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘master.zip’

master.zip [ <=> ] 42.33K 246KB/s in 0.2s

2019-11-14 20:52:20 (246 KB/s) - ‘master.zip’ saved [43344]

root@gdserver:/home/gary/Downloads/hubsan# unzip master.zip Archive: master.zip ad311d5c4147bc5ccfd5c1ce43c019e18a80590d creating: untrunc-master/ extracting: untrunc-master/.gitignore inflating: untrunc-master/.travis.yml inflating: untrunc-master/AP_AtomDefinitions.h inflating: untrunc-master/COPYING inflating: untrunc-master/Dockerfile inflating: untrunc-master/README.md inflating: untrunc-master/atom.cpp inflating: untrunc-master/atom.h inflating: untrunc-master/file.cpp inflating: untrunc-master/file.h inflating: untrunc-master/main.cpp inflating: untrunc-master/mp4.cpp inflating: untrunc-master/mp4.h inflating: untrunc-master/osx_endian.h inflating: untrunc-master/track.cpp inflating: untrunc-master/track.h inflating: untrunc-master/untrunc.pro root@gdserver:/home/gary/Downloads/hubsan# ls hubsan_record_197011_8444.mp4 master.zip untrunc-master root@gdserver:/home/gary/Downloads/hubsan# cd untrunc-master/ root@gdserver:/home/gary/Downloads/hubsan/untrunc-master# ls AP_AtomDefinitions.h atom.cpp atom.h COPYING Dockerfile file.cpp file.h main.cpp mp4.cpp mp4.h osx_endian.h README.md track.cpp track.h untrunc.pro root@gdserver:/home/gary/Downloads/hubsan/untrunc-master# g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -L/usr/local/lib -lavformat -lavcodec -lavutil track.cpp:57:11: fatal error: config.h: No such file or directory

include <config.h>

       ^~~~~~~~~~

compilation terminated. mp4.cpp: In member function ‘void Mp4::open(std::__cxx11::string)’: mp4.cpp:212:19: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] av_register_all(); ^ In file included from mp4.cpp:44: /usr/include/x86_64-linux-gnu/libavformat/avformat.h:2043:6: note: declared here void av_register_all(void); ^~~~~~~~~~~~~~~ mp4.cpp:212:19: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations] av_register_all(); ^ In file included from mp4.cpp:44: /usr/include/x86_64-linux-gnu/libavformat/avformat.h:2043:6: note: declared here void av_register_all(void); ^~~~~~~~~~~~~~~ mp4.cpp: In member function ‘bool Mp4::parseTracks()’: mp4.cpp:568:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] track.codec.context = context->streams[i]->codec; ^~~~~ In file included from mp4.cpp:44: /usr/include/x86_64-linux-gnu/libavformat/avformat.h:878:21: note: declared here AVCodecContext *codec; ^~~~~

mp4.cpp:568:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
   track.codec.context = context->streams[i]->codec;
                                              ^~~~~
In file included from mp4.cpp:44:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:878:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
mp4.cpp:568:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
   track.codec.context = context->streams[i]->codec;
                                              ^~~~~
In file included from mp4.cpp:44:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:878:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
root@gdserver:/home/gary/Downloads/hubsan/untrunc-master#

And the markdown 3-ticks for code isn't working.

gr-butler avatar Nov 14 '19 20:11 gr-butler

Salut pointer2null,

having the same issue on Ubuntu 18.04.3 It seems that the line before should be changed:

// #if (LIBAVCODEC_VERSION_MAJOR != 56)    // Ubuntu 16.04
#if (LIBAVCODEC_VERSION_MAJOR != 57)    // Ubuntu 18.04, I have 57

I then have the issue a few lines later on #include <libavcodec/h264dec.h> => gives me a "No such file or directory" which seems to be true, I can't find h264dec.h in /usr/include/x86_64-linux-gnu/libavcodec

Can someone help me find h264dec.h on Ubuntu 18.04.3, please ? (of course I have installed libav... as described in the readme)

Thanks in advance. Philippe

kienner-philippe avatar Nov 16 '19 18:11 kienner-philippe

Hi, you might want to try using my fork, as its much easier to build!

anthwlock avatar Nov 16 '19 19:11 anthwlock