android-ndk

Android ndk error asm types.h not found

孤街浪徒 提交于 2020-01-01 09:42:02
问题 After updating Android Studio to 2.3.3 and updating ndk bundles,my project fails to build. What does the error mean? It should be a bug of the IDE. How to fix the issue or how to go back to prior Android Studio/ndk versions? Error:注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: /home/noob/code/greatcompany/ExcellentApk/app/src/main/java/com/greatcompanyx/ExcellentApk/yjzb/CtrlNetTool.java使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 FAILURE: Build failed with an

Libav build for Android [closed]

微笑、不失礼 提交于 2020-01-01 09:13:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Does anyone succeed compiling Libav for Android. I currently looking for documentation. Thanks! 回答1: - FFmpeg compiled with Android NDK(go to this link) Android built-in codec is too small, so we need to FFmpeg.

Undefined reference to AAssetManager_fromJava

时间秒杀一切 提交于 2020-01-01 08:29:07
问题 I am trying to access assets from an android apk using AAssetManager. However, I keep getting "Undefined reference to AAssetManager_fromJava" even though I've included asset_manager.h and asset_manager_jni.h Other functions from asset_manager.h, like AAssetManager_openDir(mgr, "") etc also can't be referenced. Here's the complete code #define EXPORT_API #include <string.h> #include <jni.h> #include <android\log.h> #include <sys\types.h> #include <android\asset_manager.h> #include <android

C++11 cmath functions not in std namespace for android NDK w/gcc-4.8 or clang 3.4

本秂侑毒 提交于 2020-01-01 08:22:34
问题 After C++11, various cmath functions previously in the global namespace are moved to the std namespace, when including the <cmath> header. However the android NDK build has issues with this, with both gcc-4.8 and clang-3.4 toolchains. The C++11 flag is correctly specified, as other c++11 particulars like unique_ptr work fine. If i attempt to use std::round , or std::cbrt , the compiler says these don't exist in std:: namespace, which they should [1]. They exist in the global namespace, but I

How to use a library project with both c and java apis on Android

爱⌒轻易说出口 提交于 2020-01-01 07:03:20
问题 I have asked this question in google android-ndk group but not get any answer. I am trying to build a common module in a independent project by click the "Is Library" is eclipse. This project provides both c apis and java apis. While some of these apis are related. ( it means it's not a good idea to separate them into 2 projects) Let's name it common and libcommon.so. When I am using this library in another project ( suppose testcommon), I add the common project as a library in eclipse at

How to build single APK with Android NDK and Gradle

落花浮王杯 提交于 2020-01-01 06:38:20
问题 I am working on a new android app using OpenCV (C++ not Java) and I am new to both opencv and the NDK. I have it building (and running) succesfully using the Gradle file below and in Android Studio I can select a variant and hit build (e.g. x86). I have 2 questions: Is there a way I can have a variant that builds an APK supporting all architectures? (I know file size will be bigger) Can i achieve a build without specifying all the same libs for each variant. Is there any way I can make the

Build android shared lib using ndk-build without have jni folder

倖福魔咒の 提交于 2020-01-01 06:27:19
问题 I am able to build a android shared library using ndk-build only when all my src are in the jni foler, but, I would like to build a shared library using ndk-build without need jni folder, because my project doesn't have java code, so how could I do that? my simple Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := ctest LOCAL_SRC_FILES := main.cpp # for logging LOCAL_LDLIBS += -llog # for native asset manager LOCAL_LDLIBS += -landroid include $(BUILD_SHARED_LIBRARY

Build android shared lib using ndk-build without have jni folder

 ̄綄美尐妖づ 提交于 2020-01-01 06:27:11
问题 I am able to build a android shared library using ndk-build only when all my src are in the jni foler, but, I would like to build a shared library using ndk-build without need jni folder, because my project doesn't have java code, so how could I do that? my simple Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := ctest LOCAL_SRC_FILES := main.cpp # for logging LOCAL_LDLIBS += -llog # for native asset manager LOCAL_LDLIBS += -landroid include $(BUILD_SHARED_LIBRARY

Building Valgrind for Android

我的梦境 提交于 2020-01-01 05:59:33
问题 Building valgrind-3.8.1 on ubuntu 12.04 with ndk-r6 or ndk-r8d failed with following error: ... cc1: Error: not rekognized option "-marm" priv/main_globals.c:1:0: Error: wrong Value (cortex-a8) for -mtune=switch ... My build-script: export NDKROOT=/home/stefan/android-ndk-r6-crystax-2 export HWKIND=generic PATH=$NDKROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:$PATH PATH=$PATH:$NDKROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/libexec/gcc/arm-linux

How do I begin working on the Project Tango?

▼魔方 西西 提交于 2020-01-01 05:54:39
问题 after a couple of weeks I have been unable to get the android set of tools to a functioning level with c++ before and have been given the opportunity of using a project tango, and though that sounds awesome and wondrous and would open a world of opportunity for working with VR... I feel like I am stuck at step -4. My understanding is limited, so bear with me. I stumbled upon the PCL built for running algorithms on point cloud data, it was open source and appeared like a wonderful solution, it