Hallo
Hab mich ein wenig mit dem neuen Makfilesystem herumschlagen und habe beim Bau von Plugins immer wieder Probleme.
Mal zur Ausgangssituation.
Make.config
Code
#
# User defined Makefile options for the Video Disk Recorder
#
# Copy this file to 'Make.config' and change the parameters as necessary.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Make.config.template 2.18 2013/02/08 10:31:38 kls Exp $
### The C compiler and options:
CC = gcc
CFLAGS = -g -Wall
CXX = g++
CXXFLAGS = -g -Wall -Werror=overloaded-virtual -Wno-parentheses
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
CXXFLAGS += -O0
else
CFLAGS += -O3
CXXFLAGS += -O3
endif
ifdef VDRDEBUG
# Required for special debug build of VDR, where plugins are
# not unloaded at runtime to give valgrind a chance to detect
# memory leaks in the plugin libs
DEFINES += -DVDRDEBUG
endif
BIDI = 1
# Use 'make M32=1 ...' to build a 32-bit version of VDR on a 64-bit machine:
ifdef M32
CFLAGS += -m32
CXXFLAGS += -m32
endif
### The directory environment:
# Default directories (adjust as necessary or desired):
PREFIX = /usr
#BINDIR = $(PREFIX)/bin
#INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib/vdr/plugins
#LOCDIR = $(PREFIX)/share/locale
#MANDIR = $(PREFIX)/share/man
#PCDIR = $(PREFIX)/lib/pkgconfig
#RESDIR = $(PREFIX)/share/vdr
#DVBDIR = /usr/src/v4l-dvb/linux/include/uapi
VIDEODIR = /home/video.00
CONFDIR = /etc/vdr
#CACHEDIR = /var/cache/vdr
# Overrides for preset/legacy configurations:
# Use 'make LCLBLD=1' to build locale and plugin files under the source directory:
ifdef LCLBLD
LOCDIR = $(CWD)/locale
PLUGINDIR = $(CWD)/PLUGINS
ifndef PLUGIN # don't overwrite for plugins with old makefiles
LIBDIR = $(PLUGINDIR)/lib
endif
HDRDIR = $(CWD)/include
endif
# Use 'make ONEDIR=1' to have all data in one single directory:
ifdef ONEDIR
VIDEODIR = /video
CACHEDIR = $(VIDEODIR)
CONFDIR = $(VIDEODIR)
RESDIR = $(VIDEODIR)
endif
# Use this if you want to have a central place where you configure compile time
# parameters for plugins:
#PLGCFG = $(CONFDIR)/plugins.conf
### The remote control:
LIRC_DEVICE = /var/run/lirc/lircd
### Define if you want vdr to not run as root:
#VDR_USER = vdr
### Fallback for plugins with old makefiles:
ifdef PLUGIN
CFLAGS += -fPIC
CXXFLAGS += -fPIC
endif
GRAPHTFT = 1
DEFINES += -DUSE_GRAPHTFT
VASARAJANAULOJA = 1
DEFINES += -DUSE_VASARAJANAULOJA
MAINMENUHOOKS = 1
DEFINES += -DUSE_MAINMENUHOOKS
PLUGINMISSING = 1
DEFINES += -DUSE_PLUGINMISSING
SETUP = 1
DEFINES += -DUSE_SETUP
WAREAGLEICON = 1
DEFINES += -DUSE_WAREAGLEICON
Alles anzeigen
vdr.pc
Code
bindir=/usr/bin
mandir=/usr/share/man
configdir=/etc/vdr
videodir=/home/video.00
cachedir=/var/cache/vdr
resdir=/usr/share/vdr
libdir=/usr/lib/vdr/plugins
locdir=/usr/share/locale
plgcfg=
apiversion=1.7.38
cflags=-g -Wall -O3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
cxxflags=-g -Wall -Werror=overloaded-virtual -Wno-parentheses -O3 -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
Name: VDR
Description: Video Disk Recorder
URL: http://www.tvdr.de/
Version: 1.7.38
Cflags: ${cflags}
Alles anzeigen
Fehlt da nicht irgendwo ein -I/usr/include/vdr ?
hier noch ls -l /usr/include/vdr
Code
-rw-r--r-- 1 root root 1977 Jul 6 2008 audio.h
-rw-r--r-- 1 root root 11772 Mär 2 10:53 channels.h
-rw-r--r-- 1 root root 10256 Feb 29 2012 ci.h
-rw-r--r-- 1 root root 11558 Mär 2 10:53 config.h
-rw-r--r-- 1 root root 1125 Mär 2 10:53 cutter.h
-rw-r--r-- 1 root root 44501 Mär 2 10:53 device.h
-rw-r--r-- 1 root root 3898 Sep 17 2011 diseqc.h
-rw-r--r-- 1 root root 766 Nov 26 2006 dvbci.h
-rw-r--r-- 1 root root 9614 Mär 2 10:53 dvbdevice.h
-rw-r--r-- 1 root root 2475 Feb 19 2012 dvbplayer.h
drwxr-xr-x 2 root root 4096 Mär 2 10:56 dvbsddevice
-rw-r--r-- 1 root root 4994 Jan 20 11:15 dvbspu.h
-rw-r--r-- 1 root root 1500 Mär 11 2012 dvbsubtitle.h
-rw-r--r-- 1 root root 501 Jan 3 2010 eit.h
-rw-r--r-- 1 root root 846 Mär 7 2012 eitscan.h
-rw-r--r-- 1 root root 13715 Mär 2 10:53 epg.h
-rw-r--r-- 1 root root 696 Mär 2 10:53 filetransfer.h
-rw-r--r-- 1 root root 3237 Jan 11 2004 filter.h
-rw-r--r-- 1 root root 5439 Feb 17 14:17 font.h
-rw-r--r-- 1 root root 4680 Mär 11 2012 i18n.h
-rw-r--r-- 1 root root 1999 Mär 2 10:53 iconpatch.h
drwxr-xr-x 2 root root 4096 Feb 25 07:50 include
-rw-r--r-- 1 root root 894 Mai 1 2004 interface.h
-rw-r--r-- 1 root root 3747 Dez 4 13:51 keys.h
drwxr-xr-x 2 root root 4096 Mär 2 10:56 libsi
-rw-r--r-- 1 root root 613 Jan 27 2006 lirc.h
-rw-r--r-- 1 root root 1958 Mär 2 10:53 mainmenuitemsprovider.h
-rw-r--r-- 1 root root 2571 Mär 2 10:53 Make.config
-rw-r--r-- 1 root root 9503 Mär 2 10:53 menu.h
-rw-r--r-- 1 root root 5618 Mär 2 10:53 menuitems.h
-rw-r--r-- 1 root root 2913 Mär 2 10:53 menuorgpatch.h
-rw-r--r-- 1 root root 725 Jun 10 2007 nit.h
-rw-r--r-- 1 root root 5277 Mär 2 10:53 osdbase.h
-rw-r--r-- 1 root root 57522 Mär 2 10:53 osd.h
-rw-r--r-- 1 root root 1461 Feb 16 16:20 pat.h
-rw-r--r-- 1 root root 6118 Apr 28 2012 player.h
-rw-r--r-- 1 root root 3250 Feb 25 07:44 plugin.h
-rw-r--r-- 1 root root 4041 Sep 2 11:27 receiver.h
-rw-r--r-- 1 root root 1203 Mär 2 10:53 recorder.h
-rw-r--r-- 1 root root 14776 Mär 2 10:53 recording.h
-rw-r--r-- 1 root root 3603 Feb 3 15:34 remote.h
-rw-r--r-- 1 root root 23339 Mär 2 10:53 remux.h
-rw-r--r-- 1 root root 5239 Feb 16 16:20 ringbuffer.h
-rw-r--r-- 1 root root 553 Jan 5 2004 sdt.h
-rw-r--r-- 1 root root 1095 Aug 13 2005 sections.h
-rw-r--r-- 1 root root 5025 Feb 24 2007 shutdown.h
-rw-r--r-- 1 root root 792 Jan 2 2005 skinclassic.h
-rw-r--r-- 1 root root 798 Apr 15 2012 skinlcars.h
-rw-r--r-- 1 root root 24774 Dez 21 12:09 skins.h
-rw-r--r-- 1 root root 785 Jan 2 2005 skinsttng.h
-rw-r--r-- 1 root root 1984 Feb 28 2010 sourceparams.h
-rw-r--r-- 1 root root 1514 Jun 17 2012 sources.h
-rw-r--r-- 1 root root 1306 Apr 17 2006 spu.h
-rw-r--r-- 1 root root 9314 Mär 2 10:53 status.h
-rw-r--r-- 1 root root 4694 Mär 2 10:53 submenu.h
-rw-r--r-- 1 root root 2616 Mär 2 10:53 svdrp.h
-rw-r--r-- 1 root root 3177 Okt 7 13:11 themes.h
-rw-r--r-- 1 root root 6381 Feb 16 16:20 thread.h
-rw-r--r-- 1 root root 5258 Mär 2 10:53 timers.h
-rw-r--r-- 1 root root 22948 Feb 17 14:18 tools.h
-rw-r--r-- 1 root root 956 Jan 20 14:12 transfer.h
-rw-r--r-- 1 root root 1637 Mär 2 10:53 vdrttxtsubshooks.h
-rw-r--r-- 1 root root 3288 Mär 2 10:53 videodir.h
Alles anzeigen
Bauen tut grundsätzlich alles und das installieren klappt auch aber immer wieder hab ich Probleme mit Plugins das der vdr beim Aufruf jener abschmiert.
Baue ich die Plugins mit dem alten Makefile und alten rules klappts.
Was habe ich übersehen?