2016-04-25, 20:34
Well.. I built ffmpeg with that config line.. it didn't understand --with-codec, so I used --enable-libspeex, as that's what the ./configure --help said to use. It builds and installs to /opt/ffmpeg, but then kodi fails to build...
As for My build on Raspbian.. I spoke too soon. It built, but the binary won't run
Code:
greenbag@lotusland:~/kodi$ make -j4
CPP xbmc/cores/DllLoader/exports/emu_dummy.o
CPP xbmc/cores/DllLoader/exports/util/EmuFileWrapper.o
CPP xbmc/cores/DllLoader/coff.o
CPP xbmc/addons/Addon.o
CPP xbmc/cores/DllLoader/exports/emu_kernel32.o
AR xbmc/cores/DllLoader/exports/util/exports_utils.a
CPP xbmc/cores/DllLoader/exports/emu_msvcrt.o
CPP xbmc/cores/DllLoader/dll.o
CPP xbmc/cores/DllLoader/DllLoader.o
CPP xbmc/cores/DllLoader/DllLoaderContainer.o
CPP xbmc/cores/DllLoader/dll_tracker.o
AR xbmc/cores/DllLoader/exports/exports.a
CPP xbmc/cdrip/CDDARipJob.o
CPP xbmc/cores/DllLoader/dll_tracker_file.o
CPP xbmc/cores/DllLoader/dll_tracker_library.o
CPP xbmc/cores/DllLoader/dll_util.o
CPP xbmc/cores/DllLoader/LibraryLoader.o
CPP xbmc/cores/DllLoader/SoLoader.o
CC xbmc/cores/DllLoader/mmap_anon.o
CC xbmc/cores/DllLoader/ldt_keeper.o
ldt_keeper.c: In function ‘Setup_LDT_Keeper’:
ldt_keeper.c:258:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
*(void**)array.base_addr = ldt_fs->prev_struct;
^
CC xbmc/contrib/kissfft/kiss_fft.o
CPP xbmc/addons/AddonCallbacks.o
CC xbmc/contrib/kissfft/kiss_fftr.o
AR xbmc/cores/DllLoader/dllloader.a
CPP xbmc/addons/AddonCallbacksAddon.o
AR xbmc/contrib/kissfft/kissfft.a
CPP xbmc/cores/AudioEngine/AEFactory.o
CPP xbmc/cdrip/CDDARipper.o
CPP xbmc/addons/AddonCallbacksAudioDSP.o
CPP xbmc/cores/AudioEngine/AESinkFactory.o
CPP xbmc/addons/AddonCallbacksAudioEngine.o
CPP xbmc/cdrip/Encoder.o
CPP xbmc/cores/AudioEngine/Sinks/AESinkNULL.o
CPP xbmc/cdrip/EncoderFFmpeg.o
CPP xbmc/addons/AddonCallbacksCodec.o
CPP xbmc/cores/AudioEngine/Sinks/AESinkPi.o
CPP xbmc/cores/AudioEngine/AEResampleFactory.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.o
EncoderFFmpeg.cpp: In member function ‘bool CEncoderFFmpeg::WriteFrame()’:
EncoderFFmpeg.cpp:319:21: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:319:21: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:319:21: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:319:48: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:319:48: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:319:48: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
if (m_CodecCtx->coded_frame && m_CodecCtx->coded_frame->pts != AV_NOPTS_VALUE)
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:320:44: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
m_Pkt.pts = av_rescale_q(m_CodecCtx->coded_frame->pts, m_Stream->time_base, m_CodecCtx->time_base);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:320:44: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
m_Pkt.pts = av_rescale_q(m_CodecCtx->coded_frame->pts, m_Stream->time_base, m_CodecCtx->time_base);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:320:44: warning: ‘AVCodecContext::coded_frame’ is deprecated [-Wdeprecated-declarations]
m_Pkt.pts = av_rescale_q(m_CodecCtx->coded_frame->pts, m_Stream->time_base, m_CodecCtx->time_base);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:2949:35: note: declared here
attribute_deprecated AVFrame *coded_frame;
^
EncoderFFmpeg.cpp:328:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
EncoderFFmpeg.cpp:328:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
EncoderFFmpeg.cpp:328:24: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /opt/ffmpeg/include/libavformat/avformat.h:318:0,
from EncoderFFmpeg.h:27,
from EncoderFFmpeg.cpp:29:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.o
CPP xbmc/addons/AddonCallbacksGUI.o
AR xbmc/cdrip/cdrip.a
CPP xbmc/cores/ExternalPlayer/ExternalPlayer.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEStream.o
AR xbmc/cores/ExternalPlayer/ExternalPlayer.a
CPP xbmc/cores/VideoRenderers/BaseRenderer.o
CPP xbmc/cores/VideoRenderers/OverlayRenderer.o
CPP xbmc/addons/AddonCallbacksPVR.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESound.o
CPP xbmc/cores/VideoRenderers/OverlayRendererUtil.o
CPP xbmc/cores/VideoRenderers/OverlayRendererGUI.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEResampleFFMPEG.o
CPP xbmc/cores/VideoRenderers/RenderCapture.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEResamplePi.o
CPP xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.o
CPP xbmc/addons/AddonDatabase.o
CPP xbmc/cores/VideoRenderers/RenderManager.o
CPP xbmc/cores/VideoRenderers/RenderFlags.o
CPP xbmc/cores/AudioEngine/Sinks/AESinkALSA.o
In file included from ../dvdplayer/DVDCodecs/Video/VAAPI.h:27:0,
from RenderManager.cpp:62:
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:49:88: error: use of enum ‘PixelFormat’ without previous declaration
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces) = 0;
^
In file included from ../dvdplayer/DVDCodecs/Video/VAAPI.h:27:0,
from RenderManager.cpp:62:
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:80:15: error: use of enum ‘PixelFormat’ without previous declaration
static enum PixelFormat GetFormat(struct AVCodecContext * avctx, const PixelFormat * fmt);
^
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:80:74: error: ‘PixelFormat’ does not name a type
static enum PixelFormat GetFormat(struct AVCodecContext * avctx, const PixelFormat * fmt);
^
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:122:15: error: ‘PixelFormat’ was not declared in this scope
std::vector<PixelFormat> m_formats;
^
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:122:26: error: template argument 1 is invalid
std::vector<PixelFormat> m_formats;
^
../dvdplayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h:122:26: error: template argument 2 is invalid
In file included from RenderManager.cpp:62:0:
../dvdplayer/DVDCodecs/Video/VAAPI.h:409:86: error: use of enum ‘PixelFormat’ without previous declaration
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces = 0);
^
/home/greenbag/kodi/Makefile.include:97: recipe for target 'RenderManager.o' failed
make[1]: *** [RenderManager.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CPP xbmc/cores/VideoRenderers/VideoShaders/YUV2RGBShader.o
Makefile:420: recipe for target 'xbmc/cores/VideoRenderers/VideoRenderer.a' failed
make: *** [xbmc/cores/VideoRenderers/VideoRenderer.a] Error 2
make: *** Waiting for unfinished jobs....
CPP xbmc/cores/VideoRenderers/VideoShaders/VideoFilterShader.o
CPP xbmc/cores/VideoRenderers/VideoShaders/ConvolutionKernels.o
CPP xbmc/addons/AddonInstaller.o
CPP xbmc/addons/AddonManager.o
CPP xbmc/cores/AudioEngine/Sinks/alsa/ALSADeviceMonitor.o
AR xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a
CPP xbmc/cores/AudioEngine/Sinks/alsa/ALSAHControlMonitor.o
CPP xbmc/cores/AudioEngine/Sinks/AESinkOSS.o
CPP xbmc/cores/AudioEngine/Sinks/AESinkPULSE.o
CPP xbmc/cores/AudioEngine/DSPAddons/ActiveAEDSP.o
CPP xbmc/cores/AudioEngine/DSPAddons/ActiveAEDSPMode.o
CPP xbmc/addons/AddonStatusHandler.o
CPP xbmc/cores/AudioEngine/DSPAddons/ActiveAEDSPAddon.o
CPP xbmc/addons/AddonVersion.o
CPP xbmc/cores/AudioEngine/DSPAddons/ActiveAEDSPDatabase.o
CPP xbmc/addons/AudioEncoder.o
CPP xbmc/addons/ContextMenuAddon.o
CPP xbmc/cores/AudioEngine/DSPAddons/ActiveAEDSPProcess.o
CPP xbmc/cores/AudioEngine/Utils/AEChannelInfo.o
CPP xbmc/addons/AudioDecoder.o
CPP xbmc/cores/AudioEngine/Utils/AEBuffer.o
CPP xbmc/addons/GUIDialogAddonInfo.o
CPP xbmc/cores/AudioEngine/Utils/AEUtil.o
CPP xbmc/cores/AudioEngine/Utils/AEStreamInfo.o
CPP xbmc/addons/GUIDialogAddonSettings.o
CPP xbmc/cores/AudioEngine/Utils/AEPackIEC61937.o
CPP xbmc/cores/AudioEngine/Utils/AEBitstreamPacker.o
CPP xbmc/cores/AudioEngine/Utils/AEELDParser.o
CPP xbmc/cores/AudioEngine/Utils/AEDeviceInfo.o
CPP xbmc/cores/AudioEngine/Utils/AELimiter.o
CPP xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.o
CPP xbmc/addons/GUIViewStateAddonBrowser.o
Encoders/AEEncoderFFmpeg.cpp: In member function ‘virtual int CAEEncoderFFmpeg::Encode(float*, unsigned int)’:
Encoders/AEEncoderFFmpeg.cpp:354:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
Encoders/AEEncoderFFmpeg.cpp:354:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
Encoders/AEEncoderFFmpeg.cpp:354:24: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
Encoders/AEEncoderFFmpeg.cpp: In member function ‘virtual int CAEEncoderFFmpeg::Encode(uint8_t*, int, uint8_t*, int)’:
Encoders/AEEncoderFFmpeg.cpp:404:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
Encoders/AEEncoderFFmpeg.cpp:404:3: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
Encoders/AEEncoderFFmpeg.cpp:404:24: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
av_free_packet(&m_Pkt);
^
In file included from /home/greenbag/kodi/xbmc/cores/AudioEngine/Interfaces/AEEncoder.h:25:0,
from /home/greenbag/kodi/xbmc/cores/AudioEngine/Encoders/AEEncoderFFmpeg.h:22,
from Encoders/AEEncoderFFmpeg.cpp:24:
/opt/ffmpeg/include/libavcodec/avcodec.h:4044:6: note: declared here
void av_free_packet(AVPacket *pkt);
^
CPP xbmc/addons/GUIWindowAddonBrowser.o
AR xbmc/cores/AudioEngine/audioengine.a
CPP xbmc/addons/ImageResource.o
CPP xbmc/addons/LanguageResource.o
CPP xbmc/addons/PluginSource.o
CPP xbmc/addons/Repository.o
CPP xbmc/addons/RepositoryUpdater.o
CPP xbmc/addons/Scraper.o
CPP xbmc/addons/ScreenSaver.o
CPP xbmc/addons/Service.o
CPP xbmc/addons/Skin.o
CPP xbmc/addons/UISoundsResource.o
CPP xbmc/addons/Visualisation.o
CPP xbmc/addons/Webinterface.o
AR xbmc/addons/addons.a
greenbag@lotusland:~/kodi$
As for My build on Raspbian.. I spoke too soon. It built, but the binary won't run
Code:
ERROR: Unable to create application. Exiting
*** Error in '/usr/local/lib/kodi/kodi.bin': free(): invalid pointer: 0x03547cdc ***
Aborted (core dumped)
Crash report available at /home/pi/kodi_crashlog-20160425_112630.log