Hi, me again!
I managed to make a hexagon c++ application in eclipse and it seemed to run fine. However when I try to run a c++ project using the template 'helloworld android executable' it shows an error 'Error, no device or DLL configuration found in this project'. In the run configuration there is a target tab that asks for the dsp image directory and shared object location. I tried entering the locaton of the images supplied in the hexagon SDK but no dll configurations are appearing I have tried almost all the folders inside the images directory but nothing seems to happen. I can run the sanity check on the dsp image on the adsptest-run.cmd and it seems to work fine.
I have read through the documentation but there does not appear to be anything on how to configure the android native application target image. If you could point me to any documentation that covers it or advise me on what I need to do that would be greatly appreciated many thanks,
Harry
To clarify my problem:
I can run a hexagon c++ project as a hexagon c++ application, the console shows the dsp image simulation working and outputting the correct information.
Upon trying the steps in
file:///C:/Qualcomm/Hexagon_SDK/2.0/docs/eclipse_target_debug.html
I sucessfully import the two libraries needed and I'm able to compile them.
However in the "debug as hexagon attach to application" section of setting up the libcalculator_skel project I get an error:
"Cannot run program "adb" (in directory ".") createprocess: error = 2, the system cannot find the file specified.
As far as I'm aware the adb is the adb.h in "C:\Qualcomm\Hexagon_SDK\2.0\tools\android-ndk-r10d\platforms\android-21\arch-arm\usr\include\linux" This seems to be in the right subfolder.
In my NDK location I have set "C:\Qualcomm\Hexagon_SDK\2.0\tools\android-ndk-r10d" as the directory, anything else comes up with the error "not a valid ndk directory".
Any help would be appreciated!
many thanks for your time
Harry
I found the solution to my problem. For some reason even though I set the correct directory in window>preferences>andorid for the android sdk my system variable ANDROID_SDK_HOME was set to "C:\users\harry.morris" instead of "C:\users\harry.morris\androidsdk". After changing the variable to the correct value I could finally run the hexagon application as a android native application. You can find your system variables by going to project>properties>c++ build>build variables and selecting "show system variables".
I hope this helps anyone with the same issue.
Just to clarify the above solution is incorrect and will actually break the SDK, the ANDROID_SDK_HOME was orginally pointing to the correct directory and setting it to the ROOT directory will not fix anything only make matters worse. The error from could not find adb in directory "." is caused by not adding the adb directory to your path, simply add the directory of adb.exe to your PATH variable and it should solve the problem.