Executing hello-android

asked 2014-10-16 04:46:22 -0500

carlosb gravatar image

updated 2014-10-16 08:49:51 -0500

I am trying to reuse the example hello-android with my source code. I copied all my source files (*h and *cpp) in the sample folder (samples/android/hello-android) but i had problems... This is the example cmake_android.sh script

cd `dirname $0`


mkdir -p $BUILD_DIR

RUN_CMAKE="cmake -DOpenCV_DIR=$opencv_build_dir -DARM_TARGET=armeabi -DCMAKE_TOOLCHAIN_FILE=$opencv_android/android.toolchain.cmake .."

It didn't find the toolchain file.... The opencv_android seems incorrect, I think it should be somethink like: opencv_android=pwd/../../../platforms/android....

I have fixed this (changed the opencv_android variable)... But I am having problems yet.

cmake -DOpenCV_DIR=/home/carlos/Desktop/tools/opencv-2.4.9/samples/android/hello-android/../../../android/build_armeabi -DARM_TARGET=armeabi -DCMAKE_TOOLCHAIN_FILE=/home/carlos/Desktop/tools/opencv-2.4.9/samples/android/hello-android/../../../android/android.toolchain.cmake ..
CMake Error at /usr/share/OpenCV/OpenCVConfig.cmake:45 (include):
  include could not find load file:

Call Stack (most recent call first):
  CMakeLists.txt:22 (FIND_PACKAGE)

Ideas? does someone know if i fixed correctly the cmake_android script??

edit retag flag offensive close merge delete