By mwynkoop
on Wed, 06/20/2012 - 17:02
There is a .bat script that is supposed to copy the QCAR libs from into the Shared workspace, unfortunately this doesn't work well under MacOS and Linux.
under /samples/Shared/.externalToolBuilders, add the following script:
copyQCARLibs.sh
[CODE]#!/bin/bash
if [ ! -d libs ]; then
mkdir libs
fi
cd libs
if [ ! -d ./armeabi ]; then
mkdir armeabi
fi
if [ ! -d ./armeabi-v7a ]; then
mkdir armeabi-v7a
fi
cd ..
cp ../../build/lib/armeabi/libQCAR.so libs/armeabi/
cp ../../build/lib/armeabi-v7a/libQCAR.so libs/armeabi-v7a/
if [ ! -e libs/armeabi/libQCAR.so ] || [ ! -e libs/armeabi-v7a/libQCAR.so ]; then
echo ========================================================================
echo ERROR: libQCAR.so could not be copied! Check your QCAR-SDK installation!
echo ========================================================================
else
echo =====================================================================
echo QCAR-SDK: libQCAR.so succesfully copied into Shared\libs directories!
echo =====================================================================
fi
[/CODE]
In Eclipse with the Shared project selected, under Project -> Properties -> Builders, remove the first builder which is something like "Import QCAR Libs", and add a new one with the following settings:
Location :
[CODE]${workspace_loc:/com_qualcomm_QCARSamples_Shared/.externalToolBuilders/copyQCARLibs.sh}[/CODE]
Working Directory:
[CODE]${workspace_loc:/com_qualcomm_QCARSamples_Shared}[/CODE]
Re: Fix for bug in Eclipse Shared workspace for MacOS (and most
Re: Fix for bug in Eclipse Shared workspace for MacOS (and most
Re: Fix for bug in Eclipse Shared workspace for MacOS (and most