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

Can't compile with GCC #42

Closed
4re opened this issue Apr 13, 2024 · 1 comment · Fixed by #43
Closed

Can't compile with GCC #42

4re opened this issue Apr 13, 2024 · 1 comment · Fixed by #43

Comments

@4re
Copy link

4re commented Apr 13, 2024

Since commit b166edf I get this error when trying to compile on x86_64-pc-linux-gnu Linux with GCC 13.2.1.

Error log
[11/17] x86_64-pc-linux-gnu-g++ -Ilibbestsource.so.p -I. -I../bestsource-9999 -flto=16 -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -march=znver2 -O2 -ftree-vectorize -fdevirtualize-at-ltrans -pipe -ggdb -fdiagnostics-color=never -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fPIC -MD -MQ libbestsource.so.p/src_videosource.cpp.o -MF libbestsource.so.p/src_videosource.cpp.o.d -o libbestsource.so.p/src_videosource.cpp.o -c ../bestsource-9999/src/videosource.cpp
FAILED: libbestsource.so.p/src_videosource.cpp.o 
x86_64-pc-linux-gnu-g++ -Ilibbestsource.so.p -I. -I../bestsource-9999 -flto=16 -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -march=znver2 -O2 -ftree-vectorize -fdevirtualize-at-ltrans -pipe -ggdb -fdiagnostics-color=never -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fPIC -MD -MQ libbestsource.so.p/src_videosource.cpp.o -MF libbestsource.so.p/src_videosource.cpp.o.d -o libbestsource.so.p/src_videosource.cpp.o -c ../bestsource-9999/src/videosource.cpp
../bestsource-9999/src/videosource.cpp: In member function ‘bool BestVideoFrame::ExportAsPlanar(uint8_t**, ptrdiff_t*, uint8_t*, ptrdiff_t) const’:
../bestsource-9999/src/videosource.cpp:658:32: error: ‘p2p_nv16_le’ was not declared in this scope; did you mean ‘p2p_nv12_le’?
  658 |             { AV_PIX_FMT_NV16, p2p_nv16_le },
      |                                ^~~~~~~~~~~
      |                                p2p_nv12_le
../bestsource-9999/src/videosource.cpp:660:32: error: ‘p2p_p012’ was not declared in this scope; did you mean ‘p2p_p016’?
  660 |             { AV_PIX_FMT_P012, p2p_p012 },
      |                                ^~~~~~~~
      |                                p2p_p016
../bestsource-9999/src/videosource.cpp:662:32: error: ‘p2p_p212’ was not declared in this scope; did you mean ‘p2p_p216’?
  662 |             { AV_PIX_FMT_P212, p2p_p212 },
      |                                ^~~~~~~~
      |                                p2p_p216
../bestsource-9999/src/videosource.cpp:664:32: error: ‘p2p_y212’ was not declared in this scope; did you mean ‘p2p_y216’?
  664 |             { AV_PIX_FMT_Y212, p2p_y212 },
      |                                ^~~~~~~~
      |                                p2p_y216
../bestsource-9999/src/videosource.cpp:665:32: error: ‘p2p_y412_le’ was not declared in this scope; did you mean ‘p2p_y416_le’?
  665 |             { AV_PIX_FMT_XV36, p2p_y412_le },
      |                                ^~~~~~~~~~~
      |                                p2p_y416_le
../bestsource-9999/src/videosource.cpp:666:9: error: could not convert ‘{{AV_PIX_FMT_YUYV422, p2p_yuy2}, {AV_PIX_FMT_UYVY422, p2p_uyvy}, {AV_PIX_FMT_RGB24, p2p_rgb24_be}, {AV_PIX_FMT_ARGB, p2p_argb32_be}, {AV_PIX_FMT_0RGB, p2p_argb32_be}, {AV_PIX_FMT_RGBA, p2p_rgba32_be}, {AV_PIX_FMT_RGB0, p2p_rgba32_be}, {AV_PIX_FMT_0BGR, p2p_rgba32_le}, {AV_PIX_FMT_BGR0, p2p_argb32_le}, {AV_PIX_FMT_RGB48BE, p2p_rgb48_be}, {AV_PIX_FMT_RGB48LE, p2p_rgb48_le}, {AV_PIX_FMT_RGBA64LE, p2p_rgba64_le}, {AV_PIX_FMT_RGBA64BE, p2p_rgba64_be}, {AV_PIX_FMT_NV12, p2p_nv12_le}, {AV_PIX_FMT_NV16, <expression error>}, {AV_PIX_FMT_P010LE, p2p_p010}, {AV_PIX_FMT_P012LE, <expression error>}, {AV_PIX_FMT_P210LE, p2p_p210}, {AV_PIX_FMT_P212LE, <expression error>}, {AV_PIX_FMT_Y210LE, p2p_y210}, {AV_PIX_FMT_Y212LE, <expression error>}, {AV_PIX_FMT_XV36LE, <expression error>}}’ from ‘<brace-enclosed initializer list>’ to ‘const std::map<AVPixelFormat, p2p_packing>’
  666 |         };
      |         ^
      |         |
      |         <brace-enclosed initializer list>
@JustinTArthur
Copy link

Just to be sure, @4re, did you retrieve the repo's submodules in this clone?

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

Successfully merging a pull request may close this issue.

2 participants