Vcpkg: problem in opencv port

Created on 21 Oct 2020  路  2Comments  路  Source: microsoft/vcpkg


Is your feature request related to a problem? Please describe.
Hi,
I have a problem with opencv port that it must install opencv4 even if opencv3 is already installed
if there is away to make it depend on opencv3 or opencv4 or opencv2 so if one is installed in vcpkg it doesn't break installation of other packages depend on opencv

Proposed solution
I have solved using overlay ports option and change opencv port to use opencv3 but in my opinion its not an elegant solution or even a solution

Describe alternatives you've considered
Additional context

question

Most helpful comment

Unfortunately that's the way to go.
We have a general opencv port which depends on opencv4, and other ports must depend on opencv and not a specific version.
In this way with overlays you only have to overlay opencv and make it depend on opencv3.
Only the darknet port can be installed with dependency on a specific opencv version using features, others have to rely on the method you have already discovered by yourself. It might not be very elegant, but for now it's the only way we have.
vcpkg is "bleeding edge" by design, it's already a little bit strange that opencv3 and opencv2 were allowed :)

All 2 comments

Unfortunately that's the way to go.
We have a general opencv port which depends on opencv4, and other ports must depend on opencv and not a specific version.
In this way with overlays you only have to overlay opencv and make it depend on opencv3.
Only the darknet port can be installed with dependency on a specific opencv version using features, others have to rely on the method you have already discovered by yourself. It might not be very elegant, but for now it's the only way we have.
vcpkg is "bleeding edge" by design, it's already a little bit strange that opencv3 and opencv2 were allowed :)

Thanks @cenit for clarification

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cjvaijo picture cjvaijo  路  3Comments

tzbo picture tzbo  路  3Comments

LilyWangL picture LilyWangL  路  3Comments

jack17529 picture jack17529  路  3Comments

oahzuw picture oahzuw  路  3Comments