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

issue with windows vcpkg environment setup #516

Closed
adminSxs opened this issue Nov 27, 2023 · 1 comment
Closed

issue with windows vcpkg environment setup #516

adminSxs opened this issue Nov 27, 2023 · 1 comment

Comments

@adminSxs
Copy link

vcpkg install

vcpkg install llvm opencv4[contrib,nonfree]

vcpgk list

atl:x64-windows                                   0                   A stub package that ensures Visual Studio has Ac...
bzip2:x64-windows                                 1.0.8#5             bzip2 is a freely available, patent free, high-q...
bzip2[tool]:x64-windows                                               Builds bzip2 executable
curl:x64-windows                                  8.4.0               A library for transferring data with URLs
curl[non-http]:x64-windows                                            Enables protocols beyond HTTP/HTTPS/HTTP2
curl[schannel]:x64-windows                                            SSL support (Secure Channel)
curl[ssl]:x64-windows                                                 Default SSL backend
curl[sspi]:x64-windows                                                SSPI support
flatbuffers:x64-windows                           23.5.26             Memory Efficient Serialization Library
giflib:x64-windows                                5.2.1#3             A library for reading and writing gif images.
hdf5:x64-windows                                  1.14.2              HDF5 is a data model, library, and file format f...
hdf5[szip]:x64-windows                                                Build with szip
hdf5[zlib]:x64-windows                                                Build with zlib
leptonica:x64-windows                             1.83.1              An open source library containing software that ...
libarchive:x64-windows                            3.6.2               Library for reading and writing streaming archives
libarchive[bzip2]:x64-windows                                         BZip2 support
libarchive[crypto]:x64-windows                                        Support for cryptographic features
libarchive[libxml2]:x64-windows                                       Libxml2 support
libarchive[lz4]:x64-windows                                           Lz4 support
libarchive[lzma]:x64-windows                                          Lzma support
libarchive[zstd]:x64-windows                                          Zstd support
libiconv:x64-windows                              1.17#1              GNU Unicode text conversion
libjpeg-turbo:x64-windows                         3.0.1               libjpeg-turbo is a JPEG image codec that uses SI...
liblzma:x64-windows                               5.4.4               Compression library with an API similar to that ...
libpng:x64-windows                                1.6.40              libpng is a library implementing an interface fo...
libwebp:x64-windows                               1.3.2               WebP codec: library to encode and decode images ...
libwebp[libwebpmux]:x64-windows                                       Build the libwebpmux library
libwebp[nearlossless]:x64-windows                                     Enable near-lossless encoding
libwebp[simd]:x64-windows                                             Enable any SIMD optimization.
libwebp[unicode]:x64-windows                                          Build Unicode executables. (Adds definition UNIC...
libxml2:x64-windows                               2.11.6              Libxml2 is the XML C parser and toolkit develope...
libxml2[iconv]:x64-windows                                            Add ICONV support
libxml2[lzma]:x64-windows                                             Use LZMA
libxml2[zlib]:x64-windows                                             Use ZLib
llvm:x64-windows                                  17.0.2#1            The LLVM Compiler Infrastructure.
llvm[clang]:x64-windows                                               Include C Language Family Front-end.
llvm[default-targets]:x64-windows                                     Build with platform-specific default targets.
llvm[enable-bindings]:x64-windows                                     Build bindings.
llvm[enable-terminfo]:x64-windows                                     Use terminfo database if available.
llvm[enable-zlib]:x64-windows                                         Build with ZLib.
llvm[enable-zstd]:x64-windows                                         Build with zstd.
llvm[lld]:x64-windows                                                 Include LLVM linker.
llvm[target-x86]:x64-windows                                          Build with X86 backend.
llvm[tools]:x64-windows                                               Build LLVM tools.
lz4:x64-windows                                   1.9.4#1             Lossless compression algorithm, providing compre...
opencv4:x64-windows                               4.8.0#10            computer vision library
opencv4[contrib]:x64-windows                                          opencv_contrib module
opencv4[default-features]:x64-windows                                 Platform-dependent default features
opencv4[dnn]:x64-windows                                              Enable dnn module
opencv4[jpeg]:x64-windows                                             JPEG support for opencv
opencv4[nonfree]:x64-windows                                          allow nonfree and unredistributable libraries
opencv4[png]:x64-windows                                              PNG support for opencv
opencv4[quirc]:x64-windows                                            Enable QR code module
opencv4[tiff]:x64-windows                                             TIFF support for opencv
opencv4[webp]:x64-windows                                             WebP support for opencv
openjpeg:x64-windows                              2.5.0#1             OpenJPEG is an open-source JPEG 2000 codec writt...
openssl:x64-windows                               3.1.4#1             OpenSSL is an open source project that provides ...
protobuf:x64-windows                              3.21.12             Protocol Buffers - Google's data interchange format
quirc:x64-windows                                 1.1#3               quirc is one of the C library available for scan...
szip:x64-windows                                  2.1.1#12            Szip compression software, providing lossless co...
tesseract:x64-windows                             5.3.3               An OCR Engine that was developed at HP Labs betw...
tiff:x64-windows                                  4.6.0#1             A library that supports the manipulation of TIFF...
tiff[jpeg]:x64-windows                                                Support JPEG compression in TIFF image files
tiff[lzma]:x64-windows                                                Support LZMA compression in TIFF image files
tiff[zip]:x64-windows                                                 Support ZIP/deflate compression in TIFF image files
vcpkg-cmake-config:x64-windows                    2022-02-06#1
vcpkg-cmake-get-vars:x64-windows                  2023-03-02
vcpkg-cmake:x64-windows                           2023-05-04
vcpkg-get-python-packages:x64-windows             2023-07-28
zlib:x64-windows                                  1.3                 A compression library
zstd:x64-windows                                  1.5.5#2             Zstandard - Fast real-time compression algorithm

error log
error.txt

@twistedfall
Copy link
Owner

The error seems to be coming from libclang C library:

  libclang: crash detected during parsing: {
    'source_filename' : 'D:\software\cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\opencv-0.88.1\src_cpp\aruco.hpp'
    'command_line_args' : ['clang', '-isystemD:\software\vcpkg\installed\x64-windows\tools\llvm\lib/clang/17\include', '-isystemC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include', '-isystemC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\atlmfc\include', '-isystemC:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt', '-isystemC:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\shared', '-isystemC:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um', '-isystemC:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\winrt', '-isystemC:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\cppwinrt', '-ID:\software\vcpkg\installed\x64-windows\include', '-FD:\software\vcpkg\installed\x64-windows\include', '-ID:\software\cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\opencv-0.88.1\src_cpp', '-FD:\software\cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\opencv-0.88.1\src_cpp', '-DOCVRS_PARSING_HEADERS', '-includeocvrs_common.hpp', '-std=c++14'],
    'unsaved_files' : [],
    'options' : 65,
  }

It is out of my control unfortunately. There is weird version mismatch in the logs. Version of clang is reported as "12.0.0", but it tries to include headers from Clang-17 so it might be the source of the issue. In general I would recommend installing and using a single latest version of clang in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants