Date: Sun, 19 Jul 1998 13:12:10 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: Minlin Fan <mfan@liverpool.ac.uk> Cc: multimedia@FreeBSD.ORG Subject: videocapture.c Message-ID: <199807192012.NAA10196@rah.star-gate.com>
next in thread | raw e-mail | index | archive | help
Not sure what is going on over there however there are plenty of folks
which will be able to help you .
Have Fun,
Amancio
------- Forwarded Message
Return-Path: mfan@liverpool.ac.uk
Received: from pcmail.liv.ac.uk (exim@pcmail.liv.ac.uk [138.253.252.13])
by rah.star-gate.com (8.8.8/8.8.8) with SMTP id DAA01566
for <hasty@rah.star-gate.com>; Fri, 17 Jul 1998 03:47:25 -0700 (PDT)
(envelope-from mfan@liverpool.ac.uk)
Received: from liv.ac.uk [138.253.32.6]
by pcmail.liv.ac.uk with esmtp (Exim 1.73 #2)
id 0yx82h-00026q-00; Fri, 17 Jul 1998 11:47:11 +0100
Sender: root@liverpool.ac.uk
Message-ID: <35AF2BB3.F3671C3C@liv.ac.uk>
Date: Fri, 17 Jul 1998 11:47:15 +0100
From: Minlin Fan <mfan@liverpool.ac.uk>
Organization: Dept. of Elec.Eng. & Electronics
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.33 i586)
MIME-Version: 1.0
To: hasty@rah.star-gate.com
Subject: consult for framegrabber
Content-Type: multipart/alternative; boundary="------------13DF4261ABFD86B4A4BC
4D4E"
- --------------13DF4261ABFD86B4A4BC4D4E
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 7bit
Hi Amancio Hasty,
I have a C programe written by you from
www.freebsd.org/~ahasty/files/videocapture.c
I got two problems:
1. The " sig_t done" and " sig_t do_write" generate error in
compile-time.
Here are the compile-time errors:
videocapture.c:84: parse error before `done'
videocapture.c:141: parse error before `do_write'
videocapture.c: In function `main':
videocapture.c:247: `sig_t' undeclared (first use this function)
videocapture.c:247: (Each undeclared identifier is reported only
once
videocapture.c:247: for each function it appears in.)
videocapture.c:247: parse error before `done'
2. I comment out these lines regarding " sig_t ". The compiling is
successful. But there are run-time errors in
the following codes:
i = 112;
if (ioctl(bt848, METEORSCONT, &i) < 0) {
fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
exit(0);
}
i = 0x30;
if (ioctl(bt848, METEORSBRIG, &i) < 0) {
fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
exit(0);
}
if (ioctl(bt848, METEORSETGEO, &geo) < 0) {
printf("ioctl failed: %d\n", errno);
exit(1);
}
Please help me and concentrate on the second problem. Because I got the
same problem in other similar program.
Thank you very much.
- --
M Fan
Dept. of Elec. Eng. & Electronics
Univ. of Liverpool
Brownlow Hill
Liverpool L69 3GJ, UK
mfan@liv.ac.uk
http://www.liv.ac.uk/~mfan/
=================================
- --------------13DF4261ABFD86B4A4BC4D4E
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 7bit
<HTML>
Hi Amancio Hasty,
<P>I have a C programe written by you from www.freebsd.org/~ahasty/files/videoc
apture.c
<BR>I got two problems:
<BR>1. The " sig_t done" and " sig_t do_write" generate error in compile-time.
<BR> Here are the compile-time errors:
<P> videocapture.c:84: parse
error before `done'
<BR> videocapture.c:141: parse
error before `do_write'
<BR> videocapture.c: In function
`main':
<BR> videocapture.c:247: `sig_t'
undeclared (first use this function)
<BR> videocapture.c:247: (Each
undeclared identifier is reported only once
<BR> videocapture.c:247: for
each function it appears in.)
<BR> videocapture.c:247: parse
error before `done'
<P>2. I comment out these lines regarding " sig_t ". The compiling is
successful.
But there are run-time errors in
<BR> the following codes:
<P> i = 112;
<BR> if (ioctl(bt848, METEORSCONT,
&i) < 0) {
<BR> &nb
sp;
fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
<BR> &nb
sp;
exit(0);
<BR> }
<P> i = 0x30;
<BR> if (ioctl(bt848, METEORSBRIG,
&i) < 0) {
<BR> &nb
sp;
fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
<BR> &nb
sp;
exit(0);
<BR> }
<BR>
<P> if (ioctl(bt848, METEORSETGEO,
&geo) < 0) {
<BR> &nb
sp;
printf("ioctl failed: %d\n", errno);
<BR> &nb
sp;
exit(1);
<BR> }
<P>Please help me and concentrate on the second problem. Because I got
the same problem in other similar program.
<BR>Thank you very much.
<BR>
<PRE>--
M Fan
Dept. of Elec. Eng. & Electronics
Univ. of Liverpool
Brownlow Hill
Liverpool L69 3GJ, UK
mfan@liv.ac.uk
<A HREF="http://www.liv.ac.uk/~mfan/">http://www.liv.ac.uk/~mfan/</A>
=================================</PRE>
</HTML>
- --------------13DF4261ABFD86B4A4BC4D4E--
------- End of Forwarded Message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807192012.NAA10196>
