Updated per your suggestions. It’s now detecting everything during the configure, and then fails during the compilation of an ffmpeg component.
Scanning dependencies of target djvCineonPlugin
Scanning dependencies of target djvFFmpegPlugin
[ 10%] Building CXX object plugins/djvCineonPlugin/CMakeFiles/djvCineonPlugin.dir/djvCineon.cpp.o
[ 10%] Building CXX object plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/djvFFmpeg.cpp.o
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp: In destructor ‘djvFFmpeg::Packet::~Packet()’:
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:93:5: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&_p);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:93:5: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&_p);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:93:23: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&_p);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4650:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
[ 10%] Building CXX object plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/djvFFmpegLoad.cpp.o
[ 10%] Building CXX object plugins/djvCineonPlugin/CMakeFiles/djvCineonPlugin.dir/djvCineonHeader.cpp.o
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp: In member function ‘virtual void djvFFmpegLoad::open(const djvFileInfo&, djvImageIoInfo&)’:
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:101:43: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
if (_avFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:101:43: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
if (_avFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:101:43: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
if (_avFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:122:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext * avCodecContext = avStream->codec;
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:122:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext * avCodecContext = avStream->codec;
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:122:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
AVCodecContext * avCodecContext = avStream->codec;
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:50:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:135:9: warning: ‘int avcodec_copy_context(AVCodecContext*, const AVCodecContext*)’ is deprecated [-Wdeprecated-declarations]
r = avcodec_copy_context(_avCodecContext, avCodecContext);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:135:9: warning: ‘int avcodec_copy_context(AVCodecContext*, const AVCodecContext*)’ is deprecated [-Wdeprecated-declarations]
r = avcodec_copy_context(_avCodecContext, avCodecContext);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:135:61: warning: ‘int avcodec_copy_context(AVCodecContext*, const AVCodecContext*)’ is deprecated [-Wdeprecated-declarations]
r = avcodec_copy_context(_avCodecContext, avCodecContext);
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4412:5: note: declared here
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src);
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:167:9: error: ‘PIX_FMT_RGBA’ was not declared in this scope
PIX_FMT_RGBA,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp: In member function ‘virtual void djvFFmpegLoad::read(djvImage&, const djvImageIoFrameInfo&)’:
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:253:5: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
avpicture_fill(
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5638:5: note: declared here
int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:253:5: warning: ‘int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)’ is deprecated [-Wdeprecated-declarations]
avpicture_fill(
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5638:5: note: declared here
int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:256:9: error: ‘PIX_FMT_RGBA’ was not declared in this scope
PIX_FMT_RGBA,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp: In member function ‘bool djvFFmpegLoad::readFrame(int64_t&)’:
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:396:17: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
if (avcodec_decode_video2(
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4993:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:396:17: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
if (avcodec_decode_video2(
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4993:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:400:26: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
&packet()) <= 0)
^
In file included from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4993:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:407:21: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
pts = _avFrame->pkt_pts;
^
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:38:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavutil/frame.h:302:13: note: declared here
int64_t pkt_pts;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:407:21: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
pts = _avFrame->pkt_pts;
^
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:38:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavutil/frame.h:302:13: note: declared here
int64_t pkt_pts;
^
/home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:407:21: warning: ‘AVFrame::pkt_pts’ is deprecated [-Wdeprecated-declarations]
pts = _avFrame->pkt_pts;
^
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:38:0,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpeg.h:49,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.h:37,
from /home/mattias/djv/parts/cmake-build/src/plugins/djvFFmpegPlugin/djvFFmpegLoad.cpp:34:
/usr/include/x86_64-linux-gnu/libavutil/frame.h:302:13: note: declared here
int64_t pkt_pts;
^
plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/build.make:100: recipe for target 'plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/djvFFmpegLoad.cpp.o' failed
make[2]: *** [plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/djvFFmpegLoad.cpp.o] Error 1
CMakeFiles/Makefile2:1854: recipe for target 'plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/all' failed
make[1]: *** [plugins/djvFFmpegPlugin/CMakeFiles/djvFFmpegPlugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Building CXX object plugins/djvCineonPlugin/CMakeFiles/djvCineonPlugin.dir/djvCineonLoad.cpp.o
[ 10%] Building CXX object plugins/djvCineonPlugin/CMakeFiles/djvCineonPlugin.dir/djvCineonPlugin.cpp.o
[ 10%] Building CXX object plugins/djvCineonPlugin/CMakeFiles/djvCineonPlugin.dir/djvCineonSave.cpp.o
[ 10%] Linking CXX shared module ../../build/lib/libdjvCineonPlugin.so
[ 10%] Built target djvCineonPlugin
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.34', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
run(prog_name='snapcraft')
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/__init__.py", line 110, in run
ctx.forward(lifecyclecli.commands['snap'])
File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
return self.invoke(cmd, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 132, in snap
project_options, directory=directory, output=output)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 349, in snap
execute('prime', project_options)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 130, in execute
_Executor(config, project_options).run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 225, in run
self._run_step(step, part, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py", line 262, in _run_step
getattr(part, step)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 330, in build
self.plugin.build()
File "/usr/lib/python3/dist-packages/snapcraft/plugins/cmake.py", line 82, in build
self.make(env=env)
File "/usr/lib/python3/dist-packages/snapcraft/plugins/make.py", line 107, in make
self.run(command + ['-j{}'.format(self.parallel_build_count)], env=env)
File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line 202, in run
return common.run(cmd, cwd=cwd, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/internal/common.py", line 63, in run
subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh', '/tmp/tmp2_5k9rpe', 'make', '-j2']' returned non-zero exit status 2