Hey thaisontran, thanks for the suggestion!
I ran the command that you suggested and it ran for several hours and then failed with error
It failed in the C compilation part of the installation. Did you have any error like this? Thanks again!
I ran the command that you suggested and it ran for several hours and then failed with error
Code:
c++: fatal error: Killed signal terminated program cc1plus compilation terminated. gmake[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:79: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:2824: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 gmake: *** [Makefile:166: all] Error 2 Traceback (most recent call last): File "/tmp/pip-build-env-01zt4a7u/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 668, in setup cmkr.make(make_args, install_target=cmake_install_target, env=env) File "/tmp/pip-build-env-01zt4a7u/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 696, in make self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env) File "/tmp/pip-build-env-01zt4a7u/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 741, in make_impl raise SKBuildError(msg) An error occurred while building with CMake. Command: /tmp/pip-build-env-01zt4a7u/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake --build . --target install --config Release -- Install target: install Source directory: /tmp/pip-install-zxfhjbmm/opencv-python_3b95aba366224d3eac7fbcd127c2a032 Working directory: /tmp/pip-install-zxfhjbmm/opencv-python_3b95aba366224d3eac7fbcd127c2a032/_skbuild/linux-aarch64-3.9/cmake-build Please check the install target is valid and see CMake's output for more information. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for opencv-pythonFailed to build opencv-python[notice] A new release of pip is available: 25.0 -> 25.0.1[notice] To update, run: python3 -m pip install --upgrade pipERROR: Failed to build installable wheels for some pyproject.toml based projects (opencv-python)
It failed in the C compilation part of the installation. Did you have any error like this? Thanks again!
Statistics: Posted by DevGuy — Wed Feb 12, 2025 3:48 am