From owner-freebsd-questions Fri Nov 17 7:10:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wop21.wop.wtb.tue.nl (wop21.wop.wtb.tue.nl [131.155.56.216]) by hub.freebsd.org (Postfix) with ESMTP id CE04537B479 for ; Fri, 17 Nov 2000 07:10:31 -0800 (PST) Received: (from karelj@localhost) by wop21.wop.wtb.tue.nl (8.9.3/8.9.3) id QAA09646; Fri, 17 Nov 2000 16:06:50 +0100 (CET) (envelope-from karelj) Date: Fri, 17 Nov 2000 16:06:48 +0100 From: "Karel J. Bosschaart" To: Glenn Johnson Cc: questions@FreeBSD.ORG Subject: Re: building XFree84-4 DRI Message-ID: <20001117160648.A2075@wop21.wop.wtb.tue.nl> Reply-To: K.J.Bosschaart@wtb.tue.nl References: <20001116115710.A23045@node7.cluster.srrc.usda.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20001116115710.A23045@node7.cluster.srrc.usda.gov>; from gjohnson@nola.srrc.usda.gov on Thu, Nov 16, 2000 at 11:57:11AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 16, 2000 at 11:57:11AM -0600, Glenn Johnson wrote: > I would like to try out 3D acceleration on my Matrox G400 but I cannot > get DRI compiled. I scoured the mail archives and apparently this has > worked for some people in the past, with FreeBSD 4.1. I am currently > running FreeBSD 4.2-BETA. I changed the version checks in drmP.h > because 4.2-BETA has agpgart and taskqueue. Here is the error message I > get when I try to compile: > > ===> drm > Warning: Object directory not changed from original > /usr/ports/x11/XFree86-4/work/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/drm > cc -O -pipe -I.. -I/sys/pci -I/usr/include/sys -D_KERNEL -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE > -nostdinc -I- -I.. -I/sys/pci -I/usr/include/sys -I. -I@ -I@/../include > -mpreferred-stack-boundary=2 -c init.c > In file included from init.c:33: > ../drmP.h:599: syntax error before `struct' > ../drmP.h:599: syntax error before `void' > *** Error code 1 > If I remember correctly, this error can be avoided by replacing SYSCTL_HANDLER_ARGS by (SYSCTL_HANDLER_ARGS) in the source code on several places. Did you find the url http://wop21.wop.wtb.tue.nl/freebsd/hwaccel.txt ? I mailed it to the -multimedia list some time ago, it's a very dirty list of things I've done to get DRI to work with a G400. Most info in there is from the mailing lists btw, including the above enclosing in brackets. > I get the same error when trying to compile. Has anyone compiled DRI > from XFree86-4 on a recent FreeBSD-4.2 system? > I compiled on 4.1 but I expect 4.2 will work as well. Concerning hardware acceleration: some screensavers with GL work wonderfull, and also glclock works, although it sometimes fails. I did not succeed in getting linux binaries (games) to use the hardware acceleration :-(. Karel. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message