Compilation issue with Debian 7

Anything and everything to do with DCP-o-matic.
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Compilation issue with Debian 7

Post by jimboy »

Firstly, thank you for the great tool. Because I am a gluten for punishment I am trying to compile this from source, I've downloaded all the dependencies but when I build there is an error early on. I am using the 1.76 code tarball I downloaded from the website (although I also get the same error with the master code I downloaded from GitHub

Full log below:


james@debian:~/dcpomatic-1.76.0$ ./waf configure
Setting top to : /home/james/dcpomatic-1.76.0
Setting out to : /home/james/dcpomatic-1.76.0/build
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'gtk+-2.0' : yes
Checking for 'libcxml' >= 0.08 : yes
Checking for 'libxml++-2.6' : yes
Checking for 'libcurl' : yes
Checking for libquickmail : yes
Checking for boost library >= 1.45 : yes
Checking for boost threading library : yes
Checking for boost filesystem library : yes
Checking for boost datetime library : yes
Checking for boost signals2 library : yes
Checking for 'libavformat' : yes
Checking for 'libavfilter' : yes
Checking for 'libavcodec' : yes
Checking for 'libavutil' : yes
Checking for 'libswscale' : yes
Checking for 'libswresample' : yes
Checking for 'libpostproc' : yes
Checking for 'libdcp' >= 0.97.0 : yes
Checking for 'libopenjpeg' >= 1.5.0 : yes
Checking for 'libopenjpeg' <= 1.5.2 : yes
Checking for library libssh : yes
Checking for 'sndfile' : yes
Checking for 'glib-2.0' : yes
Checking for 'Magick++-config' : yes
Checking for 'libzip' : yes
Checking for g_format_size () : yes
Checking for program msgfmt : /usr/bin/msgfmt
Checking for wxWidgets : yes
'configure' finished successfully (6.098s)


james@debian:~/dcpomatic-1.76.0$ ./waf build
Waf: Entering directory `/home/james/dcpomatic-1.76.0/build'
Writing version information to src/lib/version.cc
[ 1/184] cxx: src/lib/analyse_audio_job.cc -> build/src/lib/analyse_audio_job.cc.1.o
[ 2/184] cxx: src/lib/audio_analysis.cc -> build/src/lib/audio_analysis.cc.1.o
../src/lib/audio_analysis.cc: In member function ‘void AudioAnalysis::write(boost::filesystem3::path)’:
../src/lib/audio_analysis.cc:152:36: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<std::vector<AudioPoint> >::size_type {aka unsigned int}’ [-Wformat]
../src/lib/audio_analysis.cc:154:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<AudioPoint>::size_type {aka unsigned int}’ [-Wformat]
[ 3/184] cxx: src/lib/audio_buffers.cc -> build/src/lib/audio_buffers.cc.1.o
[ 4/184] cxx: src/lib/audio_content.cc -> build/src/lib/audio_content.cc.1.o
In file included from ../src/lib/audio_content.cc:26:0:
../src/lib/exceptions.h:230:35: error: ‘AVPixelFormat’ has not been declared
Waf: Leaving directory `/home/james/dcpomatic-1.76.0/build'
Build failed
-> task in 'libdcpomatic' failed (exit status 1):
{task 3068583852L: cxx audio_content.cc -> audio_content.cc.1.o}
['/usr/bin/g++', '-D__STDC_CONSTANT_MACROS', '-D__STDC_LIMIT_MACROS', '-msse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes', '-Wextra', '-Wno-unused-result', '-D_FILE_OFFSET_BITS=64', '-O2', '-DDCPOMATIC_POSIX', '-DPOSIX_LOCALE_PREFIX="/usr/local/share/locale"', '-DPOSIX_ICON_PREFIX="/usr/local/share/dcpomatic"', '-mfpmath=sse', '-DDCPOMATIC_LINUX', '-DDCPOMATIC_IMAGE_MAGICK', '-fPIC', '-pthread', '-pthread', '-pthread', '-fno-strict-aliasing', '-fPIE', '-fstack-protector', '-pthread', '-I/usr/local/include', '-I/home/james/dcpomatic-1.76.0/build/src/lib/include', '-I/home/james/dcpomatic-1.76.0/src/lib/include', '-I/usr/include/GraphicsMagick', '-I/usr/include/sigc++-2.0', '-I/usr/lib/i386-linux-gnu/sigc++-2.0/include', '-I/usr/include/libxml2', '-I/usr/include/glibmm-2.4', '-I/usr/lib/i386-linux-gnu/glibmm-2.4/include', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/libxml++-2.6', '-I/usr/lib/libxml++-2.6/include', '-I/usr/include/xmlsec1', '-I/usr/lib/libzip/include', '-DHAVE_GTK=1', '-DHAVE_CXML=1', '-DHAVE_XMLPP=1', '-DHAVE_CURL=1', '-DHAVE_AVFORMAT=1', '-DHAVE_AVFILTER=1', '-DHAVE_AVCODEC=1', '-DHAVE_AVUTIL=1', '-DHAVE_SWSCALE=1', '-DHAVE_SWRESAMPLE=1', '-DHAVE_POSTPROC=1', '-DHAVE_DCP=1', '-DHAVE_OPENJPEG=1', '-DHAVE_LIBOPENJPEG=1', '-DHAVE_SNDFILE=1', '-DHAVE_GLIB=1', '-DHAVE_MAGICK=1', '-DHAVE_ZIP=1', '-DHAVE_G_FORMAT_SIZE=1', '-DLOCALEDIR="/usr/local/share/locale"', '-DDATADIR="/usr/local/share"', '-DHAVE_WXWIDGETS=1', '-DHAVE_=1', '-D_FORTIFY_SOURCE=2', '-DXMLSEC_CRYPTO="openssl"', '-D__XMLSEC_FUNCTION__=__FUNCTION__', '-DXMLSEC_NO_GOST=1', '-DXMLSEC_NO_XKMS=1', '-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1', '-DXMLSEC_OPENSSL_098=1', '-DXMLSEC_CRYPTO_OPENSSL=1', '../src/lib/audio_content.cc', '-c', '-o', 'src/lib/audio_content.cc.1.o']
carl
Site Admin
Posts: 2548
Joined: Thu Nov 14, 2013 2:53 pm

Re: Compilation issue with Debian 7

Post by carl »

Hi,

Are you using libav as packaged by Debian? DCP-o-matic wants FFmpeg, so you will need to build that from source; something like

Code: Select all

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
./configure --enable-gpl && make && make install
should do it.
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Re: Compilation issue with Debian 7

Post by jimboy »

carl wrote:Hi,

Are you using libav as packaged by Debian? .
No, I'm building from source. Looks like this is an incompatibility between different versions of libav/ffmpeg. The ./waf confgigre script forces me to use libavutil 51.73.101, which is ffmpeg 10.0.10. If I install the very latest ffmpeg (2.4.3 / libavutil 54.7.100) after running ./waf configure I can get past this incompatibility but then my compilation fails elesehwere.

[ 33/184] cxx: src/lib/image_examiner.cc -> build/src/lib/image_examiner.cc.1.o
../src/lib/image_examiner.cc: In constructor ‘ImageExaminer::ImageExaminer(boost::shared_ptr<const Film>, boost::shared_ptr<const ImageContent>, boost::shared_ptr<Job>)’:
../src/lib/image_examiner.cc:42:18: error: ‘MagickCore’ is not a namespace-name
../src/lib/image_examiner.cc:42:28: error: expected namespace-name before ‘;’ token
Waf: Leaving directory `/home/james/dcpomatic-1.76.0/build'
Build failed
-> task in 'libdcpomatic' failed (exit status 1):
{task 3068958124L: cxx image_examiner.cc -> image_examiner.cc.1.o}
['/usr/bin/g++', '-D__STDC_CONSTANT_MACROS', '-D__STDC_LIMIT_MACROS', '-msse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes', '-Wextra', '-Wno-unused-result', '-D_FILE_OFFSET_BITS=64', '-O2', '-DDCPOMATIC_POSIX', '-DPOSIX_LOCALE_PREFIX="/usr/local/share/locale"', '-DPOSIX_ICON_PREFIX="/usr/local/share/dcpomatic"', '-mfpmath=sse', '-DDCPOMATIC_LINUX', '-DDCPOMATIC_IMAGE_MAGICK', '-fPIC', '-pthread', '-pthread', '-pthread', '-fno-strict-aliasing', '-fPIE', '-fstack-protector', '-pthread', '-I/usr/local/include', '-I/home/james/dcpomatic-1.76.0/build/src/lib/include', '-I/home/james/dcpomatic-1.76.0/src/lib/include', '-I/usr/include/GraphicsMagick', '-I/usr/include/sigc++-2.0', '-I/usr/lib/i386-linux-gnu/sigc++-2.0/include', '-I/usr/include/libxml2', '-I/usr/include/glibmm-2.4', '-I/usr/lib/i386-linux-gnu/glibmm-2.4/include', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/libxml++-2.6', '-I/usr/lib/libxml++-2.6/include', '-I/usr/include/xmlsec1', '-I/usr/lib/libzip/include', '-DHAVE_GTK=1', '-DHAVE_CXML=1', '-DHAVE_XMLPP=1', '-DHAVE_CURL=1', '-DHAVE_AVFORMAT=1', '-DHAVE_AVFILTER=1', '-DHAVE_AVCODEC=1', '-DHAVE_AVUTIL=1', '-DHAVE_SWSCALE=1', '-DHAVE_SWRESAMPLE=1', '-DHAVE_POSTPROC=1', '-DHAVE_DCP=1', '-DHAVE_OPENJPEG=1', '-DHAVE_LIBOPENJPEG=1', '-DHAVE_SNDFILE=1', '-DHAVE_GLIB=1', '-DHAVE_MAGICK=1', '-DHAVE_ZIP=1', '-DHAVE_G_FORMAT_SIZE=1', '-DLOCALEDIR="/usr/local/share/locale"', '-DDATADIR="/usr/local/share"', '-DHAVE_WXWIDGETS=1', '-DHAVE_=1', '-D_FORTIFY_SOURCE=2', '-DXMLSEC_CRYPTO="openssl"', '-D__XMLSEC_FUNCTION__=__FUNCTION__', '-DXMLSEC_NO_GOST=1', '-DXMLSEC_NO_XKMS=1', '-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1', '-DXMLSEC_OPENSSL_098=1', '-DXMLSEC_CRYPTO_OPENSSL=1', '../src/lib/image_examiner.cc', '-c', '-o', 'src/lib/image_examiner.cc.1.o']


Which makes me think I have incompatible versions of ffmpeg and imageMagick [and possibly others].
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Re: Compilation issue with Debian 7

Post by jimboy »

Hi Carl, just wondered whether you had any thoughts on what I am trying to do. Thank you
carl
Site Admin
Posts: 2548
Joined: Thu Nov 14, 2013 2:53 pm

Re: Compilation issue with Debian 7

Post by carl »

Hi there, sorry, I forgot about this... I think this is due to confusion between GraphicsMagick and ImageMagick. I'm not quite sure what is going on in Debian with these packages at the moment. It would be interesting if you load the "wscript" file into a text editor and then delete this line:

Code: Select all

        conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_IMAGE_MAGICK')
then re-configure and build and see if it's any better.
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Re: Compilation issue with Debian 7

Post by jimboy »

Is there a better / different distribution of Linux I should be using?

I removed the line and now the compilation stops here instead:

Writing version information to src/lib/version.cc
[ 1/184] cxx: src/lib/analyse_audio_job.cc -> build/src/lib/analyse_audio_job.cc.1.o
[ 2/184] cxx: src/lib/audio_analysis.cc -> build/src/lib/audio_analysis.cc.1.o
../src/lib/audio_analysis.cc: In member function ‘void AudioAnalysis::write(boost::filesystem3::path)’:
../src/lib/audio_analysis.cc:152:36: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<std::vector<AudioPoint> >::size_type {aka unsigned int}’ [-Wformat]
../src/lib/audio_analysis.cc:154:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<AudioPoint>::size_type {aka unsigned int}’ [-Wformat]
[ 3/184] cxx: src/lib/audio_buffers.cc -> build/src/lib/audio_buffers.cc.1.o
[ 4/184] cxx: src/lib/audio_content.cc -> build/src/lib/audio_content.cc.1.o
[ 5/184] cxx: src/lib/audio_decoder.cc -> build/src/lib/audio_decoder.cc.1.o
[ 6/184] cxx: src/lib/audio_mapping.cc -> build/src/lib/audio_mapping.cc.1.o
[ 7/184] cxx: src/lib/cinema.cc -> build/src/lib/cinema.cc.1.o
[ 8/184] cxx: src/lib/colour_conversion.cc -> build/src/lib/colour_conversion.cc.1.o
[ 9/184] cxx: src/lib/config.cc -> build/src/lib/config.cc.1.o
[ 10/184] cxx: src/lib/content.cc -> build/src/lib/content.cc.1.o
[ 11/184] cxx: src/lib/content_factory.cc -> build/src/lib/content_factory.cc.1.o
[ 12/184] cxx: src/lib/cross.cc -> build/src/lib/cross.cc.1.o
[ 13/184] cxx: src/lib/dcp_content_type.cc -> build/src/lib/dcp_content_type.cc.1.o
[ 14/184] cxx: src/lib/dcp_video_frame.cc -> build/src/lib/dcp_video_frame.cc.1.o
[ 15/184] cxx: src/lib/decoder.cc -> build/src/lib/decoder.cc.1.o
[ 16/184] cxx: src/lib/dolby_cp750.cc -> build/src/lib/dolby_cp750.cc.1.o
[ 17/184] cxx: src/lib/encoder.cc -> build/src/lib/encoder.cc.1.o
[ 18/184] cxx: src/lib/examine_content_job.cc -> build/src/lib/examine_content_job.cc.1.o
[ 19/184] cxx: src/lib/exceptions.cc -> build/src/lib/exceptions.cc.1.o
[ 20/184] cxx: src/lib/file_group.cc -> build/src/lib/file_group.cc.1.o
[ 21/184] cxx: src/lib/filter_graph.cc -> build/src/lib/filter_graph.cc.1.o
[ 22/184] cxx: src/lib/ffmpeg.cc -> build/src/lib/ffmpeg.cc.1.o
[ 23/184] cxx: src/lib/ffmpeg_content.cc -> build/src/lib/ffmpeg_content.cc.1.o
[ 24/184] cxx: src/lib/ffmpeg_decoder.cc -> build/src/lib/ffmpeg_decoder.cc.1.o
[ 25/184] cxx: src/lib/ffmpeg_examiner.cc -> build/src/lib/ffmpeg_examiner.cc.1.o
[ 26/184] cxx: src/lib/film.cc -> build/src/lib/film.cc.1.o
[ 27/184] cxx: src/lib/filter.cc -> build/src/lib/filter.cc.1.o
[ 28/184] cxx: src/lib/frame_rate_change.cc -> build/src/lib/frame_rate_change.cc.1.o
[ 29/184] cxx: src/lib/internet.cc -> build/src/lib/internet.cc.1.o
[ 30/184] cxx: src/lib/image.cc -> build/src/lib/image.cc.1.o
[ 31/184] cxx: src/lib/image_content.cc -> build/src/lib/image_content.cc.1.o
[ 32/184] cxx: src/lib/image_decoder.cc -> build/src/lib/image_decoder.cc.1.o
[ 33/184] cxx: src/lib/image_examiner.cc -> build/src/lib/image_examiner.cc.1.o
[ 34/184] cxx: src/lib/image_proxy.cc -> build/src/lib/image_proxy.cc.1.o
../src/lib/image_proxy.cc: In member function ‘virtual boost::shared_ptr<Image> MagickImageProxy::image() const’:
../src/lib/image_proxy.cc:162:19: error: ‘MagickLib’ is not a namespace-name
../src/lib/image_proxy.cc:162:28: error: expected namespace-name before ‘;’ token
../src/lib/image_proxy.cc:164:52: error: ‘CharPixel’ was not declared in this scope
../src/lib/image_proxy.cc:164:52: note: suggested alternatives:
In file included from /usr/local/include/ImageMagick-6/magick/pixel.h:22:0,
from /usr/local/include/ImageMagick-6/magick/color.h:21,
from /usr/local/include/ImageMagick-6/magick/image.h:21,
from /usr/local/include/ImageMagick-6/magick/draw.h:22,
from /usr/local/include/ImageMagick-6/magick/fx.h:21,
from /usr/local/include/ImageMagick-6/magick/accelerate.h:21,
from /usr/local/include/ImageMagick-6/magick/MagickCore.h:73,
from /usr/local/include/ImageMagick-6/Magick++/Include.h:41,
from /usr/local/include/ImageMagick-6/Magick++.h:9,
from ../src/lib/image_proxy.cc:20:
/usr/local/include/ImageMagick-6/magick/constitute.h:28:3: note: ‘MagickCore::CharPixel’
/usr/local/include/ImageMagick-6/magick/constitute.h:28:3: note: ‘MagickCore::CharPixel’
Waf: Leaving directory `/home/james/dcpomatic-1.76.0/build'
Build failed
-> task in 'libdcpomatic' failed (exit status 1):
{task 3068974284L: cxx image_proxy.cc -> image_proxy.cc.1.o}
['/usr/bin/g++', '-D__STDC_CONSTANT_MACROS', '-D__STDC_LIMIT_MACROS', '-msse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes', '-Wextra', '-Wno-unused-result', '-D_FILE_OFFSET_BITS=64', '-O2', '-DDCPOMATIC_POSIX', '-DPOSIX_LOCALE_PREFIX="/usr/local/share/locale"', '-DPOSIX_ICON_PREFIX="/usr/local/share/dcpomatic"', '-mfpmath=sse', '-DDCPOMATIC_LINUX', '-fPIC', '-pthread', '-pthread', '-pthread', '-fopenmp', '-fopenmp', '-I/usr/local/include', '-I/home/james/dcpomatic-1.76.0/build/src/lib/include', '-I/home/james/dcpomatic-1.76.0/src/lib/include', '-I/usr/local/include/ImageMagick-6', '-I/usr/include/sigc++-2.0', '-I/usr/lib/i386-linux-gnu/sigc++-2.0/include', '-I/usr/include/libxml2', '-I/usr/include/glibmm-2.4', '-I/usr/lib/i386-linux-gnu/glibmm-2.4/include', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/libxml++-2.6', '-I/usr/lib/libxml++-2.6/include', '-I/usr/include/xmlsec1', '-I/usr/lib/libzip/include', '-DHAVE_GTK=1', '-DHAVE_CXML=1', '-DHAVE_XMLPP=1', '-DHAVE_CURL=1', '-DHAVE_AVFORMAT=1', '-DHAVE_AVFILTER=1', '-DHAVE_AVCODEC=1', '-DHAVE_AVUTIL=1', '-DHAVE_SWSCALE=1', '-DHAVE_SWRESAMPLE=1', '-DHAVE_POSTPROC=1', '-DHAVE_DCP=1', '-DHAVE_OPENJPEG=1', '-DHAVE_LIBOPENJPEG=1', '-DHAVE_SNDFILE=1', '-DHAVE_GLIB=1', '-DHAVE_MAGICK=1', '-DHAVE_ZIP=1', '-DHAVE_G_FORMAT_SIZE=1', '-DLOCALEDIR="/usr/local/share/locale"', '-DDATADIR="/usr/local/share"', '-DHAVE_WXWIDGETS=1', '-DHAVE_=1', '-DMAGICKCORE_HDRI_ENABLE=0', '-DMAGICKCORE_QUANTUM_DEPTH=16', '-DMAGICKCORE_HDRI_ENABLE=0', '-DMAGICKCORE_QUANTUM_DEPTH=16', '-DXMLSEC_CRYPTO="openssl"', '-D__XMLSEC_FUNCTION__=__FUNCTION__', '-DXMLSEC_NO_GOST=1', '-DXMLSEC_NO_XKMS=1', '-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1', '-DXMLSEC_OPENSSL_098=1', '-DXMLSEC_CRYPTO_OPENSSL=1', '../src/lib/image_proxy.cc', '-c', '-o', 'src/lib/image_proxy.cc.1.o']

Writing version information to src/lib/version.cc
[ 1/184] cxx: src/lib/analyse_audio_job.cc -> build/src/lib/analyse_audio_job.cc.1.o
[ 2/184] cxx: src/lib/audio_analysis.cc -> build/src/lib/audio_analysis.cc.1.o
../src/lib/audio_analysis.cc: In member function ‘void AudioAnalysis::write(boost::filesystem3::path)’:
../src/lib/audio_analysis.cc:152:36: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<std::vector<AudioPoint> >::size_type {aka unsigned int}’ [-Wformat]
../src/lib/audio_analysis.cc:154:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘std::vector<AudioPoint>::size_type {aka unsigned int}’ [-Wformat]
[ 3/184] cxx: src/lib/audio_buffers.cc -> build/src/lib/audio_buffers.cc.1.o
[ 4/184] cxx: src/lib/audio_content.cc -> build/src/lib/audio_content.cc.1.o
[ 5/184] cxx: src/lib/audio_decoder.cc -> build/src/lib/audio_decoder.cc.1.o
[ 6/184] cxx: src/lib/audio_mapping.cc -> build/src/lib/audio_mapping.cc.1.o
[ 7/184] cxx: src/lib/cinema.cc -> build/src/lib/cinema.cc.1.o
[ 8/184] cxx: src/lib/colour_conversion.cc -> build/src/lib/colour_conversion.cc.1.o
[ 9/184] cxx: src/lib/config.cc -> build/src/lib/config.cc.1.o
[ 10/184] cxx: src/lib/content.cc -> build/src/lib/content.cc.1.o
[ 11/184] cxx: src/lib/content_factory.cc -> build/src/lib/content_factory.cc.1.o
[ 12/184] cxx: src/lib/cross.cc -> build/src/lib/cross.cc.1.o
[ 13/184] cxx: src/lib/dcp_content_type.cc -> build/src/lib/dcp_content_type.cc.1.o
[ 14/184] cxx: src/lib/dcp_video_frame.cc -> build/src/lib/dcp_video_frame.cc.1.o
[ 15/184] cxx: src/lib/decoder.cc -> build/src/lib/decoder.cc.1.o
[ 16/184] cxx: src/lib/dolby_cp750.cc -> build/src/lib/dolby_cp750.cc.1.o
[ 17/184] cxx: src/lib/encoder.cc -> build/src/lib/encoder.cc.1.o
[ 18/184] cxx: src/lib/examine_content_job.cc -> build/src/lib/examine_content_job.cc.1.o
[ 19/184] cxx: src/lib/exceptions.cc -> build/src/lib/exceptions.cc.1.o
[ 20/184] cxx: src/lib/file_group.cc -> build/src/lib/file_group.cc.1.o
[ 21/184] cxx: src/lib/filter_graph.cc -> build/src/lib/filter_graph.cc.1.o
[ 22/184] cxx: src/lib/ffmpeg.cc -> build/src/lib/ffmpeg.cc.1.o
[ 23/184] cxx: src/lib/ffmpeg_content.cc -> build/src/lib/ffmpeg_content.cc.1.o
[ 24/184] cxx: src/lib/ffmpeg_decoder.cc -> build/src/lib/ffmpeg_decoder.cc.1.o
[ 25/184] cxx: src/lib/ffmpeg_examiner.cc -> build/src/lib/ffmpeg_examiner.cc.1.o
[ 26/184] cxx: src/lib/film.cc -> build/src/lib/film.cc.1.o
[ 27/184] cxx: src/lib/filter.cc -> build/src/lib/filter.cc.1.o
[ 28/184] cxx: src/lib/frame_rate_change.cc -> build/src/lib/frame_rate_change.cc.1.o
[ 29/184] cxx: src/lib/internet.cc -> build/src/lib/internet.cc.1.o
[ 30/184] cxx: src/lib/image.cc -> build/src/lib/image.cc.1.o
[ 31/184] cxx: src/lib/image_content.cc -> build/src/lib/image_content.cc.1.o
[ 32/184] cxx: src/lib/image_decoder.cc -> build/src/lib/image_decoder.cc.1.o
[ 33/184] cxx: src/lib/image_examiner.cc -> build/src/lib/image_examiner.cc.1.o
[ 34/184] cxx: src/lib/image_proxy.cc -> build/src/lib/image_proxy.cc.1.o
../src/lib/image_proxy.cc: In member function ‘virtual boost::shared_ptr<Image> MagickImageProxy::image() const’:
../src/lib/image_proxy.cc:162:19: error: ‘MagickLib’ is not a namespace-name
../src/lib/image_proxy.cc:162:28: error: expected namespace-name before ‘;’ token
../src/lib/image_proxy.cc:164:52: error: ‘CharPixel’ was not declared in this scope
../src/lib/image_proxy.cc:164:52: note: suggested alternatives:
In file included from /usr/local/include/ImageMagick-6/magick/pixel.h:22:0,
from /usr/local/include/ImageMagick-6/magick/color.h:21,
from /usr/local/include/ImageMagick-6/magick/image.h:21,
from /usr/local/include/ImageMagick-6/magick/draw.h:22,
from /usr/local/include/ImageMagick-6/magick/fx.h:21,
from /usr/local/include/ImageMagick-6/magick/accelerate.h:21,
from /usr/local/include/ImageMagick-6/magick/MagickCore.h:73,
from /usr/local/include/ImageMagick-6/Magick++/Include.h:41,
from /usr/local/include/ImageMagick-6/Magick++.h:9,
from ../src/lib/image_proxy.cc:20:
/usr/local/include/ImageMagick-6/magick/constitute.h:28:3: note: ‘MagickCore::CharPixel’
/usr/local/include/ImageMagick-6/magick/constitute.h:28:3: note: ‘MagickCore::CharPixel’
Waf: Leaving directory `/home/james/dcpomatic-1.76.0/build'
Build failed
-> task in 'libdcpomatic' failed (exit status 1):
{task 3068974284L: cxx image_proxy.cc -> image_proxy.cc.1.o}
['/usr/bin/g++', '-D__STDC_CONSTANT_MACROS', '-D__STDC_LIMIT_MACROS', '-msse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes', '-Wextra', '-Wno-unused-result', '-D_FILE_OFFSET_BITS=64', '-O2', '-DDCPOMATIC_POSIX', '-DPOSIX_LOCALE_PREFIX="/usr/local/share/locale"', '-DPOSIX_ICON_PREFIX="/usr/local/share/dcpomatic"', '-mfpmath=sse', '-DDCPOMATIC_LINUX', '-fPIC', '-pthread', '-pthread', '-pthread', '-fopenmp', '-fopenmp', '-I/usr/local/include', '-I/home/james/dcpomatic-1.76.0/build/src/lib/include', '-I/home/james/dcpomatic-1.76.0/src/lib/include', '-I/usr/local/include/ImageMagick-6', '-I/usr/include/sigc++-2.0', '-I/usr/lib/i386-linux-gnu/sigc++-2.0/include', '-I/usr/include/libxml2', '-I/usr/include/glibmm-2.4', '-I/usr/lib/i386-linux-gnu/glibmm-2.4/include', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/libxml++-2.6', '-I/usr/lib/libxml++-2.6/include', '-I/usr/include/xmlsec1', '-I/usr/lib/libzip/include', '-DHAVE_GTK=1', '-DHAVE_CXML=1', '-DHAVE_XMLPP=1', '-DHAVE_CURL=1', '-DHAVE_AVFORMAT=1', '-DHAVE_AVFILTER=1', '-DHAVE_AVCODEC=1', '-DHAVE_AVUTIL=1', '-DHAVE_SWSCALE=1', '-DHAVE_SWRESAMPLE=1', '-DHAVE_POSTPROC=1', '-DHAVE_DCP=1', '-DHAVE_OPENJPEG=1', '-DHAVE_LIBOPENJPEG=1', '-DHAVE_SNDFILE=1', '-DHAVE_GLIB=1', '-DHAVE_MAGICK=1', '-DHAVE_ZIP=1', '-DHAVE_G_FORMAT_SIZE=1', '-DLOCALEDIR="/usr/local/share/locale"', '-DDATADIR="/usr/local/share"', '-DHAVE_WXWIDGETS=1', '-DHAVE_=1', '-DMAGICKCORE_HDRI_ENABLE=0', '-DMAGICKCORE_QUANTUM_DEPTH=16', '-DMAGICKCORE_HDRI_ENABLE=0', '-DMAGICKCORE_QUANTUM_DEPTH=16', '-DXMLSEC_CRYPTO="openssl"', '-D__XMLSEC_FUNCTION__=__FUNCTION__', '-DXMLSEC_NO_GOST=1', '-DXMLSEC_NO_XKMS=1', '-DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1', '-DXMLSEC_OPENSSL_098=1', '-DXMLSEC_CRYPTO_OPENSSL=1', '../src/lib/image_proxy.cc', '-c', '-o', 'src/lib/image_proxy.cc.1.o']
carl
Site Admin
Posts: 2548
Joined: Thu Nov 14, 2013 2:53 pm

Re: Compilation issue with Debian 7

Post by carl »

Hi, that's odd... I just tested the build with my Debian 7 system and it was ok. Is your system up-to-date?
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Re: Compilation issue with Debian 7

Post by jimboy »

Yes, other than the components that required a specific version for the ./waf configure to complete it is up to date. I had to juggle ffmpeg versions as I noted above to pass the configure stage. Very strange :?
carl
Site Admin
Posts: 2548
Joined: Thu Nov 14, 2013 2:53 pm

Re: Compilation issue with Debian 7

Post by carl »

I just noticed you've got a locally compiled version of ImageMagick or GraphicsMagick. What version is that?
jimboy
Posts: 8
Joined: Mon Oct 27, 2014 3:37 pm

Re: Compilation issue with Debian 7

Post by jimboy »

Version 6.9.0. I just grabbed the latest release.