Open zhengxingjian opened 1 year ago
thread 'main' panicked at '=== Errors during header parsing', .cargo\registry\src\rsproxy.cn-8f6827c7555bfaf8\opencv-binding-generator-0.60.0\src\generator.rs:503:17
stack backtrace:
0: 0x7ff72282acc2 - std::backtrace_rs::backtrace::dbghelp::trace
at /rustc/d0f204e4d750b62f9d6c2593405e828757126832/library\std\src....\backtrace\src\backtrace\dbghelp.rs:98
1: 0x7ff72282acc2 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/d0f204e4d750b62f9d6c2593405e828757126832/library\std\src....\backtrace\src\backtrace\mod.rs:66
2: 0x7ff72282acc2 - std::sys_common::backtrace::_print_fmt
at /rustc/d0f204e4d750b62f9d6c2593405e828757126832/library\std\src\sys_common\backtrace.rs:65
3: 0x7ff72282acc2 - std::sys_common::backtrace::_print::impl$0::fmt
at /rustc/d0f204e4d750b62f9d6c2593405e828757126832/library\std\src\sys_common\backtrace.rs:44
4: 0x7ff722848e3b - core::fmt::write
at /rustc/d0f204e4d750b62f9d6c2593405e828757126832/library\core\src\fmt\mod.rs:1254
5: 0x7ff72282500a - std::io::Write::write_fmt
I have solved it . Try to remove visual studio 2022 and to use visual studio 2019.
I'm facing the same exact problem. When u say "use 2019 and remove 2022" i just need to uninstall 2022 with mvs installer or do i need to set some other sutff up?
I'm facing the same exact problem. When u say "use 2019 and remove 2022" i just need to uninstall 2022 with mvs installer or do i need to set some other sutff up?
i just uninstall visual studio 2022 and then install visual studio 2019. u do not need to do other things to solved it, but if another problem occur , try to find another method. good luck!
vs2019 can solved it
I have tried reproducing this issue today by installing Visual Studio 2022 Community and alternatively visualstudio2022buildtools
and visualstudio2022-workload-vctools
from choco. In both cases I could build the crate successfully without any errors. Can anybody confirm that they are still experiencing this issue and if so provide a way to reproduce it?
I can reproduce it, it happens after update to Visual Studio 2022 v17.7 and build tools v14.37 Rolling back to v17.6.5 and build tools v14.36 fixes the issue
I’ll try this specific version, thanks!
for me at least, it seems the issue was clang has to be >= 16 when using newer vs toolchain, vcpkg has 15 currently which is what i was using initially
the yvals_core.h file is asserting on
#if __clang_major__ < 16
_EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 16.0.0 or newer.");
#endif // ^^^ old Clang ^^^
pulling llvm and built it locally got around the issue
@AdrianEddy Can you please point me to the specific packages and URLs/package managers where to download those versions? I've tried to install the mentioned versions but now I'm confused about what is what :) (I'm not using Windows for regular development so I'm not that skilled here)
yes, use Visual Studio 2022 Community
open Visual Studio Installer
, click Modify
then Individual components
and choose:
rustc 1.71.0-nightly (d0f204e4d 2023-04-16)
)