Ask Your Question

profox's profile - activity

2016-01-01 09:24:45 -0600 answered a question Cannot find python libraries for CMake in Opencv3.0.0

I have a similar issue with opencv 3.1.0 and ubuntu 14.04. I don't know which one (ubuntu version or other libraries version) causes this one. I have worked using ubuntu 12.04 + 3.0.0 for a long time. Today I upgraded ubuntu version on another PC. Finally I resolved my issue by typeing the following options manually when running cmake, not cmake-gui

cmake -D PYTHON_INCLUDE_DIR=/usr/include/python2.7 -D PYTHON_INCLUDE_DIR2=/usr/include/x86_64-linux-gnu/python2.7 -D PYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7.so

I know that this is not the perfect solution. If some other factor changes, it may not work well. I suspect that there is some conflicts between specific versions of cmake and opencv build-script.

2015-02-04 07:28:37 -0600 received badge  Enthusiast
2015-02-01 05:21:10 -0600 commented answer Camera Not working

Thanks for the great information!

2015-01-30 06:40:44 -0600 commented answer Unable to build opencv for android using cmake

After deeper analysis I found that toolchain-name parsing logic in android.toolchain.cmake is not perfect. I recommend to use -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.9".

2015-01-28 11:24:37 -0600 received badge  Necromancer (source)
2015-01-28 11:17:29 -0600 received badge  Editor (source)
2015-01-28 09:24:28 -0600 answered a question Unable to build opencv for android using cmake

It is an Old question...I hope that you already resolved this problem.

Use android-ndk-r9x. In my case I had a similar problem when I used 3.0.0-beta and android-ndk-r10d.

Check the file ./platform/android/android.toolchain.cmake for matching ANDROID_NDK version.