-
Notifications
You must be signed in to change notification settings - Fork 870
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
Failed to install opencv-python on termux #732
Comments
Could you bring more details, logs, etc? |
I would love to, but all the lines of logs are in 1 line without
breaklines...
Also idk how to easily copy to my laptop or my new phone
Op di 27 sep. 2022 09:56 schreef Alexander Smorkalov <
***@***.***>:
… Could you bring more details, logs, etc?
—
Reply to this email directly, view it on GitHub
<#732 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALNYDYBA6VL37257NW7U6BTWAKSCHANCNFSM6AAAAAAQWAIV2M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The logs are the same as at this issue at the comment of "RSwarnkar" |
The issue is related to CMake tool, but not OpenCV. It fails to build with libarchive. At least it's what I see from logs in the related ticket. There is nothing to fix in OpenCV for now.
|
Can you tell me how to 'hack' opencv-python to exclude the cmake package? I know a lot, but cannot figure this one out yet EDIT: I think i did it, but still it failed. Here is the logs: https://termbin.com/1gm1 |
I managed to install it, but it not listed in
|
nvm, the output of |
after some update & upgrade and reinstall the package, somehow it now properly installed. even though it will not listed on |
Problem:When trying to build OpenCV on Termux, the installation fails because CMake looks for Android SDK and Java tools, which are not available in Termux by default. Solution:To solve this issue, you can disable Android and Java support in CMake by using the following settings: cmake -DANDROID=OFF -DBUILD_ANDROID_EXAMPLES=OFF -DBUILD_JAVA=OFF -DBUILD_FAT_JAVA_LIB=OFF -DWITH_OPENCL=OFF -DWITH_CUDA=OFF .. This will allow OpenCV to be installed successfully in Termux without any issues related to missing Android SDK or Java. Additional Details:
|
Expected behaviour
A working installation using
pip install opencv-python
Actual behaviour
Failed to install at cmake
Steps to reproduce
Issue submission checklist
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of
opencv-python
Possibly helpful: scikit-build/cmake-python-distributions#223
The text was updated successfully, but these errors were encountered: