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

WAVE420 & WAVE511 driver compile error #1

Open
shirok1 opened this issue Jan 21, 2023 · 1 comment
Open

WAVE420 & WAVE511 driver compile error #1

shirok1 opened this issue Jan 21, 2023 · 1 comment

Comments

@shirok1
Copy link

shirok1 commented Jan 21, 2023

sample/helper/vpuhelper.c:1679:65: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 1 and 256 [-Werror=format-truncation=]
 1679 |             snprintf(pEncConfig->yuvFileName, MAX_FILE_PATH, "%s%s", yuvDir, pCfg->SrcFileName);
      |                                                                 ^~
sample/helper/vpuhelper.c:1679:13: note: ‘snprintf’ output between 1 and 511 bytes into a destination of size 256
 1679 |             snprintf(pEncConfig->yuvFileName, MAX_FILE_PATH, "%s%s", yuvDir, pCfg->SrcFileName);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-Wall -Werror should be changed in WaveDecode_buildroot.mak

@cordlandwehr
Copy link

cordlandwehr commented Jan 29, 2023

It would be great actually, if you could switch from the build.sh + Makefile approach to a decent buildystem (CMake, meson...). For me in the Yocto packaging world, I have to horribly patch the existing Makefiles and copy code around during configuring the package, because all Makefiles makes very specific assumptions about being in buildroot.
Same also holds for codaj12.

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