microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.75k stars 6.29k forks source link

[opencv3] build failure #36197

Closed EthanSun11 closed 7 months ago

EthanSun11 commented 7 months ago

Operating system

x64-linux

Compiler

No response

Steps to reproduce the behavior

`vcpkg install opencv3`

Failure logs

issue_body.md

Additional context

No response

FrankXie05 commented 7 months ago
../src/glib-2-7cc53588e0.clean/meson.build:2330:0: ERROR: <PythonExternalProgram 'python' -> ['/usr/bin/python3']> is not a valid python or it is missing distutils

You need install python3 and may also need python3-distutils.

EthanSun11 commented 7 months ago
../src/glib-2-7cc53588e0.clean/meson.build:2330:0: ERROR: <PythonExternalProgram 'python' -> ['/usr/bin/python3']> is not a valid python or it is missing distutils

You need install python3 and may also need python3-distutils.

I have installed package python3-distutils. And this the new error log file. issue_body.md

FrankXie05 commented 7 months ago
ERROR: Dependency "xrandr" not found, tried pkgconfig and cmake

Try run sudo apt install libxrandr-dev. :)

EthanSun11 commented 7 months ago

Thank you for your help and quick response. The question is solved now. I installed several additional packages to support the opencv3 installation in the same way after installing that package based on your reply. In my case, for a new ubuntu20.04 system, the following packages needs to be installed before installing opencv3 using Vcpkg: sudo apt-get install python3-distutils sudo apt install libxrandr-dev sudo apt-get install -y libxi-dev sudo apt install libxcursor-dev sudo apt-get install -y libxdamage-dev sudo apt-get install -y libxinerama-dev