ifeq ($(vomp_platform),raspberry)
$(info Raspberry pi flags)
LDFLAGS = -Wall $(PICTURES)
-LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil -lavresample
+LIBS = -L/opt/vc/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil -lavresample
OBJECTS += main.o threadp.o osdvector.o surfacevector.o osdopenvg.o ledraspberry.o mtdraspberry.o videoomx.o audioomx.o imageomx.o wjpegsimple.o remotelinux.o signal.o
-LIBS+= -ldl -lfontconfig -lfreetype -lMagick++
+LIBS+= -ldl -lfontconfig -lfreetype -L/usr/lib/arm-linux-gnueabihf -lMagick++-6.Q16
CROSSLIBS =
-INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/ImageMagick
-CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS
+INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/freetype2 -I/usr/include/ImageMagick -I/usr/include/ImageMagick-6 -I/usr/include/arm-linux-gnueabihf/ImageMagick-6
+CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS
CXXFLAGS_REL += -D__STDC_CONSTANT_MACROS
endif
LIBS = -Lrpi-root/opt/vc/lib -Lrpi-root/lib -Lrpi-root/usr/lib -Lrpi-root/lib/arm-linux-gnueabihf -Lrpi-root/usr/lib/arm-linux-gnueabihf -Lrpi-root/usr/local/lib -lpthread -lrt -lEGL -lOpenVG -lopenmaxil -lbcm_host -lavformat -lavcodec -lavutil -lavresample -ldl -lfontconfig
OBJECTS += main.o threadp.o osdvector.o surfacevector.o osdopenvg.o ledraspberry.o mtdraspberry.o videoomx.o audioomx.o imageomx.o wjpegsimple.o remotelinux.o signal.o
-LIBS+= -lfreetype -lMagick++
+LIBS+= -lfreetype -lMagick++-6.Q16
CROSSLIBS =
-INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -Irpi-root/opt/vc/include -Irpi-root/opt/vc/include/interface/vcos/pthreads -Irpi-root/usr/include -Irpi-root/usr/include/freetype2 -Irpi-root/usr/include/ImageMagick
+INCLUDES = -DVOMP_PLATTFORM_RASPBERRY -Irpi-root/opt/vc/include -Irpi-root/opt/vc/include/interface/vcos/pthreads -Irpi-root/usr/include -Irpi-root/usr/include/freetype2 -Irpi-root/usr/include/ImageMagick-6 -Irpi-root/usr/include/ImageMagick -Irpi-root/usr/include/arm-linux-gnueabihf/ImageMagick-6
CXXFLAGS_DEV += -D__STDC_CONSTANT_MACROS -mfloat-abi=hard
CXXFLAGS_REL += -D__STDC_CONSTANT_MACROS -mfloat-abi=hard
endif
av_register_all();
av_log_set_flags(AV_LOG_SKIP_REPEATED);
- ac3codec_libav = avcodec_find_decoder(CODEC_ID_AC3);
+ ac3codec_libav = avcodec_find_decoder(AV_CODEC_ID_AC3);
if (ac3codec_libav == NULL) {
Log::getInstance()->log("Audio", Log::DEBUG,
"Find libav ac3 decoder failed");
return 0;
}
- mp23codec_libav = avcodec_find_decoder(CODEC_ID_MP3);
+ mp23codec_libav = avcodec_find_decoder(AV_CODEC_ID_MP3);
if (mp23codec_libav == NULL) {
Log::getInstance()->log("Audio", Log::DEBUG,
"Find libav mpeg audio decoder failed");
return 0;
}
- aaclatmcodec_libav = avcodec_find_decoder(CODEC_ID_AAC_LATM);
+ aaclatmcodec_libav = avcodec_find_decoder(AV_CODEC_ID_AAC_LATM);
if (aaclatmcodec_libav == NULL) {
Log::getInstance()->log("Audio", Log::DEBUG,
"Find libav aac latm decoder failed");
Section: unknown
Priority: extra
Maintainer: Marten Richter <marten.richter@freenet.de>
-Build-Depends: debhelper (>= 8.0.0), libcec-dev (>= 1.8.1), libraspberrypi-dev, libfreetype6-dev, libmagick++-dev, libavformat-dev, libavutil-dev, libavcodec-dev, libavresample-dev
+Build-Depends: debhelper (>= 8.0.0), libcec-dev (>= 1.8.1), libraspberrypi-dev, libfreetype6-dev, libmagick++-dev, libavformat-dev, libavutil-dev, libavcodec-dev, libavresample-dev
Standards-Version: 3.9.3
Homepage: www.loggytronic.com/vomp.php
Vcs-Git: http://git.vomp.tv/vompclient-raspi.git
}
-int RemoteLinux::cecLogMessage(void *param, const cec_log_message &message)
+int RemoteLinux::cecLogMessage(void *param, const cec_log_message message)
{
Log::getInstance()->log("Remote", Log::DEBUG, "CECLOG: %lld %d %s",message.time , message.level, message.message );
return 0;
}
-int RemoteLinux::cecKeyPress(void*param, const cec_keypress &key)
+int RemoteLinux::cecKeyPress(void*param, const cec_keypress key)
{
//Log::getInstance()->log("Remote", Log::DEBUG, "Incoming cec key %d %d", key.keycode,key.duration);
if (key.duration==0) ((RemoteLinux*)Remote::getInstance())->incomingCECkey(key.keycode);
return 1;
}
-int RemoteLinux::cecCommand(void *param, const cec_command &command)
+int RemoteLinux::cecCommand(void *param, const cec_command command)
{
Log::getInstance()->log("Remote", Log::DEBUG, "CECCommand: %d",command.opcode);
switch (command.opcode) {
return 1;
}
-int RemoteLinux::cecConfigurationChanged(void *param, const libcec_configuration &config)
+int RemoteLinux::cecConfigurationChanged(void *param, const libcec_configuration config)
{
Log::getInstance()->log("Remote", Log::DEBUG, "CECConfig:"/*,config.string()*/);
return 1;
void incomingCECkey(int keys);
void incomingPowerkey(UCHAR key);
- static int cecLogMessage(void *param, const CEC::cec_log_message &message);
- static int cecKeyPress(void*param, const CEC::cec_keypress &key);
- static int cecCommand(void *param, const CEC::cec_command &command);
- static int cecConfigurationChanged(void *param, const CEC::libcec_configuration &config);
+ static int cecLogMessage(void *param, const CEC::cec_log_message message);
+ static int cecKeyPress(void*param, const CEC::cec_keypress key);
+ static int cecCommand(void *param, const CEC::cec_command command);
+ static int cecConfigurationChanged(void *param, const CEC::libcec_configuration config);
static void cecSourceActivated(void*param, const CEC::cec_logical_address address, const uint8_t activated);
};