ARToolkit problems with Ubuntu 9.10

In our project we have the ARToolkit installed on several machines, and not all machines have problems with the V4L version of the toolkit, so you could try out the V4L version before resorting to the GStreamer version.

If you encounter the following error: “error: acquireing channel(0) info” it probably means you should configure the ARToolkit for GStreamer. Apparently this is due to some problems using V4L2 libraries, which is not supported by ARToolkit.
To do this you should re-run configure and make in the root of the ARToolkit to rebuild the toolkit. It is important to remember to clean the previous installation before reconfiguring. This can be done by running “make clean” in the root folder of the toolkit.
When configuring select option 5 “GStreamer” and choose the rest of the options that are appropriate for your system. After compilation you should be able to run the “simpleTest” demo.

If the default options does not work with the simpleTest example, it might be necessary to specify some options before running the example. Try running the following command to set options for ARVideo.

export ARTOOLKIT_CONFIG="v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! capsfilter caps=video/x-raw-rgb,bpp=24 ! identity name=artoolkit ! fakesink"

Remember to change the device string to point to right camera source.

3 comments to ARToolkit problems with Ubuntu 9.10

  • Anna

    The alternative for fixing this problem, if you do not have GStreamer, is to use video4linux library preload when lauching the ./simpleTest by the instruction

    LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so

  • Hello Guys,
    I’ve been trying for a couple of hours to figure out How get this working on Ubuntu 10.04.
    I’m using amd64 arquitecture, v4l and I tryied the LD_PRELOAD, but I got ERROR: ld.so: object ‘/usr/lib32/libv4l/v4l1compat.so’ from LD_PRELOAD cannot be preloaded: ignored.

    v4l is working aside this, I can’t get working with the library.
    I’m trying to see this working on linux, for start coding on free time, but I’m unable to.,

    any help would be appreciated.

    Thanks.

  • answer to myself and probably others:

    LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

    that works perfect, thanks Anna for your post.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>