Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows and Android Studio - issue with libgg.so and libxp.so #29

Closed
nilstk opened this issue May 5, 2021 · 4 comments
Closed

Windows and Android Studio - issue with libgg.so and libxp.so #29

nilstk opened this issue May 5, 2021 · 4 comments

Comments

@nilstk
Copy link

nilstk commented May 5, 2021

Hi development team,

I'm unsure if my issue is related to the missing support of Windows. Nevertheless, I'd like to notify you about it.

After downloading the project and importing it to Android Studio for APK compilation, I received the following error about a missing library:

Task :GoldenGateBindings:externalNativeBuildDebug FAILED
Build xp_x86
ninja: Entering directory `C:\tmp\gg\golden-gate\platform\android\goldengate\GoldenGateBindings.cxx\cmake\debug\x86'
ninja: error: '../../../../../../../../xp/build/cmake/android/x86/libgg.so', needed by '../../../../build/intermediates/cmake/debug/obj/x86/libxp.so', missing and no known rule to make it

Any idea on how to fix that?

@nilstk
Copy link
Author

nilstk commented May 10, 2021

Side note: On Linux it is the same issue. I had the hope it is a Windows issue initially.

Build command failed.
Error while executing process /home/nils/Android/Sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C /home/nils/Schreibtisch/golden-gate/platform/android/goldengate/GoldenGateBindings/.cxx/cmake/debug/armeabi-v7a xp}
ninja: Entering directory `/home/nils/Schreibtisch/golden-gate/platform/android/goldengate/GoldenGateBindings/.cxx/cmake/debug/armeabi-v7a'

ninja: error: '../../../../../../../../xp/build/cmake/android/armeabi-v7a/libgg.so', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libxp.so', missing and no known rule to make it

@Moes81
Copy link

Moes81 commented May 11, 2021

Having the same issue on MacOS with Android Studio 4.2
I followed all steps described in "Getting Started" and "Platform Android". The only thing I changed was updating the two references to the specific NDK version. No other changes.
I have all the CMAKE versions avalable and the conda gg environment is active. Anymore ideas what to check?

@nilstk
Copy link
Author

nilstk commented May 11, 2021

It was able to solve my issues above. The Android documentation lacks the hint that the library libgg.so must be compiled externally and cannot be compiled (as expected) by the Android NDK and Android Studio itself. Therefore, one is required to follow the "getting started"-guide and setup the build system on the host along with inv, conda, python etc. to be able to run "inv android.build", which compiles the required libgg.so

@nilstk nilstk closed this as completed May 11, 2021
@barbibulle
Copy link
Contributor

Yes, sorry about that. I will update the documentation to avoid the confusion in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants