ARToolKit | Mailing List Archive |
![]() |
From: | Matthias De Geyter <mdegeyte@t .............> | Received: | Nov 4, 2003 |
To | artoolkit@h .................. | ||
Subject: | Installing ARToolKit for firewire DV camcorder | ||
Hi, I'm trying to get ARToolKit 2.61 running with a Sony DCR-TRV50E DV camcorder and Mandrake 9. The problem is that I can't compile it; I get the following error: cc -c -O -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I../../../include video.c video.c: In function `ar2VideoOpen': video.c:171: too few arguments to function `dv_decoder_new' video.c:175: too few arguments to function `dv_init' make[2]: *** [../../libARvideo.a(video.o)] Error 1 make[2]: Leaving directory `/fozzie/s/mdegeyte/camerastuff/ARToolKit2.61/lib/SRC/VideoLinuxDV' make[1]: *** [all] Error 2 make[1]: Leaving directory `/fozzie/s/mdegeyte/camerastuff/ARToolKit2.61/lib/SRC' make: *** [all] Error 2 So if I'm right, there is probably some mismatch between functions in headers and the ones used in the program? Is there perhaps an updated version available, or has anyone successfully made some changes? We're using kernel 2.4.19-16mdkenterprise. The camera works fine with dvgrab and kino, so our Linux firewire is OK. Compiling with the video4linux and ieee1394 digital camera configuration works. Greets, Matthias De Geyter |
From: | "Wayne Piekarski" <wayne@c ..............> | Received: | Nov 5, 2003 |
To | "Matthias De Geyter" <mdegeyte@t .............>, <artoolkit@h ..................> | ||
Subject: | Re: Installing ARToolKit for firewire DV camcorder | ||
>From the looks of it, the API functions for the libDV code has changed on you. I have no direct experience using libDV, but I do know that with libDC (which we use for our 1394 web cams), there was an API change from version 8 to version 9. The ARToolkit source code was designed to operate using v8, and so we had to modify the code to work with v9. V9 fixed up a lot of bugs with firewire handling, so it was worth the upgrade in this case. In your case, you can either install an older version of libDV, or you can make changes to the ARtoolkit code to use the change in API. Typically it is usually just an extra argument that you set to a default value. regards, Wayne ---------------------------------------------------------------------------- Wayne Piekarski - Researcher / Lecturer pho: +61-8-8302-3669 fax: +61-8-8302-3381 Assistant Director - Wearable Computer Lab mob: +61-407-395-889 School of Computer and Information Science ema: wayne@c .............. University of South Australia www: http://www.tinmith.net ----- Original Message ----- From: "Matthias De Geyter" <mdegeyte@t .............> To: <artoolkit@h ..................> Sent: Wednesday, November 05, 2003 1:26 AM Subject: Installing ARToolKit for firewire DV camcorder > Hi, > > I'm trying to get ARToolKit 2.61 running with a Sony DCR-TRV50E DV > camcorder and Mandrake 9. > The problem is that I can't compile it; > I get the following error: > > cc -c -O -I/usr/include/glib-1.2 -I/usr/lib/glib/include > -I/usr/X11R6/include -I../../../include video.c > video.c: In function `ar2VideoOpen': > video.c:171: too few arguments to function `dv_decoder_new' > video.c:175: too few arguments to function `dv_init' > make[2]: *** [../../libARvideo.a(video.o)] Error 1 > make[2]: Leaving directory > `/fozzie/s/mdegeyte/camerastuff/ARToolKit2.61/lib/SRC/VideoLinuxDV' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/fozzie/s/mdegeyte/camerastuff/ARToolKit2.61/lib/SRC' > make: *** [all] Error 2 > > So if I'm right, there is probably some mismatch between functions in > headers and the ones used in the program? > Is there perhaps an updated version available, or has anyone successfully > made some changes? We're using kernel 2.4.19-16mdkenterprise. > The camera works fine with dvgrab and kino, so our Linux firewire is OK. > Compiling with the video4linux and ieee1394 digital camera configuration > works. > > Greets, > > Matthias De Geyter > |
From: | "AR Labor Berlin" <ar@f ...............> | Received: | Nov 5, 2003 |
To | <mdegeyte@t .............> | ||
Subject: | Re: Installing ARToolKit for firewire DV camcorder | ||
This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C3A3A1.D395FC30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To solve the Problem with compiling the ARToolkit2.61 you have to follow = these steps: changes:=20 /lib/SRC/VideLinuxDV/video.c: Line74 in Funktion arVideoCapStart: vid->dv_decoder->arg_video_system=3D2; Line 171 in Funktion arVideoCapStart:=20 dv_decoder_new(0,0,0) =20 Line 175 in Funktion arVideoCapStart: dv_init(0,0); =20 If you use PAL cameras you will get an disordered image. To correct this = you have to do the following steps as well:=20 Line 190 in Funktion ar2VideoCapStart: vid->status=3D0; Line97 in ARToolKit2.61/include/AR/config.h: #define DEFAULT_VIDEO_MODE VIDEO_MODE_PAL=20 (Be careful, if you start "./Configure" again. It will create a new = config.h-File) =20 good luck AR Labor Berlin ------=_NextPart_000_0012_01C3A3A1.D395FC30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>To solve the Problem with compiling the = ARToolkit2.61 you have to follow these steps:</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial><FONT size=3D2> changes<EM>: = </EM></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT=20 size=3D2><EM>/lib/SRC/VideLinuxDV/video.c:</EM></FONT></FONT></DIV> <DIV><FONT face=3DArial><FONT size=3D2>Line74 in Funktion = arVideoCapStart:<SPAN=20 style=3D"FONT-FAMILY: 'Courier New'"><?xml:namespace prefix =3D o ns =3D = "urn:schemas-microsoft-com:office:office" = /><o:p></o:p></SPAN></FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 35.4pt; LINE-HEIGHT: 150%; = TEXT-ALIGN: justify"><SPAN=20 style=3D"FONT-FAMILY: 'Courier New'"><FONT=20 size=3D2>vid->dv_decoder->arg_video_system=3D2;<o:p></o:p></FONT></= SPAN></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify; = mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT=20 size=3D2>Line 171 in Funktion arVideoCapStart: </FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: 17.4pt; LINE-HEIGHT: = 150%; TEXT-ALIGN: justify"><FONT=20 size=3D2><SPAN=20 style=3D"FONT-FAMILY: 'Courier = New'">dv_decoder_new(0,0,0)</SPAN> <SPAN=20 style=3D"mso-spacerun: yes"> </SPAN><SPAN=20 style=3D"mso-tab-count: = 2"> &nbs= p; </SPAN></FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify; = mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT=20 size=3D2>Line 175 in Funktion arVideoCapStart:<SPAN=20 style=3D"FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%; TEXT-ALIGN: = justify"><FONT=20 size=3D2><SPAN style=3D"FONT-FAMILY: 'Courier = New'">dv_init(0,0);</SPAN><SPAN=20 style=3D"mso-tab-count: = 4"> &nbs= p;  = ; </SPAN></FONT><FONT=20 size=3D2> </FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify; = mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT=20 size=3D2>If you use PAL cameras you will get an disordered image. = To correct=20 this you have to do the following steps as well: </FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify; = mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT=20 size=3D2>Line 190 in Funktion ar2VideoCapStart:<SPAN=20 style=3D"FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></DIV> <DIV class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%; TEXT-ALIGN: = justify"><FONT=20 size=3D2><SPAN=20 style=3D"FONT-FAMILY: 'Courier = New'">vid->status=3D0;</SPAN></FONT></DIV><SPAN=20 style=3D"FONT-FAMILY: 'Courier New'"> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><FONT face=3DArial><FONT size=3D2>Line97 in <I=20 style=3D"mso-bidi-font-style: = normal">ARToolKit2.61/include/AR/config.h:</I></FONT></FONT></P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2> #define DEFAULT_VIDEO_MODE VIDEO_MODE_PAL=20 </FONT></SPAN></P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2></FONT></SPAN> </P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2>(Be careful, if you start "./Configure" again. It will create a = new=20 config.h-File)</FONT></SPAN></P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"> </SPAN></P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2>good luck</FONT></SPAN></P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2></FONT></SPAN> </P> <P class=3DMsoNormal=20 style=3D"MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify"=20 align=3Dleft><SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'; = mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times = New Roman'; mso-ansi-language: DE; mso-fareast-language: DE; = mso-bidi-language: AR-SA"><FONT=20 size=3D2>AR Labor Berlin</FONT></SPAN></SPAN></P></FONT></BODY></HTML> ------=_NextPart_000_0012_01C3A3A1.D395FC30-- |
From: | "enrico_groups@l ........" <enrico_groups@l ........> | Received: | Nov 15, 2003 |
To | "wayne" <wayne@c ..............> | ||
Subject: | Re: Installing ARToolKit for firewire DV camcorder | ||
> From the looks of it, the API functions for the libDV code has chan= ged on > you. I have no direct experience using libDV, but I do know tha= t with libDC > (which we use for our 1394 web cams), there was an API ch= ange from version 8 > to version 9. The ARToolkit source code was design= ed to operate using v8, > and so we had to modify the code to work with = v9. V9 fixed up a lot of bugs > with firewire handling, so it was worth = the upgrade in this case. Is this code (or patch) publically available= ? I have not been able to find it on your website. Would it be possible= for you to send the code via email? Thank you in advance. Regards,= Enrico Costanza |