[oe] package VDR for OE

Koen Kooi k.kooi at student.utwente.nl
Sun Dec 13 16:34:11 UTC 2009


On 13-12-09 14:46, Paul Menzel wrote:
> Am Samstag, den 12.12.2009, 18:33 +0100 schrieb Henning Heinold:
>> On Sat, Dec 12, 2009 at 12:48:40PM +0100, Paul Menzel wrote:
>>> I am trying to write a recipe for The Video Disc Recorder (VDR) [1] and
>>> get it into OE.
>>>
>>> Unfortunately I have never done this and I also do not know much about
>>> things related to compiling.
>>>
>>> I tried to follow [2] and [3] and came up with the following which is
>>> not much as you can see and in addition does not work yet.
>>>
>>> The problem I am facing is, that in the Makefile of VDR [4] there is
>>>
>>>          […]
>>>          LIBS     = -ljpeg -lpthread -ldl -lcap -lrt -lfreetype
>>>          -lfontconfig
>>>          INCLUDES = -I/usr/include/freetype
>>>          […]
>>>
>>> so that the path `/usr/include/freetype/` is passed to the make command
>>> which of course fails trying to cross compile the program.
>>>
>>>          CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include/freetype2
>>>          cc1plus: internal compiler error: in add_path, at c-incpath.c:425
>>>
>>> Now, if I understand it correctly by looking at other recipes there is
>>> EXTRA_OEMAKE = "" where I should be able to set the INCLUDEPATH to the
>>> OE build environment. Is that correct.
>>>
>>> Could you please also tell me what the recipe variable name is for libs?
>>
>> What buildsystem is vdr using autotools or handmade Makefiles?
>
> VDR uses a handmade Makefile.
>
> […]
>
>> for handmade Makefiles
>>
>> make a Patch which patches the Makefile and sets the include path to
>> our staginginclude-Path
>
> Thank you! I tried this
>
>          +-INCLUDES = -I/usr/include/freetype2
>          ++INCLUDES = -I${STAGING_INCDIR}/freetype2
>
> but the `${STAGING_INCDIR}` was not expanded. The result is the
> following.
>
>          INCLUDES = -I${STAGING_INCDIR}freetype2
>
> Using an absolute path worked.
>
> Could you please point out my mistake?

AFAIK Makefiles don't use accolades but parens for variables.

regards,

Koen





More information about the Openembedded-devel mailing list