droid-ndk | set up AS ndk development environment | Android library
kandi X-RAY | droid-ndk Summary
kandi X-RAY | droid-ndk Summary
set up AS ndk development environment
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of droid-ndk
droid-ndk Key Features
droid-ndk Examples and Code Snippets
Community Discussions
Trending Discussions on droid-ndk
QUESTION
Im trying to build my android app on buildozer but i get this error. I think buildozer can't download or can't find the threading module I researched about the error but couldn't find the solution. Can anyone help me please?
I started the building with "buildozer android debug deploy run" code. I have done this before but it was more simple program.
Edit: I also got same error with "time" module.
...ANSWER
Answered 2022-Mar-24 at 18:30It is because threading is python's standart library. I just deleted threding from buildozer.spec "requirements" section and problem is solved.
QUESTION
I was trying to build and execute a cpp code that links few opencv shared libraries that I had cross compiled for android but while trying to utilize the namespace cv or trying to use a function of opencv, it says undeclared identifier. I did try this documentation here: https://developer.android.com/ndk/guides/prebuilts but was unable to get it working. Also I referred to another stackoverflow question for reference here: OpenCV with Android NDK Undefined References as well. Any guidance on how to link them and import opencv functions properly which I am probably missing out here would be really helpful.
trial_onnx.cpp file
...ANSWER
Answered 2022-Feb-17 at 12:30I've fixed the issue myself, it was a linking issue along with modifying the Android.mk file accordingly. For others who may encounter the issue: My Android.Mk file after the fix looks like
QUESTION
I cannot resolve this error, even though it is mentioned as resolved here in M1.
Unknown host CPU architecture: arm64 , Android NDK SiliconM1 Apple MacBook Pro
My error code.
[CXX1405] error when building with ndkBuild using /Users/adamheinrich/Desktop/android-solocoo-2.0/Solocoo/app/src/main/jni/Android.mk: Build command failed. Error while executing process /Users/adamheinrich/Library/Android/sdk/ndk/20.1.5948944/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/adamheinrich/Desktop/android-solocoo-2.0/Solocoo/app/src/main/jni/Android.mk NDK_APPLICATION_MK=/Users/adamheinrich/Desktop/android-solocoo-2.0/Solocoo/app/src/main/jni/Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-22 NDK_OUT=/Users/adamheinrich/Desktop/android-solocoo-2.0/Solocoo/app/build/intermediates/cxx/Debug/x2j681s3/obj NDK_LIBS_OUT=/Users/adamheinrich/Desktop/android-solocoo-2.0/Solocoo/app/build/intermediates/cxx/Debug/x2j681s3/lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} ERROR: Unknown host CPU architecture: arm64
After editing ndk-build with text editor I have.
What else can I do?
How can I install .dmg beta ndk? It is not available in SDK Manager via Android Studio.
Also after editing this file my OS says it is corrupted/ damaged. How can I edit it properly?
...ANSWER
Answered 2022-Jan-19 at 08:09Using Sublime Text editor instead of Macbook text editor allowed me to edit it without corrupting it. Edit ndk-build
file in Library/Android/sdk/ndk
to:
QUESTION
i try to build an apk-file using buildozer - (i created a seperate file with the py-file called main.py, buildozer.spec - i ran the building under Ubuntu)
but when i run:
...ANSWER
Answered 2021-Dec-12 at 11:32Looking at the log, there's not much info, but I can assume from it that you were using WSL or something similar on Windows, not using an actual Ubuntu device. The reason why buildozer
doesn't work, I don't know, the log doesn't go far back enough for me to find out, but it is very likely that is because WSL is not a full-fledged Linux distribution
The solution for me was to use an online virtual machine called Google Colaboratory
Press cancel to the popup to open a new notebook
Initialize the VM by pressing Connect in the top-right part of the page
Then add a new Code Cell by pressing +Code
To set up buildozer and other commands, paste into the cell and press the play icon
QUESTION
My issue is that I am unable to create a Python Kivy mobile app using Buildozer without it failing to install one of the dependencies, socket. I have listed socket in the buildozer.spec file, which compiles to the below error. I have also attempted to compile the app without socket as a dependency, which compiles but crashes the mobile app when any socket command is run. How should I go about successfully allowing socket to compile into a buildozer mobile app?
...ANSWER
Answered 2021-Jul-25 at 13:10socket
is a python builtin module, not something to install via pip.
I have also attempted to compile the app without socket as a dependency, which compiles but crashes the mobile app when any socket command is run
What makes you think the crash is due to missing the socket module?
QUESTION
I am trying to build a mobile application for Android 64 bit. It works fine for 32 bit, but when trying it for 64 I get this error:
[DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\AndroidNDK-21-21.0.40680.4203\android-ndk-r21\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.exe: error: c:\program files (x86)\embarcadero\studio\21.0\lib\Android64\Release\SysInit.o: incompatible target
I get the same error for a few hundred of the .o-files in that directory.
I tried using cleanup and updating the SDK with the SDK Manager manually, but to no avail. This error also occurs when creating a new project.
What can I do fix this? Is there an easy way to do this?
...ANSWER
Answered 2021-Jul-16 at 11:30Try removing Android platform from Delphi using Tools -> Manage Platforms and then removing any leftover data from Android SDK manually. Then restart computer and add Android platform to Delphi using Tools -> Manage Platforms.
This should then download, install and configure all necessary Android SDK's that are required by Delphi for Android deployment
QUESTION
I tried to compile a .so library using Visual Studio 2019 along with OpenCV Android in order to use this library in Unity. There are some answers on how to configure Visual Studio to use OpenCV Android (here or here) but none of these work for me. Below you can see my configurations.
Visual Studio 2019 (running on Windows 10)
android-ndk-r21e // also tried with android-ndk-r15c android-ndk-r16b and android-ndk-r17c
OpenCV Android 4.5.2 // also tried with OpenCV Android 4.0.0, 4.0.1 and 4.1.0
My settings in Visual Studio 2019 look as follows:
Configuration Properties
- General
Platform Toolset Clang 5.0 (also tried Clang 3.8 or GCC 4.9)
Configuration Type Dynamic Library (.so)
Target API Level Nougat 7.0 (android-24) (also tried different versions)
Use STL LLVM libc++ static library (c++_static) (also tried "GNU STL static library (gnustl_static)")
C/C++
- General
Additional Include Directories "Path to OpenCV_4_5_2_Android\sdk\native\jni\include"
Code Generation Enable C++ Exceptions "Yes(-fexceptions)"
Language C++17(-std=c++1z)
Precompiled Headers Not using Precompiled Headers
Linker
- General
- Additional Library Directories Path to OpenCV_4_5_2_Android\sdk\native\libs\armeabi-v7a
- Input
- Additional Dependencies Path to OpenCV_4_5_2_Android\sdk\native\libs\armeabi-v7a\libopencv_java4.so
My Source.cpp I try to compile is just a single function for testing purposes
...ANSWER
Answered 2021-Jun-10 at 16:27I had the exact same issue as you (though I used c++ 11) with the exact same setup, and struggled for days. I believe the errors you're seeing (like me) are from arm_neon.h. Very oddly, I was able to just build (not run) the .so successfully, even with those errors (I say "errors" because if you look at arm_neon.h, others pop up), so try it. Maybe it's some kind of IntelliJ/Intellisense mistake more than anything else where it's catching false negatives from some other toolchain setup.
At the same time, I'm not 100% sure I was always able to build with that issue, so try these steps as well if you can't:
- use OpenCV 4.0.1 with Android NDK 16rb. The NDK matters when it comes to OpenCV builds, and this is the only supposed match that I know of.
- follow this tutorial from scratch: https://amin-ahmadi.com/2019/06/03/how-to-use-opencv-in-unity-for-android/
- if the downloaded OpenCV android SDK is still giving trouble, build OpenCV from the source using his other tutorial here: https://amin-ahmadi.com/2019/02/03/how-to-build-opencv-4-x-for-native-android-development/ and then repeat step 2.
MAJOR EDIT: OpenCV 4.5.2 needs to be treated differently because it no longer uses toolchains with gnu c++. -When you build OpenCV from CMake, build with Android NDK 21e, and do not use the toolchain in OpenCV 4.5.2. Use the one inside the Android NDK's build folder (android-ndk-r21e\build\cmake). -When you build your .so from Visual Studio 2019, do not use the GNU STL, use the LLVM. GNU c++ is no longer part of Android NDKs, and you need to cut it out of the process entirely. -In the Linker Input, put the names of your library files (or file, if it's just the world one) in the Library Dependencies field, not the Additional Dependencies field. -Everything else is the same as in those common tutorials.
QUESTION
Note: Although question is duplicate, but current answers lacks details, so I wanted to post another one.
I'm using C++Builder developed by Embarcadero.
For Windows, it compiles fine.
For Android, it shows the following error:
...ANSWER
Answered 2021-May-17 at 14:10my bet is that you need to use "Preprocessor directives" in your code and indicate platforms
QUESTION
I formatted my computer and have been trying to install Android Studio but have got many errors. When I tried to install SDKs', I got this error:
...ANSWER
Answered 2021-May-10 at 17:14Follow this tutorial to install Android Studio properly:
QUESTION
Performing ./gradlew assembleRelease
and hit the issue of this. Below shows the entire error log...
ANSWER
Answered 2021-Apr-17 at 07:08UNBELIEVABLE FIXED, seems to be a 63.x
issue? As there's another person having this issue after upgrading from 62.2
to 63.3
The fixed was done as suggested here
Solved this issue by deleting the .gradle folder from /android and again run npm run android, and it solved this error.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install droid-ndk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page