Log in or register to post comments

Kindly help reg running QCAR app after integrating with eclipse

January 22, 2012 - 5:59pm #1

I had been working with QCAR, Unity and Eclipse for the last 2 weeks. I am able to get the ImageTargets sample app run through Unity. But, after I integrated with eclipse, I am completely unable to run the app. It just blacksout and the the following error appears:
Unable to find QCARWrapper
To overcome this, I added libs folder from Unity project to custom android project. But sadly I get a new error that says:

01-22 20:42:30.697: E/dalvikvm(14288): Failed adding to JNI local ref table (has 512 entries)

I tried copying the assets again but I keep on getting this error:

D/dalvikvm(18696): Trying to load lib /data/data/com.image.targets/lib/libQCARWrapper.so 0x40516bf8
E/Unity(18696): Unable to find QCARWrapper

I would really appreciate if someone could help me out with this. I have been working on this integration since the last 3 days with no success. I had followed each and every step carefully and did the entire process about 5-6 times in vain. For integration, I am following the link:

http://unity3d.com/support/documentation/Manual/Android-Integrating%20Unity%20With%20Eclipse.html

I copied all the assets, libs and raw files from Unity project to the custom android project. Someone please help me with this

ThankYou!

Re: Kindly help reg running QCAR app after integrating with ecli

May 13, 2012 - 7:24pm #9

Did you use the same package name (com.MWorks.EclipseTest) as the bundle id when you built the Unity project? I think that's important.

If that's not the issue, try moving your activity to be the last one in the manifest. I seem to recall someone mentioning that fixing a similar issue (although I don't know why that would be the case!)

Is your activity meant to be the entry-point of the application? You'll need to move the MAIN and LAUNCHER intent filters in that case.

- Kim

Re: Kindly help reg running QCAR app after integrating with ecli

May 11, 2012 - 9:12pm #8

Hi Kim! ...it's again me!

I'm afraid I'm still having some troubles (Noob ones). The problem now, is that my eclipse project's manifest doesn't seem to be well configured. I don't know how to "merge" the ar manifest with my intents.

What I have, is an AR project (made in unity) running in eclipse (it works as a charm) but I can't use my intends created in the java main file (the one with the project name). How do I merge them? If I change the name of the main activity from QCar to ".MyProjectName" everything works but the camera doesn't start...

Atached is the working manifest.. how you you think should I merge it to "include" my intends made in the eclipse java file? I know this is a really noob question but I don't understand too much about manifest files....

Thank you in advance!!

Edited:
I have added the log file, I have find an error that says: getMethodID("Launch", "()V") FAILED!

I thing it's every time I call that method from unity (it's located in the android java file).

Maybe my manifest it's working but somehow every time I call the method from unity it fails... hope you can help me man!!

Re: Kindly help reg running QCAR app after integrating with ecli

May 11, 2012 - 5:33pm #7

Thank you very much!! I was pulling my hair out for this!! It was only that I needed to "rearange" the qcar folder... once done it started working like a charm. Have a nice day man!!

Re: Kindly help reg running QCAR app after integrating with ecli

May 11, 2012 - 11:14am #6

Hmm, that log file didn't seem to come through correctly. What errors are you seeing?

Have you tried running your application from Unity (and does it work)? Make sure you've selected the dataset to load and activate on the ARCamera.

The .dat and .xml files should be in the assets/QCAR folder of your final Eclipse project. See the screenshot on this post: http://ar.qualcomm.at/node/2001243

You should be able to use the manifest from the StagingArea project (copy it to your final project, replacing the existing manifest file). You'll need to update this file with your class names and package names if you make any changes.

- Kim

Re: Kindly help reg running QCAR app after integrating with ecli

May 10, 2012 - 10:59pm #5

Hi Kim!! I have the project finally working!!

What I did was to replace the android manifest file from my staging area into the eclipse project. After that it compiled as a charm... but something went wrong! haha, the app is launched, but it doesn't seem to recognize targets.

Do you have any clue what's happening?

Atached is my manifest file (the one I'm using now).
And the log from the moment I start the app, do some tests and close it. (It appear to be a couple of error logs ).

Re: Kindly help reg running QCAR app after integrating with ecli

May 10, 2012 - 10:35pm #4
Mworks wrote:

Hi Kim!! Thank you for your support!! ...but I have one question... I'm not able to find the "config.xml" and the .dat file in the raw folder, since I'm working with Vuforia version (I think it's new)... can you please help me here? :D

I think I need to give you more information:
-I followed the unity integration guide, and ended up with a working project in eclipse.
-Added classes
-After that I integrated the Vuforia project into my existing unity project (I like to work with already working copies).
-Once in eclipse, I tried to follow your guide "https://ar.qualcomm.at/arforums/showthread.php?t=478", but I can't find the files listed there; instead I find "StonesAndWood.dat" and "StonesAndWood.xml" files... guessing those could be the same files (because of the extention)
-After copying those files, I tried to copy the "AndroidManifest.xml" but I didn't knew what to do with the existent one(erase it?, Combine them?)

That's where everything starts going crazy!!

No mather what I do, the "Unable to find QCarWrapper" error is still appearing. Please give me some help since I'm with this problem for 1 week now.

If you need to see my files I can show you screen caps.

Re: Kindly help reg running QCAR app after integrating with ecli

May 10, 2012 - 9:22pm #3

Hi Kim!! Thank you for your support!! ...but I have one question... I'm not able to find the "config.xml" and the .dat file in the raw folder, since I'm working with Vuforia version (I think it's new)... can you please help me here? :D

Re: Kindly help reg running QCAR app after integrating with ecli

January 23, 2012 - 11:08am #2

http://ar.qualcomm.at/node/2000770

- Kim

Log in or register to post comments