Log in or register to post comments

FrameMarkers Sample Crashes on HTC EVO 4G

December 13, 2010 - 11:17am #1

I was able to run the ImageTargets sample on the HTC EVO 4G, but when I try running FrameMarkers I get a "process com.qualcomm.QCARSamples.FrameMarkers" has stopped unexpectedly.

I am using NDK r4b and qcar-sdk-0-9-7.

Anyone been able to run this successfully, or have any ideas?

Thanks....

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 15, 2010 - 12:16pm #11

You probably have another make utility on your system path. Try running the following command in Cygwin before running ndk-build:

export GNUMAKE=/usr/bin/make

Here is another thread that deals with this issue. This user had to uninstall a
Win32 Make utility:

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

- Kim

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 15, 2010 - 12:04pm #10

i run ndk-build from the Cygwin command line but i got error
"Error: You are using a non-Cygwin compatible Make Program"

and there were steps how to solve that so i download GNU make 3.81 and i build it again but i got the same error.

So what?

Ref3at

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 14, 2010 - 4:53pm #9

Ah, you're trying to create a builder inside Eclipse to run ndk-build? We recommend simply running ndk-build from the Cygwin command line. Follow the instructions in Step 3 of the Get Started guide, found on our home page:

https://ar.qualcomm.com/qdevnet/

Be sure to name the Shared project com_qualcomm_QCARSamples_Shared inside of Eclipse. Run ndk-build, from Cygwin, in both the Shared and FrameMarkers project directories. Then, in Eclipse, Refresh the Shared project (right-click in Package Explorer and choose Refresh). Build the Shared project. Then Refresh and build the FrameMarkers project.

You said you were running under a Virtual Machine, what is your computer's main operating system? The SDK works for Mac and Linux as well, and in that case you don't need Cygwin.

- Kim

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 14, 2010 - 4:11pm #8

Hi Kim
I am running that under Virtual Machine (WinXp pro)
Using NDK r4b
Then i added New->Android Project and select Shared folder from sample
then i built it using ndk builder and i got the .so files

Then i added the FrameMakers with the same steps and when i am creating the builder (ndk builder) from Right-Click on FrameMakers->Properties and i make the builder and press ok, i got error Errors occurred during the build.
"Building Workspace" has encountered a problem , Error occurred during the building
"Errors occurred during the build.
Errors running builder 'Integrated External Tool Builder' on project 'FrameMarkers'.
Exception occurred executing command line.
Cannot run program "C:\Android_NDK\ndk-build" (in directory "C:\Development\Android\qcar-sdk-0-9-7\samples\FrameMarkers"): CreateProcess error=193, %1 is not a valid Win32 application
Exception occurred executing command line.
Cannot run program "C:\Android_NDK\ndk-build" (in directory "C:\Development\Android\qcar-sdk-0-9-7\samples\FrameMarkers"): CreateProcess error=193, %1 is not a valid Win32 application":(

any advice ?

Thanks in advance
Ref3at

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 14, 2010 - 3:38pm #7

Can you tell us exactly where the build is breaking, and what the output is? Were you able to run ndk-build in the FrameMarkers folder?

Also, let us know what version of the Android ndk you are using. We recommend NDK r4b, which is available here:

http://dl.google.com/android/ndk/android-ndk-r4b-windows.zip

- Kim

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 14, 2010 - 2:32pm #6

Hi anthonyduca

i tried to build shared folder and i did and generate the .so files but when trying to build the FrameMakers i get an error.
Could u please tell me the steps u used to build the application?
1- i added the Shared folder and build it
2- i added FrameMakers folder and when i tried to build it i get errors

Thanks
Ref3at

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 13, 2010 - 11:09pm #5

Hi Ahmed,

I initially wasn't able to compile anything successfully because I was using the NDK-r5, but once I rolled back to NDK-r4b everything compiled fine. First make sure you run the ndk-build in the Shared folder. Then goto the Framemakers folder and run ndk-build.

Hope that helps....

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 13, 2010 - 1:04pm #4

That was the issue, the .so file didn't exist. I was certain I already did that, should have checked before posting this message...

Thanks....

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 13, 2010 - 12:58pm #3

Hi anthonyduca,
How are you? hope everything is going well
I am facing the same problem. How did u solve it?
I tried to build that over Cygwin but i get errors.
could u please tell me the steps (in details :o) because it is my first try :D

Thanks in advance
Ref3at

Re: FrameMarkers Sample Crashes on HTC EVO 4G

December 13, 2010 - 11:27am #2

That's odd, did you build the shared library using ndk-build in the FrameMarkers folder? Make sure that the samples/FrameMarkers/libs folder contains a couple libFrameMarkers.so files (one in armeabi and one in armeabi-v7a). Then Refresh the project in Eclipse before running.

If all that is in place but it still isn't working, could you paste the log output for a full run here? Open the DDMS view in Eclipse and see the LogCat tab.

- Kim

Log in or register to post comments