Closed pavelety closed 4 years ago
src/track.cpp:335:58: note: no known conversion for argument 1 from 'const std::tuple<int, double, int>' to 'tuple_t& {aka std::tuple<int, double, int>&}'
Hmm.. Maybe adding const
to the lambda parameters helps? https://github.com/anthwlock/untrunc/blob/8ea50b280cf955ae613e7996da8058e123e08a4b/src/track.cpp#L335
src/track.cpp:32:32: fatal error: libavcodec/avcodec.h: No such file or directory
Where do the packages you meantion install libavcodec/avcodec.h
to?
Can you try this guide?
@pavelety So does it compile now?
Dear @anthwlock , how should I exactly change this line? I'm not very familiar with C++.
ffmpeg and libs were previously installed from yum repo here:
/usr/include/ffmpeg/libavcodec/avcodec.h
But when I specify make FF_VER=3.3.9
it downloads separate version in the current folder:
/opt/untrunc-master/ffmpeg-3.3.9/libavcodec/avcodec.h
how should I exactly
before:
sort(perm.begin(), perm.end(), [](tuple_t& a, tuple_t& b) {
after:
sort(perm.begin(), perm.end(), [](const tuple_t& a, const tuple_t& b) {
ffmpeg and libs were previously installed from yum repo here: /usr/include/ffmpeg/libavcodec/avcodec.h
This looks wrong. I think it should be /usr/include/libavcodec/avcodec.h
.
Can you do a symlink and then check if the compilation without the FF_VER
argument works?
I have a serious question: Why do you use a linux distro where even installing crucial packages like ffmpeg
is a pain (not in it's official repos)?
@pavelety
Any progress?
Maybe it is more elegant to export CPATH=/usr/include/ffmpeg/
instead of symlinking all the libav* directories.
Hi, guys! I was really amused that I found your maintained fork, because we've been using main untrunc repo build for few years and it worked not bad (on CentOS 6 and then on CentOS 7), but it's always good to have even more. Thanks for a great job! I have an error during the build I'm trying to build your fork using these steps:
Found some ready libav binaries:
cd untrunc-master
Simplemake
instantly fails with:Didn't find any instructions to include lib paths, but found that I need to change Makefile script to make it work on CentOS 7.
nano Makefile
Removed wget attribute--show-progress
. It’s not supported in CentOS 7 Thenmake FF_VER=3.3.9
And it compiled pretty long with a few warnings (I think, it's not related). And completely failed on this:Complete logs
Please provide some further steps to fix the build and I will send you complete instructions to install this on CentOS (to add this in your readme).