Mailing List Archive

Compile failure : android mythfrontend
Hi Mark

The new ffmpeg is causing this compile error

libavcodec/v4l2_buffers.c:24:10: fatal error: 'drm_fourcc.h' file not found
#include <drm_fourcc.h>
         ^~~~~~~~~~~~~~

This is the same error as happened in Ubuntu (see below). On ubuntu it
was solved by installing libdrm-dev.

What is the process for including another lib (librm-dev) in the android
package? Do you have a recipe for this?

Peter

-------- Forwarded Message --------
Subject: [Mythtv-developers] Ubuntu FTBFS on 32
Date: Mon, 20 Jul 2020 13:49:04 -0500
From: Mario Limonciello <superm1@gmail.com>
Reply-To: mythtv-developers@mythtv.org
To: mythtv-developers@mythtv.org



This just started to show up on focal and groovy builds:

ccache gcc -I. -I./ -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c11 -DNDEBUG -fomit-frame-pointer -fPIC -pthread -I/usr/include/libxml2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -isystem/opt/vc/include/ -isystem/opt/vc/include/interface/vmcs_host/linux -isystem/opt/vc/include/interface/vcos/pthreads -fgnu89-inline -g -Wall -Wextra -Wdisabled-optimization -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wno-parentheses -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -O3 -fno-math-errno -fno-signed-zeros -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -fdiagnostics-color=auto -Wno-maybe-uninitialized -Wdouble-promotion -Wduplicated-cond -Wjump-misses-init -Wlogical-op -Wnull-dereference -Wshadow -w -std=c11 -fomit-frame-pointer -fPIC -I/<<PKGBUILDDIR>>/mythtv/external/nv-codec-headers/install/include -pthread -I/usr/include/p11-kit-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -D_REENTRANT -I/usr/include/SDL2 -MMD -MF libavcodec/v4l2_buffers.d -MT libavcodec/v4l2_buffers.o -c -o libavcodec/v4l2_buffers.o libavcodec/v4l2_buffers.c
libavcodec/v4l2_buffers.c:24:10: fatal error: drm_fourcc.h: No such file or directory

24 | #include <drm_fourcc.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [ffbuild/common.mak:59: libavcodec/v4l2_buffers.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/<<PKGBUILDDIR>>/mythtv/external/FFmpeg'
make[3]: *** [Makefile:29: FFmpeg-all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/mythtv/external'
make[2]: *** [Makefile:66: external] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/mythtv'
make[1]: *** [debian/rules:108: override_dh_auto_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:98: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 20200720-0422

Finished


--
Mario Limonciello
superm1@gmail.com <mailto:superm1@gmail.com>
Re: Compile failure : android mythfrontend [ In reply to ]
Peter

I have a fix for this that I just need to sanitise one more time (the
compilation failure is the v4l2 drm prime patch). There’s no need to make
any changes for the android build.

Regards
Mark

On Wed, 22 Jul 2020 at 18:04, Peter Bennett <pb.mythtv@gmail.com> wrote:

> Hi Mark
>
> The new ffmpeg is causing this compile error
>
> libavcodec/v4l2_buffers.c:24:10: fatal error: 'drm_fourcc.h' file not found
> #include <drm_fourcc.h>
> ^~~~~~~~~~~~~~
>
> This is the same error as happened in Ubuntu (see below). On ubuntu it was
> solved by installing libdrm-dev.
> What is the process for including another lib (librm-dev) in the android
> package? Do you have a recipe for this?
>
> Peter
>
> -------- Forwarded Message --------
> Subject: [Mythtv-developers] Ubuntu FTBFS on 32
> Date: Mon, 20 Jul 2020 13:49:04 -0500
> From: Mario Limonciello <superm1@gmail.com> <superm1@gmail.com>
> Reply-To: mythtv-developers@mythtv.org
> To: mythtv-developers@mythtv.org
>
> This just started to show up on focal and groovy builds:
>
> ccache gcc -I. -I./ -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -DBUILDING_avcodec -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c11 -DNDEBUG -fomit-frame-pointer -fPIC -pthread -I/usr/include/libxml2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -isystem/opt/vc/include/ -isystem/opt/vc/include/interface/vmcs_host/linux -isystem/opt/vc/include/interface/vcos/pthreads -fgnu89-inline -g -Wall -Wextra -Wdisabled-optimization -Wpointer-arith -Wwrite-strings -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wno-parentheses -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -O3 -fno-math-errno -fno-signed-zeros -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=return-type -Werror=vla -fdiagnostics-color=auto -Wno-maybe-uninitialized -Wdouble-promotion -Wduplicated-cond -Wjump-misses-init -Wlogical-op -Wnull-dereference -Wshadow -w -std=c11 -fomit-frame-pointer -fPIC -I/<<PKGBUILDDIR>>/mythtv/external/nv-codec-headers/install/include -pthread -I/usr/include/p11-kit-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -Wno-bool-operation -Wno-char-subscripts -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -D_REENTRANT -I/usr/include/SDL2 -MMD -MF libavcodec/v4l2_buffers.d -MT libavcodec/v4l2_buffers.o -c -o libavcodec/v4l2_buffers.o libavcodec/v4l2_buffers.c
> libavcodec/v4l2_buffers.c:24:10: fatal error: drm_fourcc.h: No such file or directory
>
> 24 | #include <drm_fourcc.h>
> | ^~~~~~~~~~~~~~
> compilation terminated.
> make[4]: *** [ffbuild/common.mak:59: libavcodec/v4l2_buffers.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/mythtv/external/FFmpeg'
> make[3]: *** [Makefile:29: FFmpeg-all] Error 2
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/mythtv/external'
> make[2]: *** [Makefile:66: external] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/mythtv'
> make[1]: *** [debian/rules:108: override_dh_auto_install] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:98: binary] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
> --------------------------------------------------------------------------------
> Build finished at 20200720-0422
>
> Finished
>
>
> --
> Mario Limonciello
> superm1@gmail.com
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: Compile failure : android mythfrontend [ In reply to ]
On 7/23/2020 3:03 AM, Peter Bennett wrote:
>
> Hi Mark
>
> The new ffmpeg is causing this compile error
>
> libavcodec/v4l2_buffers.c:24:10: fatal error: 'drm_fourcc.h' file not
> found
> #include <drm_fourcc.h>
>          ^~~~~~~~~~~~~~
>
> This is the same error as happened in Ubuntu (see below). On ubuntu it
> was solved by installing libdrm-dev.
>
> What is the process for including another lib (librm-dev) in the
> android package? Do you have a recipe for this?
>
> Peter
>
> -

Yes.

1. add a section to makelibs.sh

2. Try to compile.

3. Figure out the patches.

4. save the patch to the patches dir. (or include it inline but that is
harder I feel)

Q's

Is it required to link against the lib produced?

Is there an equivalent header in android (do a quick find)?

I assume drm here means Direct Rendering Manager. Given that we are not
letting ffmpeg render, can this be requirement be disabled in ffmpeg
configure?

Mark



--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Compile failure : android mythfrontend [ In reply to ]
On 7/23/2020 3:03 AM, Peter Bennett wrote:
>
> Hi Mark
>
> The new ffmpeg is causing this compile error
>
> libavcodec/v4l2_buffers.c:24:10: fatal error: 'drm_fourcc.h' file not
> found
> #include <drm_fourcc.h>
>          ^~~~~~~~~~~~~~
>
> This is the same error as happened in Ubuntu (see below). On ubuntu it
> was solved by installing libdrm-dev.
>
> What is the process for including another lib (librm-dev) in the
> android package? Do you have a recipe for this?
>
> Peter

Just had a look and drm_fourcc.h is in the ndk so there is just an
include path issue in myth build.

Mark



--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Compile failure : android mythfrontend [ In reply to ]
On 7/22/20 2:30 PM, Mark Kendall wrote:
> This is the same error as happened in Ubuntu (see below). On ubuntu it
> was solved by installing libdrm-dev.

I see that the Bullseye buildbot is failing on this, should I be
installing the above?

Doug
Re: Compile failure : android mythfrontend [ In reply to ]
On 7/22/20 7:05 PM, Doug Lytle wrote:
> On 7/22/20 2:30 PM, Mark Kendall wrote:
>> This is the same error as happened in Ubuntu (see below). On ubuntu
>> it was solved by installing libdrm-dev.
>
> I see that the Bullseye buildbot is failing on this, should I be
> installing the above?
>
> Doug
>
>
Mark is working on a fix so that it will not need this library, so I
would wait and see if that works first.
Re: Compile failure : android mythfrontend [ In reply to ]
On 7/22/20 2:30 PM, Mark Kendall wrote:
> Peter
>
> I have a fix for this that I just need to sanitise one more time (the
> compilation failure is the v4l2 drm prime patch). There’s no need to
> make any changes for the android build.
>
> Regards
> Mark
>
> On Wed, 22 Jul 2020 at 18:04, Peter Bennett <pb.mythtv@gmail.com
> <mailto:pb.mythtv@gmail.com>> wrote:
>
> Hi Mark
>
> The new ffmpeg is causing this compile error
>
> libavcodec/v4l2_buffers.c:24:10: fatal error: 'drm_fourcc.h' file
> not found
> #include <drm_fourcc.h>
>          ^~~~~~~~~~~~~~
>
> This is the same error as happened in Ubuntu (see below). On
> ubuntu it was solved by installing libdrm-dev.
>
> What is the process for including another lib (librm-dev) in the
> android package? Do you have a recipe for this?
>
> Peter
>
>
Following today's commit
https://github.com/MythTV/mythtv/commit/a1e378ad431c74c029fb4aba0bc34194838672e1
, the android build is now fine, so we don't need to change it.

Peter
Re: Compile failure : android mythfrontend [ In reply to ]
On 26/07/2020 20:24, Peter Bennett wrote:
>

>>
> Following today's commit
> https://github.com/MythTV/mythtv/commit/a1e378ad431c74c029fb4aba0bc34194838672e1
> , the android build is now fine, so we don't need to change it.
>
> Peter
>

Yes: I have Peter's new build on my fireTVstick 4k with the backend at
the same commit. And I found recently that 'Play Videos' works well
with my old MythArchive DVD .isos. Hardly 4k, but welcome. Thank you
to all...

John P


_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org