[Kstars-devel] compile error in webcam

Jason Harris kstars at 30doradus.org
Mon Apr 17 21:14:01 CEST 2006


I'm getting the following on my Fedora Core 3 box at work:

Building CXX object kstars/kstars/indi/CMakeFiles/meade_lpi.dir/v4ldriver.o
In file included from 
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/webcam/v4l2_base.h:28,
                  from 
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/v4ldriver.h:54,
                  from 
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/v4ldriver.cpp:22:
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/webcam/videodev2.h:487: 
error: `__u64' does not name a type
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/webcam/videodev2.h:558: 
error: `v4l2_std_id' does not name a type
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/webcam/videodev2.h:576: 
error: `v4l2_std_id' does not name a type
/home/jharris/KDE/kde-svn/kde4svn/kdeedu/kstars/kstars/indi/webcam/videodev2.h:613: 
error: `v4l2_std_id' does not name a type

Since videodev2.h has "typedef __u64 v4l2_std_id" near the top, I guess 
the only real problem here is that the compiler doesn't recognize 
"__u64" for some reason.

My /usr/include/asm/types.h has these lines:
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif

So perhaps I have __STRICT_ANSI__ defined, although I can't see where 
types.h is included.

Jason



More information about the Kstars-devel mailing list