[Openchrome-users] Building openchrome with XFree86-4.6.0.0
Barry Scott
barry.scott
Mon May 22 06:35:14 PDT 2006
Mr E_T wrote:
> On Wednesday 17 May 2006 15:47, Mr E_T wrote:
>
>> I have a problem building openchrome with XFree86
>> First it could not find drm.h so I copied it from -
>> lib/GL/dri/drm/drm.h to the unichrome dir.
>>
>>
>
> Solved - in via_driver.c
> this line (405) -
> static pointer VIASetup(pointer module, pointer opts, int *errmaj, int *errmin)
>
> should read -
> static pointer VIASetup(ModuleDescPtr module, pointer opts, int *errmaj, int *errmin)
>
> also in via.h
> xf86Version.h should be included instead of xorgVersion.h
>
> the compile does not find includes in -
> programs/Xserver/hw/xfree86/os-support/shared/drm/kernel
> (drm.h and drm_sarea.h)
>
>
You will also need this to get XVIDEO working:
Index: unichrome/via_video.c
===================================================================
--- unichrome/via_video.c (revision 186)
+++ unichrome/via_video.c (working copy)
@@ -73,6 +73,12 @@
#define XV_IMAGE 0
#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE)
+#ifdef XF86_VERSION_MAJOR
+#if XF86_VERSION_MAJOR >= 4 && XF86_VERSION_MINOR >= 6
+#define XvExtension
+#endif
+#endif
+
#ifndef XvExtension
void
viaInitVideo(ScreenPtr pScreen)
4.6.0 no longer makes XVIDEO optional.
Barry
More information about the Openchrome-users
mailing list