-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake error with OpenCV #1315
Comments
I am facing the same issue. can anyone here help me out |
@prerna-khanna could you share that log file |
The target system is: Linux - 1 - armv7-a This is the log file |
I don't see you mean that's the only content of the |
@AndreMiras yes that's the only thing mentioned in the log file and I am using VM.
Then I installed After reading the buildozer log, I figured that
I tried changing the version here, but it didn't help. |
I have same issue. These are my log files. |
Help me please. This is my buildozer.spec. |
Your |
@AndreMiras |
The error about OLD maybe indicate that the CMakefile is using old stuff not supported by recent CMake, so maybe the OpenCV version in the recipes is just too old for the current tooling? |
Thank you @tito . Could you please help update recipe? |
No, but you could try it yourself! Clone Python-for-android, edit the recipe, try to update to latest opencv, compile, and go error by error until it compiles :) |
I modified the opencv recipe as as following. import os class OpenCVRecipe(NDKRecipe):
recipe = OpenCVRecipe() I got error: sh.ErrorReturnCode_1: RAN: /usr/local/bin/cmake -DP4A=ON -DANDROID_ABI=armeabi-v7a -DCMAKE_TOOLCHAIN_FILE=/home/ubuntu/build/android/platform/build/build/other_builds/opencv/armeabi-v7a/opencv/platforms/android/android.toolchain.cmake -DPYTHON_INCLUDE_PATH=/home/ubuntu/build/android/platform/build/build/python-installs/simpleapp/include/python3.6 -DPYTHON_LIBRARY=/home/ubuntu/build/android/platform/build/build/python-installs/simpleapp/lib/libpython3.6.so -DPYTHON_NUMPY_INCLUDE_DIR=/home/ubuntu/build/android/platform/build/build/python-installs/simpleapp/numpy/core/include -DANDROID_EXECUTABLE=/home/ubuntu/.buildozer/android/platform/android-sdk-20/tools/android -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DPYTHON_PACKAGES_PATH=/home/ubuntu/build/android/platform/build/build/python-installs/simpleapp /home/ubuntu/build/android/platform/build/build/other_builds/opencv/armeabi-v7a/opencv STDOUT: FATAL: In-source builds are not allowed.
-- Configuring incomplete, errors occurred! How to fix it? |
Closing as stale, not sure if opencv still has issues but it should have at least improved since then. |
I don't think it is stale. I'm still trying to figure out how to get OpenCV to build. |
Thanks @Ham-Merhead for the head-up. I hope someone find time/energy to look into it |
The user group member found a solution in a p4a fork created 2 months ago.
|
There's now a WIP PR #1650 🎉 Edit:
|
Fixed by #1650, other fixes can follow from that if necessary. |
This is the log file
CMake file log shows:
The text was updated successfully, but these errors were encountered: