-
Notifications
You must be signed in to change notification settings - Fork 141
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
Targeting Android - Issue with compilation #326
Comments
SAP NWRFC SDK and PyRFC are not supported on Android platform, see the list of supported platforms: Can you share some more info why would you need RFC connectivity from mobile Android device, direct to ABAP system? Mobile devices usually talk to some middleware, on-premise or cloud and the middleware is connected to ABAP backend. Would Android device in your scenario connect direct to ABAP backend and why? |
Thanks for your response. |
AFAIK, you may not distribute the SDK, see this docker container related discussion #194 (comment) ( Someone correct me if I'm wrong. ) So your users would have to somehow install the SDK themselves, ontop of your portable app, making it "less portable" (or at least less convenient). |
The scenario looks similar to SAP ITSmobile and makes sense I think. SAP ITSmobile is older technology, providing direct access to ABAP system SAP GUI, from mobile device web-browser. It is used in scenarios you mentioned and many others. SAP NWRFC SDK is PyRFC dependency and installed separately. As @mpf82 explained, some mechanism is required to pull the SDK to Android mobile devices, but SDK does not work on Android. These platforms are supported and Android is not planned in near future: |
Again, thanks for your answers. |
Hello,
I am trying to compile a mobile app targeting Android with buildozer (the app is built using the Kivy framework), and I'm using (obviously) pyrfc inside.
I'm using :
And I'm getting this error:
ld: error: /usr/local/sap/nwrfcsdk/lib/libsapnwrfc.so is incompatible with aarch64linux ld: error: /usr/local/sap/nwrfcsdk/lib/libsapucum.so is incompatible with aarch64linux clang-14: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/home/[username]/.buildozer/android/platform/android-ndk-r25b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++' failed with exit code 1 error: subprocess-exited-with-error
Maybe my question is dumb, or rhetorical, but could this be remedied by installing an SDK for the target platform (if it even exists for arm64?), or is it simply not possible to target android using pyrfc&nwrfcsdk?
I'm sorry if this is something quite obvious, but I am quite confused as to what I should/what I can do now,
Thanks.
The text was updated successfully, but these errors were encountered: