sebj or Touchstone: How do you actually compile this addon? I'm trying on yesterdays daily build and I have multiple errors.
In package mysql I have to add
CFLAGS="$CFLAGS -fPIC -DPIC"
But bigger problem is with ffmpeg. Because ffmpeg is already part of OE now there are some conflicts between includes (libavutil/mem.h). When compiling libmythfreesurround it takes system ones instead of from mythtv and I got those errors:
cd libmythfreesurround/ && make -f Makefile
make[2]: Entering directory `/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/mythtv-0.25.1/libs/libmythfreesurround'
ccache /home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-g++ -c -m64 -m64 -pipe --sysroot=/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=atom -DNDEBUG -fomit-frame-pointer -fPIC -pthread -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3 -fvisibility-inlines-hidden -Wmissing-declarations -w -fPIC -D_REENTRANT -DMMX -Dusing_libcec -D_GNU_SOURCE -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../qt-everywhere-opensource-src-4.8.2/install/mkspecs/linux-g++-openelec -I. -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtCore -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtNetwork -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtGui -I../../../qt-everywhere-opensource-src-4.8.2/install/include -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include -I/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/mythtv-0.25.1/install -I/usr/include -I../../external/FFmpeg -I../libmythbase -I.. -I../.. -I. -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include/freetype2 -o el_processor.o el_processor.cpp
In file included from el_processor.cpp:30:0:
../../external/FFmpeg/libavcodec/fft.h:71:23: error: ISO C++ forbids declaration of 'DECLARE_ALIGNED' with no type [-fpermissive]
../../external/FFmpeg/libavcodec/fft.h:71:37: error: expected primary-expression before ',' token
../../external/FFmpeg/libavcodec/fft.h:71:39: error: 'ff_cos_16' was not declared in this scope
../../external/FFmpeg/libavcodec/fft.h:71:48: error: expression list treated as compound expression in initializer [-fpermissive]
../../external/FFmpeg/libavcodec/fft.h:71:49: error: expected ',' or ';' before '[' token[/code]This happens because it takes libavutil/mem.h from toolchain instead of external/FFmpeg from mythtv.
I think some CXXFLAGS should be adjusted but which one?[code]cd libmythfreesurround/ && make -f Makefile
make[2]: Entering directory `/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/mythtv-0.25.1/libs/libmythfreesurround'
ccache /home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-g++ -c -m64 -m64 -pipe --sysroot=/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=atom -DNDEBUG -fomit-frame-pointer -fPIC -pthread -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3 -fvisibility-inlines-hidden -Wmissing-declarations -w -fPIC -D_REENTRANT -DMMX -Dusing_libcec -D_GNU_SOURCE -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../qt-everywhere-opensource-src-4.8.2/install/mkspecs/linux-g++-openelec -I. -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtCore -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtNetwork -I../../../qt-everywhere-opensource-src-4.8.2/install/include/QtGui -I../../../qt-everywhere-opensource-src-4.8.2/install/include -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include -I/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/home/pvic/OpenELEC/OpenELEC.tv/build.OpenELEC_PVR-Ultra.x86_64-devel/mythtv-0.25.1/install -I/usr/include -I../../external/FFmpeg -I../libmythbase -I.. -I../.. -I. -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include -I../../../toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include/freetype2 -o el_processor.o el_processor.cpp
In file included from el_processor.cpp:30:0:
../../external/FFmpeg/libavcodec/fft.h:71:23: error: ISO C++ forbids declaration of 'DECLARE_ALIGNED' with no type [-fpermissive]
../../external/FFmpeg/libavcodec/fft.h:71:37: error: expected primary-expression before ',' token
../../external/FFmpeg/libavcodec/fft.h:71:39: error: 'ff_cos_16' was not declared in this scope
../../external/FFmpeg/libavcodec/fft.h:71:48: error: expression list treated as compound expression in initializer [-fpermissive]
../../external/FFmpeg/libavcodec/fft.h:71:49: error: expected ',' or ';' before 'This happens because it takes libavutil/mem.h from toolchain instead of external/FFmpeg from mythtv.
I think some CXXFLAGS should be adjusted but which one?