Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Error debugging the generated .so library on Android #59

Closed
skypjack opened this issue Dec 18, 2015 · 2 comments
Closed

Error debugging the generated .so library on Android #59

skypjack opened this issue Dec 18, 2015 · 2 comments

Comments

@skypjack
Copy link
Contributor

While trying to debug a library compiled with Polly for Android, we are getting the following error:

/[...]/development/android-ndk-r10e/build/core/add-application.mk:199: *** Android NDK: Aborting... . Stop.

The suggestion that comes along with the error is:

  • Rebuilt with the NDK_DEBUG=1 option when calling 'ndk-build'.

We are compiling the library in debug mode (CMAKE_BUILD_TYPE=Debug) and, as far as I see from the log of the compiler, the right flags are set (-O0 -g and so on).

It seems that gdbserver and gdb.setup are not created, thus it is not possible to debug the application on the target system.
Am I missing something or Polly actually lacks it?

@ruslo
Copy link
Owner

ruslo commented Dec 18, 2015

Hi,

I've got quite poor experience with debuggin Android. If you describe how it's happenning/what should be done/what expected I'll try to figure out how to fix it. I know that some gdbserver file located in NDK:

"${ANDROID_NDK}/prebuilt/android-${ANDROID_ARCH_NAME}/gdbserver/gdbserver"

Also it can be copied while creating APK (separate module, not Polly): https://github.com/hunter-packages/android-apk/blob/6c1ea07a652cd99bfb4c3bea328a937a54af29e1/AndroidApk.cmake#L468

Ruslo

@ruslo ruslo changed the title Error debugging the generated .so library Error debugging the generated .so library on Android Mar 22, 2016
@ruslo
Copy link
Owner

ruslo commented Jul 28, 2016

Feel free to reopen on any updates.

@ruslo ruslo closed this as completed Jul 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants