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 compiling vvdec with llvm-mingw-20250305 toolchain on linux #484

Open
eko5624 opened this issue Mar 9, 2025 · 2 comments
Open

Comments

@eko5624
Copy link

eko5624 commented Mar 9, 2025

I download llvm-mingw-20250305-ucrt-ubuntu-20.04-x86_64.tar.xz from your repo. When comiling vvdec, error occured. Here's the log:
https://github.com/eko5624/mpv-winbuild/actions/runs/13743674175/job/38436203984

@longnguyen2004
Copy link
Contributor

/__w/mpv-winbuild/mpv-winbuild/vvdec-dev/src/vvdec/source/Lib/vvdec/../CommonLib/TypeDef.h:1036:18: error: first argument in call to 'memcpy' is a pointer to non-trivially copyable type 'vvdec::CcAlfFilterParam' [-Werror,-Wnontrivial-memcall]
 1036 |     std::memcpy( this, &src, sizeof( CcAlfFilterParam ) );
      |                  ^
/__w/mpv-winbuild/mpv-winbuild/vvdec-dev/src/vvdec/source/Lib/vvdec/../CommonLib/TypeDef.h:1036:18: note: explicitly cast the pointer to silence this warning
 1036 |     std::memcpy( this, &src, sizeof( CcAlfFilterParam ) );
      |                  ^
      |                  (void*)

There's a lot of this, you can turn off the warning with -Wno-nontrivial-memcall, or follow the compiler's note and cast the pointer to void* first

@eko5624
Copy link
Author

eko5624 commented Mar 9, 2025

There's a lot of this, you can turn off the warning with -Wno-nontrivial-memcall

It works.

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