From tmh31@cam.ac.uk  Tue Jul 23 15:43:25 2002
From: tmh31@cam.ac.uk (Timothy Hospedales)
Date: Tue, 23 Jul 2002 15:43:25 +0100
Subject: [pxc] pxc200 compilation error
Message-ID: <20020723154325.D945@cam.ac.uk>

Hello, 
	When I try to compile my program which is to use the PXC200
device, I get a strange error in spinlock.h. Does anyone have ideas
about how to fix this?

g++ -O3 -fomit-frame-pointer -I/usr/include/qt -I/usr/lib/qt-2.3.0/include/ -I/home/tmh31/include/ -Wall -c EyeTracker.cpp -o EyeTracker.o 
In file included from /usr/include/linux/spinlock.h:35,
                 from /home/tmh31/include/pxc200.h:27,
                 from FrameSource.h:23,
                 from EyeTracker.cpp:27:
/usr/include/asm/spinlock.h: In function `void read_lock(rwlock_t *)':
/usr/include/asm/spinlock.h:157: parse error before `::'
/usr/include/asm/spinlock.h:158: confused by earlier errors, bailing out
make: *** [EyeTracker.o] Error 1

I am using Debian 3.0 with gcc/g++ 2.95.2

Thanks,
Tim

From rubini@gnu.org  Thu Jul 25 07:48:44 2002
From: rubini@gnu.org (Alessandro Rubini)
Date: Thu, 25 Jul 2002 08:48:44 +0200
Subject: [pxc] pxc200 compilation error
In-Reply-To: <20020723154325.D945@cam.ac.uk>
References: <20020723154325.D945@cam.ac.uk>
Message-ID: <20020725084844.A21425@morgana.systemy.it>

Hi.

> 	When I try to compile my program which is to use the PXC200
> device, I get a strange error in spinlock.h. Does anyone have ideas
> about how to fix this?

Actually, no user application should end up including <asm/spinlock.h>,
as far as I know. 

> g++ -O3 -fomit-frame-pointer -I/usr/include/qt -I/usr/lib/qt-2.3.0/include/ -I/home/tmh31/include/ -Wall -c EyeTracker.cpp -o EyeTracker.o 

This is not related to the pxc device driver, though.... Hmm...

> In file included from /usr/include/linux/spinlock.h:35,
>                  from /home/tmh31/include/pxc200.h:27,
>                  from FrameSource.h:23,
>                  from EyeTracker.cpp:27:

Ok, pxc200.h includes <linux/spinlock.h>, so this *is* related.

I've been offline (I downloaded your email just before leaving).  I'll
send you a fix in a pair of days. I think mostly the problem is in
pxc200.h not being cplusplus-ready.

As a quick fix, just remove inclusion of <linux/spinlock.h>. It isn't
used by apps (it's only used in the #ifdef __KERNEL__ part of the
header).

Oh, btw, if you could give a pointer to such eyetracker software that
would be great for testing compilation. I assume it is Free Software.

/alessandro

From rubini@gnu.org  Sat Jul 27 09:15:29 2002
From: rubini@gnu.org (Alessandro Rubini)
Date: Sat, 27 Jul 2002 10:15:29 +0200
Subject: [pxc] parameters for pxc
Message-ID: <20020727101529.A11654@morgana.systemy.it>

I've just committed all the changes I implemented in these days.
Now all parameters (brightness etc) are per-input, so switching the
input multiplexer restores the parameters for the other input.

Additionally, it will be possible (using pxc_param) to load parameters
dumped at a previous time. The program currently has only the "dump"
part implemented.

I'll fix the final details during next week and release 0.82. Meanwhile
I've made a CVS snapshot available, at
	ftp://ar.linux.it/pub/pxc/
and tomorrow from
	ftp://ftp.linux.it/pub/People/rubini/pxc/

This work has been sponsored by Michael Bianchi.

/alessandro

From marius@tbs.co.za  Mon Jul 29 09:48:28 2002
From: marius@tbs.co.za (Marius van Wyk)
Date: Mon, 29 Jul 2002 10:48:28 +0200
Subject: [pxc] parameters for pxc
In-Reply-To: <20020727101529.A11654@morgana.systemy.it>
Message-ID: <5.1.1.6.2.20020729104505.02b193b0@pop3.tbs.co.za>

Woo-woo... Can't wait for the new release.

I just wanted to ask a question; What is the difference between the /dev/video standard devices and modules that comes with a RedHat installation, and the pxc drivers you have written...

I have tested a Bt878 on the RedHat using Gnomemeeting, but don't know the details of the inner workings and capabilities.

Regards,
Marius.

At 10:15 2002.07.27, you wrote:

>I've just committed all the changes I implemented in these days.
>Now all parameters (brightness etc) are per-input, so switching the
>input multiplexer restores the parameters for the other input.
>
>Additionally, it will be possible (using pxc_param) to load parameters
>dumped at a previous time. The program currently has only the "dump"
>part implemented.
>
>I'll fix the final details during next week and release 0.82. Meanwhile
>I've made a CVS snapshot available, at
>        ftp://ar.linux.it/pub/pxc/
>and tomorrow from
>        ftp://ftp.linux.it/pub/People/rubini/pxc/
>
>This work has been sponsored by Michael Bianchi.
>
>/alessandro
>_______________________________________________
>pxc mailing list
>pxc@lists.linux.it
>http://lists.linux.it/listinfo/pxc



