Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[emerge]media-libs/opencv(open)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
carlos plaza
Guru
Guru


Joined: 22 Jan 2005
Posts: 341
Location: Venezuela

PostPosted: Mon Jan 24, 2022 11:55 pm    Post subject: [emerge]media-libs/opencv(open) Reply with quote

Un saludo a esta amable comunidad, desde noviembre no había actualizado mi portátil y ahora no se como reparar esto :roll:

emerge --update --deep --newuse -a @world
Code:
These are the packages that would be merged, in order:

Calculating dependencies /

!!! Problem resolving dependencies for media-libs/opencv from @selected
... done!

!!! The ebuild selected to satisfy "media-libs/opencv" has unmet requirements.
- media-libs/opencv-4.5.4::gentoo USE="contribdnn eigen features2d ffmpeg gstreamer java jpeg opengl openmp png python qt5 tiff -contrib (-contribcvv) -contribfreetype (-contribhdf) (-contribovis) (-contribsfm) (-contribxfeatures2d) (-cuda) -debug -dnnsamples -download -examples -gdal (-gflags) (-glog) -gphoto2 -gtk3 -ieee1394 -jpeg2k -lapack -lto -opencl -opencvapps -openexr (-tesseract) -testprograms -threads -v4l -vaapi (-vtk) -webp -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f -f16c -fma3" PYTHON_TARGETS="python3_9 -python3_10 -python3_8"

  The following REQUIRED_USE flag constraints are unsatisfied:
    contribdnn? ( contrib )

  The above constraints are a subset of the following complete expression:
    cpu_flags_x86_avx2? ( cpu_flags_x86_f16c ) cpu_flags_x86_f16c? ( cpu_flags_x86_avx ) cuda? ( contrib tesseract? ( opencl ) ) dnnsamples? ( examples ) gflags? ( contrib ) glog? ( contrib ) contribcvv? ( contrib qt5 ) contribdnn? ( contrib ) contribfreetype? ( contrib ) contribhdf? ( contrib ) contribovis? ( contrib ) contribsfm? ( contrib eigen gflags glog ) contribxfeatures2d? ( contrib download ) examples? ( contribdnn ) java? ( python ) opengl? ( qt5 ) python? ( any-of ( python_targets_python3_8 python_targets_python3_9 python_targets_python3_10 ) ) tesseract? ( contrib ) at-most-one-of ( gtk3 qt5 )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])


De antemano gracias.
_________________
“La amabilidad es un idioma que el sordo puede oír y el ciego puede ver.”

linux user 384810
Back to top
View user's profile Send private message
chrootman
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2020
Posts: 95

PostPosted: Tue Jan 25, 2022 3:27 am    Post subject: Re: [emerge]media-libs/opencv(open) Reply with quote

carlos plaza wrote:
The following REQUIRED_USE flag constraints are unsatisfied:
contribdnn? ( contrib )

Si la USE contribdnn está habilitada, también debe estarlo contrib.
carlos plaza wrote:
The above constraints are a subset of the following complete expression:
cpu_flags_x86_avx2? ( cpu_flags_x86_f16c ) cpu_flags_x86_f16c? ( cpu_flags_x86_avx )

Si la USE cpu_flags_x86_avx2 está habilitada, también debe estarlo cpu_flags_x86_f16c. Si la USE cpu_flags_x86_f16c está habilitada, también debe estarlo cpu_flags_x86_avx.
En mi caso tengo deshabilitado contribdnn y contrib:
Code:
[ebuild  N     ] media-libs/opencv-4.5.5  USE="eigen features2d opengl openmp python qt5 -contrib -contribcvv -contribdnn -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -ffmpeg -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg -jpeg2k -lapack -lto -opencl -opencvapps -openexr -png -tesseract -testprograms -threads -tiff -v4l -vaapi -vtk -webp -xine" ABI_X86="32 (64) (-x32)"

Prueba con:
Code:
USE=-cpu_flags_x86_avx2 emerge -1 opencv

Code:
emerge -av app-portage/cpuid2cpuflags
cpuid2cpuflags >> /etc/portage/make.conf
Hay que agregar las comillas
En mi caso no necesito agregar f16c
Podrías intentar deshabilitando y habilitando cosas como cpu_flag_avx y abi_x86_32 en package.use hasta que resulte dependiendo de tu configuración y hardware.
Tengo PYTHON_TARGETS="python3_8 python3_9 -python3_10". Y -avx -avx2 -avx512f -f16c -fma3 -popcnt -sse4_2 para CPU_FLAGS_X86.
Back to top
View user's profile Send private message
chrootman
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2020
Posts: 95

PostPosted: Fri Jan 28, 2022 6:37 am    Post subject: Reply with quote

Lo que he hecho últimamente es usar el parametro --autounmask-write=y y luego voy viendo si quiero o no agregar esa use, en caso de que no la quiera la comento y la agrego a /etc/portage/package.use/usevars con "-", eso lo empecé a hacer intuitivamente porque en ningún lado lo leí y eso que leo bastante, hace poco lo hice con budgie que me agregaba automaticamente bluetooth y lo descarté.
/etc/portage/package.use/zz-autounmask
Code:
# required by media-libs/libopenshot-0.2.7::gentoo[opencv]
# required by media-video/openshot-2.6.1::gentoo
# required by media-video/openshot (argument)
>=media-libs/opencv-4.5.5 contribdnn contrib

Code:
# required by media-libs/libopenshot-0.2.5::gentoo
# required by media-video/openshot-2.5.1::gentoo
# required by media-video/openshot (argument)
>=dev-qt/qtmultimedia-5.15.1 widgets

Code:
# required by media-libs/libopenshot-0.2.5::gentoo
# required by media-video/openshot-2.5.1::gentoo
# required by media-video/openshot (argument)
>=media-video/ffmpeg-4.3.1 mp3 vpx xvid theora x264

Imagino que ya ejecutaste:
Code:
emerge -avuDN --with-bdeps=y --keep-going --backtrack=30 world

Code:
eix -I opencv
[I] media-libs/opencv
     Available versions:  4.5.2-r3(0/4.5.2) 4.5.2-r5(0/4.5.2) 4.5.4(0/4.5.4) (~)4.5.5(0/4.5.5) {contrib contribcvv contribdnn contribfreetype contribhdf contribovis contribsfm contribxfeatures2d cuda debug dnnsamples download +eigen examples +features2d ffmpeg gdal gflags glog gphoto2 gstreamer gtk3 ieee1394 java jpeg jpeg2k lapack lto opencl opencvapps openexr opengl openmp png +python qt5 tesseract testprograms threads tiff v4l vaapi vtk webp xine ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_ARM="neon vfpv3" CPU_FLAGS_PPC="vsx vsx3" CPU_FLAGS_X86="avx avx2 avx512f f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" PYTHON_TARGETS="python3_8 python3_9 python3_10"}
     Installed versions:  4.5.5(0/4.5.5)(08:38:32 AM 01/10/2022)(contrib contribdnn eigen features2d opengl openmp python qt5 -contribcvv -contribfreetype -contribhdf -contribovis -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -ffmpeg -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -java -jpeg -jpeg2k -lapack -lto -opencl -opencvapps -openexr -png -tesseract -testprograms -threads -tiff -v4l -vaapi -vtk -webp -xine ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_ARM="-neon -vfpv3" CPU_FLAGS_PPC="-vsx -vsx3" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 ssse3 -avx -avx2 -avx512f -f16c -fma3 -popcnt -sse4_2" PYTHON_TARGETS="python3_8 python3_9 -python3_10")
     Homepage:            https://opencv.org
     Description:         A collection of algorithms and sample code for various computer vision problems

Code:
equery depends opencv
 * These packages depend on opencv:
media-gfx/shotwell-0.30.14 (opencv ? >=media-libs/opencv-2.3.0)
media-libs/libopenshot-0.2.7 (opencv ? >=media-libs/opencv-4.5.2[contrib,contribdnn])

Desde otro hilo recuerdo que usabas la rama estable amd64, imagino que si agregas media-libs/opencv-4.5.5 a /etc/portage/package.accept_keywords podrías lograr algo. Tengo funcionando openshot por si acaso.
La otra opción es deshabilitar opengl.
carlos plaza wrote:
opengl? ( qt5 ) python? ( any-of ( python_targets_python3_8 python_targets_python3_9 python_targets_python3_10 )
Back to top
View user's profile Send private message
quilosaq
Veteran
Veteran


Joined: 22 Dec 2009
Posts: 1522

PostPosted: Fri Jan 28, 2022 7:39 pm    Post subject: Reply with quote

@carlos plaza

Prueba añadiendo contrib y contribdnn al paquete en package.use. Por ejemplo:
Code:
media-libs/opencv contrib contribdnn
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum