rviscarra / webrtc-remote-screen

Stream a remote desktop screen directly to your browser
MIT License
469 stars 72 forks source link

error when go build #2

Closed dzakaammar closed 5 years ago

dzakaammar commented 5 years ago

I've got this error when build the agent into executable file.

# github.com/gen2brain/x264-go/x264c
In file included from ../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/x264c_cgo.go:31:0:
../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/encoder/encoder.c: In function ‘x264_encoder_open_152’:
../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/encoder/encoder.c:1724:37: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=]
     snprintf( level, sizeof(level), "%d.%d", h->sps->i_level_idc/10, h->sps->i_level_idc%10 );
                                     ^~~~~~~
../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/encoder/encoder.c:1724:37: note: directive argument in the range [-214748364, 214748364]
../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/encoder/encoder.c:1724:37: note: directive argument in the range [-9, 9]
In file included from /usr/include/stdio.h:862:0,
                 from ../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/common/osdep.h:33,
                 from ../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/common/common.h:117,
                 from ../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/external/x264/common/mc.c:27,
                 from ../go/pkg/mod/github.com/gen2brain/x264-go@v0.0.0-20180306035800-58f586137654/x264c/x264c_cgo.go:6:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 4 and 14 bytes into a destination of size 4
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());

I'm running on linux ubuntu 18.04 and using go 1.12.7. Any idea why i got this error? Thanks :))

rviscarra commented 5 years ago

Hey @dzakaammar, that's not an error, it's just a warning. I get the same in Ubuntu 18.04, does it fail produce the agent binary for you?

dzakaammar commented 5 years ago

Update: yup, that's not an error and the executable file has worked properly. I think i can close this issue.