Log in or register to post comments

Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 2:51am #1

Hello,

I'm currently trying to use new sdk and ndk. But every time I try to build with Eclipse, I have this error:

"Problems occurred building the selected resources.
Errors running builder 'Integrated External Tool Builder' on project 'ImageTargets'.
The file does not exist for the external tool named Import QCAR (Win).
The file does not exist for the external tool named Import QCAR (Win)."

I don't understand what's wrong with my configuration. Moreover, is it normal that there is no "Shared" project in the folder "samples" of the new sdk?

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 9:16am #8

Hi Kim and thank you for your answer,

Actualy, I'm trying to compile the ImageTargets project from the initial directory: samples.

All path are well configured. I'll try to uninstall and re-install all. Maybe I've done something wrong...

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 8:16am #7

Okay, a couple questions:

1) What have you named your project?
2) Is your project in the samples directory of the release?

The easiest way for you to troubleshoot this will be to understand how the builders work. Right-click on your project in the Package Explorer and choose Properties. Choose Builders from the list on the left. Select the "Import QCAR (Win)" builder and choose Edit...

First off, you will need to make sure that the project name used in the Working Directory and Arguments field matches the name of the project. For the ImageTargets sample, the Working Directory should be:

${workspace_loc:/ImageTargets}

And the Arguments should be:

/c ${workspace_loc:/ImageTargets/.externalToolBuilders/copyQCARLibs.bat}

Replace "ImageTargets" in these two lines with the name of your project, should you rename it.

Now we can see that this builder executes the copyQCARLibs.bat file in the .externalToolBuilders directory. This directory is hidden, so you may need to set your file explorer to show hidden files and folders. the .externalToolBuilders folder is in the top level of the project. Open copyQCARLibs.bat with a text editor, and you can see what it is trying to do. It copies the following files:

..\..\build\lib\armeabi\libQCAR.so to libs\armeabi\
..\..\build\lib\armeabi-v7a\libQCAR.so to libs\armeabi-v7a\

The relative paths show you that this project is expected to be placed relative to the QCAR build directory. This builder will work from inside the samples folder, but you can modify it if you'd like to move the project elsewhere.

The purpose of this builder is to copy those libQCAR.so files to the libs folder. This is necessary, because every time you run ndk-build for your project all .so files are deleted from these directories.

I'm not yet sure why your build is breaking, but checking the project name and location are the first steps. Also try cleaning the project in Eclipse, just in case.

- Kim

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 7:46am #6

I'm using Windows.

All my path and variables are configured as asked:

-windows path for the ndk
-eclipse path for qcar sdk 0-10-0

Please take a look at my log in enclosed file.

Thx!

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 6:25am #5

Yeah that got it.
Had to tinker about with a few other things but we're good to go.
Thanks Kim.

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 5:58am #4

First of all, be sure that you are selecting the correct "Import QCAR" builder for your operating system. This version of the SDK comes with builders for both Windows and Mac/Linux. On Mac/Linux, you need to switch to the bash builder by doing the following:

Right-click on the project in the Package Explorer, and choose Properties. Select Builders, uncheck the "Import QCAR (Win)" builder and check the "Import QCAR (bash)" builder.

Second, if you are on Mac/Linux you need to make a small adjustment to the Android.mk file. For each sample, open the Android.mk file in the jni directory. Then change this line:

QCAR_LOCAL_PATH := $(shell cygpath –m $(LOCAL_PATH)/../../../build/lib/$(TARGET_ARCH_ABI))

to this:

QCAR_LOCAL_PATH := $(LOCAL_PATH)/../../../build/lib/$(TARGET_ARCH_ABI)

Please note that this is documented in the Get Started guide, Step 3, Compile the Shared Object.

- Kim

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 3:48am #3

Also getting this:
make: cygpath: Command not found
make: cygpath: Command not found
SharedLibrary : libImageTargets.so
/home/robertross/Development/android-ndk-r5/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: cannot find -lQCAR

Using Linux

Re: Issue with qcar-sdk-0-10-0 and ndk-r5

December 20, 2010 - 3:19am #2

I have that same problem as you do.
But to answer your other questions, the stuff that was in the Shared folder has been integrated to create stand alone applications.

Log in or register to post comments