ARToolkit Plus recipe for Gumstix Verdex

After much messing around, I was able to create a surprisingly compact bitbake recipe for compiling ARToolkit Plus in OpenEmbedded.  Since qmake and qt3-embedded are already well-supported packages, it was just a matter of creating the right patch to the bizarrely placed “build/linux/” file.  This turned out to be quite easy.

The two key things to know are that qmake really wants to use gcc for linking, and that hidden in the file are the cpu architecture flags.  That just means the following options are needed:

QMAKE_CXXFLAGS = -march=armv5te -mtune=xscale
LIBS += -lstdc++ -lm

Then, it’s a matter of convincing qmake to use the existing qt3-embedded mkspec file.  This was a bit tricky, and I’m still not sure I did it right.  My solution was to throw a couple of exports into the recipe:

export ARTKP=${S}

Then, voila, we have a recipe that yields an ipk that installs ARToolkit Plus into /usr/lib on our gumstix!  If anyone wants it, feel free to grab the tarball and stick it in user.collections/packages.

Tarball of recipe: artkplus.tar.gz

IPK binary package: libartoolkitplus2_2.1.1-r0_armv5te.ipk

This entry was posted in Hardware Hacking and tagged , , , , .


  1. armaris
    Posted 2010-04-16 at 06:42 | Permalink

    Interresting, just trying to install artoolkit on overo but it seems the recipe tarball is broken.
    I was able to download it but it’s impossible to decompress it (tar -xvf …).

  2. Posted 2010-04-21 at 16:47 | Permalink

    Whoops, thanks for catching that! For some reason, WordPress corrupted the file. I re-upped it, it should work now.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>