Closed vitaliy-kuzmich closed 4 years ago
Build with Go tag "vp8enc"
Build with Go tag "vp8enc"
after using vp8enc following error is coming.
# github.com/rviscarra/webrtc-remote-screen/internal/encoders
internal/encoders/vp8_encoder.go: In function 'rgba_to_yuv':
internal/encoders/vp8_encoder.go:25:2: error: 'for' loop initial declarations are only allowed in C99 mode
for( size_t line = 0; line < height; ++line ) {
^
internal/encoders/vp8_encoder.go:25:2: note: use option -std=c99 or -std=gnu99 to compile your code
internal/encoders/vp8_encoder.go:27:4: error: 'for' loop initial declarations are only allowed in C99 mode
for( size_t x = 0; x < width; x += 2 ) {
^
internal/encoders/vp8_encoder.go:44:4: error: 'for' loop initial declarations are only allowed in C99 mode
for( size_t x = 0; x < width; x += 1 ) {
^
internal/encoders/vp8_encoder.go: In function 'vpx_img_read':
internal/encoders/vp8_encoder.go:75:32: error: 'VPX_IMG_FMT_HIGHBITDEPTH' undeclared (first use in this function)
((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1);
^
internal/encoders/vp8_encoder.go:75:32: note: each undeclared identifier is reported only once for each function it appears in
make: *** [agent] Error 2
I use vp8enc, the same code runs fine on macos, and it prompts "Couldn't find a matching codec" on windows
Can't stream when press on start