Skip to content

Cannot compile - Linux Mint 18.2 #87

@MethodDan

Description

@MethodDan

I've read through many threads on compiling issues and can't find a problem the same as mine. I have a feeling it's something stupid. I am on Linux Mint 18.2 which is essentially Ubuntu 16.04 under the hood. I've also tried this on stock install of Ubuntu 16.04 with the same errors.

I follow the instructions to compile Untrunc after installing all the libav stuff with Apt. I get this error

track.cpp:51:32: fatal error: libavcodec/h264dec.h: No such file or directory

I have tried downloading and compiling libav 12.2 which compiles fine as per instructions. Then go back to compile Untrunc using L./libav-12.2/ in the appropriate places. Same error as above. It still can't find libavcodec/h264dec.h. I then tried again following the instructions in issue 78 and used libav 0.8.7 which again compiled fine. When I run this command from the main untrunc-master directory:

g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -I./libav-0.8.7 -L./libav-0.8.7/libavformat -lavformat -L./libav-0.8.7/libavcodec -lavcodec -L./libav-0.8.7/libavutil -lavutil -lpthread

I still get fatal error, cannot find h264dec.h

I looked in the folder where I compiled libav 0.8.7 and indeed there is no file h264dec.h in the libavcodec subfolder. So it's never going to find it.

Am I doing something really stupid here? I'm a pretty experienced Linux user and developer, or so I thought.

Many thanks in advance, sorry for long winded explanation :)

Dan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions