Log in or register to post comments

Fix for bug in Eclipse Shared workspace for MacOS (and most likely *nix)

October 12, 2010 - 5:26pm #1

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

#!/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

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 :
${workspace_loc:/com_qualcomm_QCARSamples_Shared/.externalToolBuilders/copyQCARLibs.sh}

Working Directory:
${workspace_loc:/com_qualcomm_QCARSamples_Shared}

Re: Fix for bug in Eclipse Shared workspace for MacOS (and most

October 13, 2010 - 8:57am #4

Huh that is weird... but as long as its working! :)

Re: Fix for bug in Eclipse Shared workspace for MacOS (and most

October 13, 2010 - 1:42am #3

The problem was fixed!!!

My friend, @javakung, suggest me to simply rename folder ".externalToolBuilders" to "externalToolBuilders", to make Eclipse can see the copyQCARLibs.sh file. Then everything work fine :D

Dont know this is an OS's or Eclipse's problem. Eclipse can access file ".externalToolBuilders/copyQCARLibs.bat" (which Eclipse doesn't know Windows syntax) but cannot access file ".externalToolBuilders/copyQCARLibs.sh".

Re: Fix for bug in Eclipse Shared workspace for MacOS (and most

October 12, 2010 - 8:51pm #2

Thank you for sharing. I'm facing this problem too.

Anyway, after editing you mentioned, I still have this error

Error
Wed Oct 13 10:45:50 ICT 2010
Variable references non-existent resource : ${workspace_loc:/com_qualcomm_QCARSamples_Shared/.externalToolBuilders/copyQCARLibs.sh}

I'm using Ubuntu 9.10

any suggestion?

Thank you :)

Log in or register to post comments