[pxc] pxc200 compilation error
Alessandro Rubini
rubini@gnu.org
Thu, 25 Jul 2002 08:48:44 +0200
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