vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[opencv4] Missing feature for "carotene"

Open tusharb86 opened this issue 5 years ago • 1 comments

The opencv4 port is missing a feature for "carotene" and the corresponding WITH_CAROTENE flag passed to OpenCV.


Is your feature request related to a problem? Please describe. When building an Android project that consumes opencv4 (targeting armeabi-v7a or arm64-v8a from vcpkg), I get a bunch of linker errors like this:

error: undefined reference to 'carotene_o4t::isSupportedConfiguration()'
error: undefined reference to 'carotene_o4t::add(carotene_o4t::Size2D const&, unsigned char const*, int, unsigned char const*, int, unsigned char*, int, carotene_o4t::CONVERT_POLICY)'
...

Proposed solution A feature for "carotene" should be added to the CONTROL and portfile.cmake so that folks can enable or disable the feature appropriately.

Describe alternatives you've considered To unblock myself for now, I've added a brittle workaround to my triplet file that takes advantage of the fact that vcpkg_configure_cmake takes an additional variable called ADDITIONAL_BUILD_FLAGS:

if(PORT MATCHES "opencv")
    list(APPEND ADDITIONAL_BUILD_FLAGS "-DWITH_CAROTENE=OFF")
endif()

tusharb86 avatar Oct 09 '20 00:10 tusharb86

Resolved by #42745.

dg0yt avatar Dec 06 '25 11:12 dg0yt