Re: [yocto] [meta-raspberrypi] Errors building

2017-03-11 Thread Khem Raj


On 3/11/17 2:12 AM, Gary Thomas wrote:
> If I build for RaspberryPi-3 with vc4graphics enabled, I get
> this error building omxplayer:
> 
> | In file included from linux/RBP.h:45:0,
> |  from linux/RBP.cpp:22:
> | ./DllBCM.h:34:22: fatal error: bcm_host.h: No such file or directory
> |  #include 
> |   ^
> | compilation terminated.
> | Makefile:44: recipe for target 'linux/RBP.o' failed
> | make: *** [linux/RBP.o] Error 1
> | make: *** Waiting for unfinished jobs
> | In file included from OMXCore.h:32:0,
> |  from OMXClock.h:27,
> |  from OMXReader.cpp:29:
> | DllOMX.h:36:25: fatal error: IL/OMX_Core.h: No such file or directory
> |  #include 
> |  ^
> | compilation terminated.
> | Makefile:44: recipe for target 'OMXReader.o' failed


omxplayer knows too much about rpi and assumes that you always use
userland for graphics. It need some surgery to get it working with
vc4graphics driver, not that easy to fix.

> 
> If I disable the vc4graphics, I can't build webkitgtk:
> 
> |
> /build/rpi3_2016-09-13/tmp/work/cortexa7t2hf-neon-vfpv4-amltd-linux-gnueabi/webkitgtk/2.14.5-r0/webkitgtk-2.14.5/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp:
> In static member function 'static void*
> WebCore::GLContextEGL::createWindowSurfaceX11(EGLDisplay, EGLConfig,
> GLNativeWindowType)':
> |
> /build/rpi3_2016-09-13/tmp/work/cortexa7t2hf-neon-vfpv4-amltd-linux-gnueabi/webkitgtk/2.14.5-r0/webkitgtk-2.14.5/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp:42:91:
> error: invalid static_cast from type 'GLNativeWindowType {aka long long
> unsigned int}' to type 'EGLNativeWindowType {aka void*}'
> |  return eglCreateWindowSurface(display, config,
> static_cast(window), nullptr);
> 

I have seen this error, but never got time to look closer. Just to let
you know you are not alone.

> Using current master of Poky/Yocto & meta-raspberrypi
> meta  = "master:d454dc2fc17711d3efe6dbe5aca3c734f0ed158b"
> meta-raspberrypi  = "master:c768a3d1aed8d16d08afe12fddb359914e0a203a"
> 
> Ideas?  Ideally, I'd like both of these packages in my image for the rpi3.
> 
> Thanks
> 
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-raspberrypi] Errors building

2017-03-11 Thread Gary Thomas

If I build for RaspberryPi-3 with vc4graphics enabled, I get
this error building omxplayer:

| In file included from linux/RBP.h:45:0,
|  from linux/RBP.cpp:22:
| ./DllBCM.h:34:22: fatal error: bcm_host.h: No such file or directory
|  #include 
|   ^
| compilation terminated.
| Makefile:44: recipe for target 'linux/RBP.o' failed
| make: *** [linux/RBP.o] Error 1
| make: *** Waiting for unfinished jobs
| In file included from OMXCore.h:32:0,
|  from OMXClock.h:27,
|  from OMXReader.cpp:29:
| DllOMX.h:36:25: fatal error: IL/OMX_Core.h: No such file or directory
|  #include 
|  ^
| compilation terminated.
| Makefile:44: recipe for target 'OMXReader.o' failed

If I disable the vc4graphics, I can't build webkitgtk:

| 
/build/rpi3_2016-09-13/tmp/work/cortexa7t2hf-neon-vfpv4-amltd-linux-gnueabi/webkitgtk/2.14.5-r0/webkitgtk-2.14.5/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp: 
In static member function 'static void* WebCore::GLContextEGL::createWindowSurfaceX11(EGLDisplay, EGLConfig, 
GLNativeWindowType)':
| 
/build/rpi3_2016-09-13/tmp/work/cortexa7t2hf-neon-vfpv4-amltd-linux-gnueabi/webkitgtk/2.14.5-r0/webkitgtk-2.14.5/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp:42:91: 
error: invalid static_cast from type 'GLNativeWindowType {aka long long unsigned int}' to type 'EGLNativeWindowType {aka 
void*}'

|  return eglCreateWindowSurface(display, config, 
static_cast(window), nullptr);

Using current master of Poky/Yocto & meta-raspberrypi
meta  = "master:d454dc2fc17711d3efe6dbe5aca3c734f0ed158b"
meta-raspberrypi  = "master:c768a3d1aed8d16d08afe12fddb359914e0a203a"

Ideas?  Ideally, I'd like both of these packages in my image for the rpi3.

Thanks

--

Gary Thomas |  Consulting for the
MLB Associates  |Embedded world

--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto