android-ndk

How do I begin working on the Project Tango?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 05:54:26
问题 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

Simplifying an Android.mk file which build multiple executables

徘徊边缘 提交于 2020-01-01 05:28:12
问题 I am building some hardware tests for Android. I have an Android.mk file which builds these executables one-by-one, using a block of makefile code for each, as shown below: ##### shared ##### LOCAL_PATH := $(my-dir) ##### test_number_one ##### test_name := test_number_one include $(CLEAR_VARS) LOCAL_CFLAGS := $(commonCflags) LOCAL_C_INCLUDES := $(LOCAL_PATH)/../ LOCAL_MODULE_TAGS := optional eng LOCAL_SHARED_LIBRARIES := some_library some_other_library LOCAL_MODULE := $(test_name) LOCAL_SRC

andengine compileReleaseNdk error

岁酱吖の 提交于 2020-01-01 05:03:50
问题 I want to use andengine in my android studio project but I have ndk error while building. Error:Execution failed for task ':andEngine:compileReleaseNdk'. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: D:\Android\android-ndk-r9d\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Android\workspace\simpleclock\simple_clock_as\andEngine\build\intermediates\ndk\release\Android.mk APP_PLATFORM=android-19 NDK_OUT=D:\Android\workspace\simpleclock\simple_clock_as

Android NDK debugging: armeabi-v7a not working

社会主义新天地 提交于 2020-01-01 04:55:14
问题 Eclipse / Cygwin NDK 8c Building a shared library I can't get gdbserver to start anymore after switching to armeabi-v7a. I've searched online for hours but can't find a topic that deals specifically with armeabi-v7a debugging issues. I have no choice to switch to armeabi-v7a due to using a third party library which depends on it. Without it, I get these kind of errors: D:\TEMP\ccnnGAqD.s:10427: Error: selected processor does not support Thumb mode `ldrex r6,[r3]' D:\TEMP\ccnnGAqD.s:10429:

Android only game in OpenGL: performance in C++ (NDK) vs Java (Dalvik) [closed]

和自甴很熟 提交于 2020-01-01 04:42:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I know that similar questions have been asked before, but... We want to develop (at least hope) an indie game but still a game with high quality graphics with hundreds if not thousends of moving objects on the screen so we expect very high number of polygons and requirements for

How to use Asio (standalone from Boost) in Android NDK?

蓝咒 提交于 2020-01-01 03:46:07
问题 Asio (without Boost) is supposed to be usable with just the headers only right? By default, Asio is a header-only library. (http://think-async.com) I understand that internally Asio still depends on Boost. This is my setup. Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := gatelib LOCAL_SRC_FILES := gatelib.cpp LOCAL_C_INCLUDES += /cygdrive/l/asio-1.5.3/include LOCAL_C_INCLUDES += /cygdrive/l/boost/boost_1_49_0 include $(BUILD_SHARED_LIBRARY) Application.mk APP_STL

how to use latest FFMPEG in android studio project?

荒凉一梦 提交于 2020-01-01 03:16:09
问题 I have a simple task to make a video from multiple images and an audio file, After searching a lot found that its possible with FFMPEG, Unfortunately there are no updated tutorials for FFMPEG, there are few but outdated and most of them are not working. As i have compiled FFMPEG for android using NDK android-ndk-r10e and ffmpeg-2.8.6 on my MAC with Android Studio following the tutorial http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ It makes the .so files as Now i can't understand

How to run C++ application in Android SHELL

老子叫甜甜 提交于 2020-01-01 02:51:26
问题 I want to run hello world written on C++ and compiled with Android toolchain 9 , but I faced with issue: by default I have no permissions to launch it and I can't change permissions using chmod`. I used Android 2.3.3 - Api Level 10 Application was compiled by cross compiler for API level 9 Procedure: Compile application: ~/toolchain_andr9/bin/ arm-linux-androideabi-g++ helloworld.cpp Then send application to SDCARD on the emulator: >adb push a.out /mnt/sdcard then go to SHELL and try to run a

how to build c-ares library in android (NDK)

我们两清 提交于 2019-12-31 22:28:35
问题 Can anyone please tell me how to build C-ares library in android (ndk-build) 回答1: Here's how to build it as a static library for ARMv7 with the NDK standalone toolchain: export NDK=/tmp/android-ndk-r8b # Create the standalone toolchain $NDK/build/tools/make-standalone-toolchain.sh \ --platform=android-9 \ --install-dir=/tmp/my-android-toolchain export PATH=/tmp/my-android-toolchain/bin:$PATH export SYSROOT=/tmp/my-android-toolchain/sysroot export CC="arm-linux-androideabi-gcc --sysroot

Copying a byte buffer with JNI

流过昼夜 提交于 2019-12-31 19:23:10
问题 I've found plenty of tutorials / questions on Stackoverflow that deal with copying char arrays from C/JNI side into something like a byte[] in Java, but not the other way around. I am using a native C library which expects a byte array. I simply want to get data from a byte[] in java, into preferably an unsigned char[] in C. Long story short: What is the best way of copying data from a jBytearray in JNI? Is there any way to detect it's size? 回答1: Here's a working example I just lifted from my