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

Build errors when trying to compile against sdl2-compat #467

Open
bbhtt opened this issue Jan 25, 2025 · 0 comments
Open

Build errors when trying to compile against sdl2-compat #467

bbhtt opened this issue Jan 25, 2025 · 0 comments

Comments

@bbhtt
Copy link

bbhtt commented Jan 25, 2025

[31/61] /usr/bin/c++ -DHAVE_MALLOC_H -DHAVE_POSIX_MEMALIGN -DLIBDE265_EXPORTS -Dde265_EXPORTS -I/buildstream-build -I/buildstream-build/_builddir -I/buildstream-build/libde265 -I/buildstream-build/_builddir/libde265 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -fPIC   -Wall -MD -MT libde265/CMakeFiles/de265.dir/configparam.cc.o -MF libde265/CMakeFiles/de265.dir/configparam.cc.o.d -o libde265/CMakeFiles/de265.dir/configparam.cc.o -c /buildstream-build/libde265/configparam.cc
[32/61] /usr/bin/c++ -DHAVE_MALLOC_H -DHAVE_POSIX_MEMALIGN -DHAVE_SDL -I/buildstream-build -I/buildstream-build/_builddir -I/buildstream-build/libde265 -isystem /usr/include/SDL2 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -fPIE   -Wall -MD -MT dec265/CMakeFiles/dec265.dir/sdl.cc.o -MF dec265/CMakeFiles/dec265.dir/sdl.cc.o.d -o dec265/CMakeFiles/dec265.dir/sdl.cc.o -c /buildstream-build/dec265/sdl.cc
FAILED: dec265/CMakeFiles/dec265.dir/sdl.cc.o 
/usr/bin/c++ -DHAVE_MALLOC_H -DHAVE_POSIX_MEMALIGN -DHAVE_SDL -I/buildstream-build -I/buildstream-build/_builddir -I/buildstream-build/libde265 -isystem /usr/include/SDL2 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -fPIE   -Wall -MD -MT dec265/CMakeFiles/dec265.dir/sdl.cc.o -MF dec265/CMakeFiles/dec265.dir/sdl.cc.o.d -o dec265/CMakeFiles/dec265.dir/sdl.cc.o -c /buildstream-build/dec265/sdl.cc
/buildstream-build/dec265/sdl.cc: In member function ‘void SDL_YUV_Display::display420(const unsigned char*, const unsigned char*, const unsigned char*, int, int)’:
/buildstream-build/dec265/sdl.cc:136:5: error: ‘memcpy’ was not declared in this scope
  136 |     memcpy(mPixels, Y, rect.w * rect.h);
      |     ^~~~~~
/buildstream-build/dec265/sdl.cc:29:1: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
   28 | #include <assert.h>
  +++ |+#include <cstring>
   29 | 
/buildstream-build/dec265/sdl.cc:146:9: error: ‘memcpy’ was not declared in this scope
  146 |         memcpy(dest, Y+stride*y, rect.w);
      |         ^~~~~~
/buildstream-build/dec265/sdl.cc:146:9: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc:151:9: error: ‘memcpy’ was not declared in this scope
  151 |         memcpy(dest, V+chroma_stride*y, rect.w/2);
      |         ^~~~~~
/buildstream-build/dec265/sdl.cc:151:9: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc:156:9: error: ‘memcpy’ was not declared in this scope
  156 |         memcpy(dest, U+chroma_stride*y, rect.w/2);
      |         ^~~~~~
/buildstream-build/dec265/sdl.cc:156:9: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc: In member function ‘void SDL_YUV_Display::display400(const unsigned char*, int)’:
/buildstream-build/dec265/sdl.cc:169:5: error: ‘memcpy’ was not declared in this scope
  169 |     memcpy(mPixels, Y, rect.w * rect.h);
      |     ^~~~~~
/buildstream-build/dec265/sdl.cc:169:5: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc:177:9: error: ‘memcpy’ was not declared in this scope
  177 |         memcpy(dest, Y+stride*y, rect.w);
      |         ^~~~~~
/buildstream-build/dec265/sdl.cc:177:9: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc:183:3: error: ‘memset’ was not declared in this scope
  183 |   memset(dest, 0x80, mStride * rect.h / 2);
      |   ^~~~~~
/buildstream-build/dec265/sdl.cc:183:3: note: ‘memset’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc: In member function ‘void SDL_YUV_Display::display422(const unsigned char*, const unsigned char*, const unsigned char*, int, int)’:
/buildstream-build/dec265/sdl.cc:196:5: error: ‘memcpy’ was not declared in this scope
  196 |     memcpy(dstY, Yp, rect.w);
      |     ^~~~~~
/buildstream-build/dec265/sdl.cc:196:5: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc:206:5: error: ‘memcpy’ was not declared in this scope
  206 |     memcpy(dstU, Up, rect.w / 2);
      |     ^~~~~~
/buildstream-build/dec265/sdl.cc:206:5: note: ‘memcpy’ is defined in header ‘<cstring>’; this is probably fixable by adding ‘#include <cstring>’
/buildstream-build/dec265/sdl.cc: In member function ‘void SDL_YUV_Display::display444as420(const unsigned char*, const unsigned char*, const unsigned char*, int, int)’:
/buildstream-build/dec265/sdl.cc:246:7: error: ‘memcpy’ was not declared in this scope
  246 |       memcpy(p, Y+y*stride, rect.w);
      |       ^~~~~~
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

1 participant