Project

General

Profile

Error compiling TVHeadend on Rasbian

Added by Harry Developer about 6 years ago

Hi,

I used to compile version 4.0.8 on rasbian jessie (kernel 4.4.50, gcc 4.9.8), which worked fine. That was approx. a year ago. Today, I cannot compile any of the versions on my rasbian. Any version <= 4.1 give me:

src/plumbing/transcoding.c: In function 'transcoder_stream_video':
src/plumbing/transcoding.c:1064:30: error: 'PIX_FMT_YUV420P' undeclared (first use in this function)
       octx->pix_fmt        = PIX_FMT_YUV420P;
                              ^
src/plumbing/transcoding.c:1064:30: note: each undeclared identifier is reported only once for each function it appears in
src/plumbing/transcoding.c:1191:3: error: implicit declaration of function 'avpicture_deinterlace' [-Werror=implicit-function-declaration]
   if (avpicture_deinterlace(&deint_pic,
   ^
src/plumbing/transcoding.c: In function 'transcoder_init_video':
src/plumbing/transcoding.c:1606:3: error: implicit declaration of function 'avcodec_alloc_frame' [-Werror=implicit-function-declaration]
   vs->vid_dec_frame = avcodec_alloc_frame();
   ^
src/plumbing/transcoding.c:1606:21: error: assignment makes pointer from integer without a cast [-Werror]
   vs->vid_dec_frame = avcodec_alloc_frame();
                     ^
src/plumbing/transcoding.c:1607:21: error: assignment makes pointer from integer without a cast [-Werror]
   vs->vid_enc_frame = avcodec_alloc_frame();
                     ^
src/plumbing/transcoding.c:1609:3: error: implicit declaration of function 'avcodec_get_frame_defaults' [-Werror=implicit-function-declaration]
   avcodec_get_frame_defaults(vs->vid_dec_frame);
   ^
cc1: all warnings being treated as errors

Any version >= 4.2.1 give me

*** Error in `/usr/bin/c++': double free or corruption (top): 0x00cc9580 ***
Aborted

I'm using default values (./configure; make)

Any idee how to fix this? I've googled both (PIX_FMT_YUV420P and double free or corruption), but haven't found a straight forward solution, yet.

Regards
Harry


Replies (1)

RE: Error compiling TVHeadend on Rasbian - Added by Harry Developer about 6 years ago

I've checked out V4.2.7 and tried ./configure --disable-libx265 --disable-pie --disable-libvpx --disable-nvenc, which seems to work. At least it compiles without error.

    (1-1/1)