Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opencv3] fix webp include dir #31054

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

autoantwort
Copy link
Contributor

@autoantwort autoantwort commented Apr 22, 2023

Fixes

[236/382] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_IMGCODEC_HDR -DHAVE_IMGCODEC_PXM -DHAVE_IMGCODEC_SUNRASTER -DHAVE_WEBP -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/imgcodecs -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/core/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgproc/include -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg -fPIC   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-declarations -g  -O0 -DDEBUG -D_DEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -std=c++11 -MD -MT modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o -MF modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o.d -o modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/src/grfmt_webp.cpp
FAILED: modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_IMGCODEC_HDR -DHAVE_IMGCODEC_PXM -DHAVE_IMGCODEC_SUNRASTER -DHAVE_WEBP -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/imgcodecs -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/core/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgproc/include -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg -fPIC   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-deprecated-declarations -g  -O0 -DDEBUG -D_DEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -std=c++11 -MD -MT modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o -MF modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o.d -o modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/src/grfmt_webp.cpp
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/src/grfmt_webp.cpp:47:10: fatal error: 'webp/decode.h' file not found
#include <webp/decode.h>
         ^~~~~~~~~~~~~~~
1 error generated.

Now also fixes the opencv3[core,python] build that failed with

[383/385] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/python3/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/python3 -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/core/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgproc/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/ml/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/photo/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/video/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/features2d/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/shape/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/videoio/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/calib3d/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/highgui/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/objdetect/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/superres/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/videostab/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/src2 -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/python_bindings_generator -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg -isystem /opt/homebrew/Frameworks/Python.framework/Versions/3.11/include/python3.11 -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-venv/lib/python3.11/site-packages/numpy/core/include -fPIC   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-unused-private-field -Wno-undef -g  -O0 -DDEBUG -D_DEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/src2/cv2.cpp
FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/python3/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/python3 -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/core/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgproc/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/ml/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/photo/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/video/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/features2d/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/imgcodecs/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/shape/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/videoio/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/calib3d/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/highgui/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/objdetect/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/superres/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/videostab/include -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/src2 -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/python_bindings_generator -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg -isystem /opt/homebrew/Frameworks/Python.framework/Versions/3.11/include/python3.11 -isystem /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-venv/lib/python3.11/site-packages/numpy/core/include -fPIC   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-unused-private-field -Wno-undef -g  -O0 -DDEBUG -D_DEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/src2/cv2.cpp
In file included from /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/src/3.4.18-b77de20add.clean/modules/python/src2/cv2.cpp:2073:
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/opencv3/arm64-osx-dbg/modules/python_bindings_generator/pyopencv_generated_types.h:69:57: error: no member named 'FlannBasedMatcher' in namespace 'cv'
CVPY_TYPE(FlannBasedMatcher, FlannBasedMatcher, Ptr<cv::FlannBasedMatcher>, Ptr, DescriptorMatcher, pyopencv_cv_FlannBasedMatcher_FlannBasedMatcher, "");
                                                    ~~~~^

@MonicaLiu0311 MonicaLiu0311 added the category:port-bug The issue is with a library, which is something the port should already support label Apr 23, 2023
@MonicaLiu0311
Copy link
Contributor

Feature python is tested successfully in the following triplet:
x86-windows
x64-windows
x64-windows-static

@MonicaLiu0311 MonicaLiu0311 added the info:reviewed Pull Request changes follow basic guidelines label Apr 23, 2023
@BillyONeal BillyONeal merged commit 846790c into microsoft:master Apr 25, 2023
@BillyONeal
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants