android-ndk

Error: “Fatal signal 11 (SIGSEGV), code 1” when passing Mat object from java to jni function

旧城冷巷雨未停 提交于 2019-12-25 11:14:55
问题 I am running the video camera using the OpenCV function. I pass the Mat object to the jni function it works for awhile, them the error: 10-10 13:03:17.978: A/libc(28693): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9 in tid 28791 (Thread-5418) Java code that runs the camera and calls the jni function: package com.adhamenaya; import java.util.ArrayList; import org.opencv.android.BaseLoaderCallback; import org.opencv.android.CameraBridgeViewBase; import org.opencv.android

How to fix Error:(158) Android NDK: Aborting. .Stop. (ndk-build.cmd'' finished with non-zero exit value 2)

我是研究僧i 提交于 2019-12-25 09:27:33
问题 I want to develop an android application about Auto crop in a scanned image or photo by using OpenCV. I found an open source application name "android-opencv-scan-doc" on github. After I downloaded, try to build and run this project on my computer. The application can not start and gives the following exception: Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app

When should I free the native (Android NDK) handles?

拈花ヽ惹草 提交于 2019-12-25 08:57:38
问题 I have to use a native library (this is not my decision). The library already has a JNI wrapper, and the example Android NDK code works. But the library initialization routines return native handles and the developer is required to correctly close them . Now, there's an interesting question: where to call the close_handle routines from? At least in theory, each incorrect termination may result in temporary files left somewhere on the disk or some other kind of resource leak. Library

Android makefiles: How to “early return”?

只谈情不闲聊 提交于 2019-12-25 08:12:33
问题 I'm building a bucnh of libraries using ndk-build. At some point, a mk file could be included twice, as it imports 3rd party libraries, I protected double-import using a global variable: # Importing nlopt! # Prevent warnings reporting module was imported twice: ifneq ($(imported_nlopt_$(TARGET_ARCH_ABI)),true) imported_nlopt_$(TARGET_ARCH_ABI) := true ifeq ($(APP_OPTIM),debug) # Importing static library nlopt_debug: include $(CLEAR_VARS) LOCAL_MODULE := nlopt_debug LOCAL_SRC_FILES := nlopt

Can I use two spinners to retrieve data from a javascript file that i have named dist.js

*爱你&永不变心* 提交于 2019-12-25 08:12:19
问题 What I want to achieve is to use to spinners to select from town and then to town and then to retrieve the distance and time of travel that i have defined in my dist.js file. It works great when i use html in webview. but I don't want to use webview. Therefore how can i get the two spinners to calculate this? Okay have tried but still nothing works. here is my code so far. Can you tell what i am doing wrong? import java.io.BufferedReader; import java.io.InputStream; import java.io

undefined reference to slCreateEngine

早过忘川 提交于 2019-12-25 08:06:20
问题 I want to play sound through opensl. Connected library Linker-> Input-> Library Dependencies - OpenSLES. The linker produces an error - undefined reference to slCreateEngine. 回答1: check your target_link_libraries method inside CmakeLists.txt if it has all the necessary libraries included.. target_link_libraries( # Specifies the target library. native-lib android log OpenSLES) 来源: https://stackoverflow.com/questions/40849737/undefined-reference-to-slcreateengine

ISSUE: Running PCL Library with Android Project

丶灬走出姿态 提交于 2019-12-25 07:16:16
问题 I had compiled the PCL-SuperBuild folder as these links described: Link 1: https://hcteq.wordpress.com/2014/07/14/compiling-pcl-for-android-in-windows-cmake-gui/# Link 2: http://www.hirotakaster.com/weblog/how-to-build-pcl-for-android-memo/ It Completed successfully. However, I don't know how to use the library in my project, Can anyone elaborate in this? I'm trying to run the code in https://github.com/roomplan/tango-examples-java.git, the Point Cloud with PCL one, and I have tried to write

Linphone NDK compilation error

让人想犯罪 __ 提交于 2019-12-25 05:24:22
问题 Getting error when trying to compile Linphone Native Library using NDK G:\WorkSpaces\Demo\LinphoneLauncherActivity>G:\android-ndk-r8d-windows\android-n dk-r8d\ndk-build Build X264 plugin for mediastreamer2 "Compile arm : vpx <= vpx_mem.c In file included from jni/..//submodules/externals/build/libvpx/../../libvpx/vpx _mem/vpx_mem.c:18:0: jni/..//submodules/externals/build/libvpx/../../libvpx/vpx_mem/include/vpx_mem_i ntrnl.h:14:24: fatal error: vpx_config.h: No such file or directory

What is the proper way to install Mono 4.4.2 on Android x86_64?

老子叫甜甜 提交于 2019-12-25 05:12:08
问题 After some experiments I compiled Mono 4.4.2 for Android x86_64 (Marshmallow) using Android NDK r13b. I had to do some tricks, but after all I had these folders in my build directory: bin etc include lib share The bin folder looks like : The lib folder is: The lib folder contains only unmanaged libs, e.g. the 'mono' subfolder doesn't contain managed BCL for each version of the framework, I couldn't figure out how to tell to 'configure' script to do this. So I've compiled the same version of

reevaluate wildcard in make

拟墨画扇 提交于 2019-12-25 05:02:07
问题 In my Makefile, I want to check if a certain file exists, do something, and check again. Using gnu make, I cannot. Here is the simple example: $(info $(wildcard OK)) $(shell touch OK) $(info $(wildcard OK)) If I run make once, I see two empty lines. If I run make again, both lines are OK . I thought, maybe $(eval) will let me get the updated answer. Alas, $(eval $$(info $$(wildcard OK))) produces the same answer, as if make has some way to predict all wildcard calculations before it starts