Log in or register to post comments

Building Sample App ImageTargets in Linux - Bat File?

October 19, 2010 - 1:41pm #1

Looks like a dos .bat file sneaked in to the linux bin.
Any chance there's a shell script in the Mac bundle?
Not a big chore, but I'm feeling lazier than usual. ;o)

Re: Building Sample App ImageTargets in Linux - Bat File?

November 17, 2010 - 11:28am #4

ahh sweet this is exactly what i am looking for.. thanks!

Re: Building Sample App ImageTargets in Linux - Bat File?

October 20, 2010 - 9:10am #3

Thanks - yes I embarrassed myself a few minutes later by discovering that.

Substituting the following as a script in the eclipse project sufficed (for others unwilling to wait) - Let my embarrassment be your boon. And yes, it took all of 45 seconds to do myself.

Thanks for your time all the more, Dave

#!/bin/bash

if [ ! -f ./libs ]
  then
    mkdir libs
fi
cd libs
if [ ! -f ./armeabi ]
  then
    mkdir armeabi
fi
if [ ! -f ./armeabi-v7a ]
  then
    mkdir armeabi-v7a
fi

cd ..
cp ../../build/lib/armeabi/libQCAR.so libs/armeabi/ > NUL
cp ../../build/lib/armeabi-v7a/libQCAR.so libs/armeabi-v7a/ > NUL

if [ ! -f libs/armeabi/libQCAR.so ]
then
  echo "ERROR: libQCAR.so could not be copied! Check your QCAR-SDK installation!"
  exit
fi

echo "QCAR-SDK: libQCAR.so succesfully copied into Shared/libs directories!"

Re: Building Sample App ImageTargets in Linux - Bat File?

October 20, 2010 - 9:03am #2

Hello,

Per the Get Started documentation, support for development with QCAR SDK is limited to WinXP 32 bit platform. That being said, this is a known limitation for Mac OS X and Linux installations and can be worked around by manually executing the steps found in the copyQCARlibs.bat for your given OS.

Thanks, Dave

Log in or register to post comments