cgo-gcc-prolog: In function ‘_cgo_b4a01acd0dff_Cfunc_NET_DVR_CaptureJPEGPicture’:
cgo-gcc-prolog:44:47: warning: passing argument 3 of ‘NET_DVR_CaptureJPEGPicture’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:0:
/home/username/Documents/hikka/include/HCNetSDK.h:13330:28: note: expected ‘LPNET_DVR_JPEGPARA {aka struct }’ but argument is of type ‘struct ’
NET_DVR_API BOOL stdcall NET_DVR_CaptureJPEGPicture(LONG lUserID, LONG lChannel, LPNET_DVR_JPEGPARA lpJpegPara, const char sPicFileName);
^~~~~~
cgo-gcc-prolog: In function ‘_cgo_b4a01acd0dff_Cfunc_NET_DVR_Login’:
cgo-gcc-prolog:143:48: warning: passing argument 5 of ‘NET_DVR_Login’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:0:
/home/username/Documents/hikka/include/HCNetSDK.h:13117:28: note: expected ‘LPNET_DVR_DEVICEINFO {aka struct }’ but argument is of type ‘struct *’
NET_DVR_API LONG stdcall NET_DVR_Login(const char sDVRIP, const WORD wDVRPort, const char sUserName, const char *sPassword, LPNET_DVR_DEVICEINFO lpDeviceInfo);
^~~~~
command-line-arguments
src/hikka.go:108: cannot use (_Ctype_struct___0)(unsafe.Pointer(&imgParams)) (type _Ctype_struct_0) as type *_Ctypestruct7 in argument to _Cfunc_NET_DVR_CaptureJPEGPicture
src/hikka.go:200: cannot use (_Ctype_struct___1)(unsafe.Pointer(&device)) (type _Ctype_struct_1) as type *_Ctypestruct6 in argument to _Cfunc_NET_DVR_Login
Makefile:7: recipe for target 'linux' failed
make: *** [linux] Error 2
GOOS=linux CGO_CFLAGS="-I/home/private/Documents/hikka/include" CGO_LDFLAGS="-L/home/username/Documents/hikka/lib/Linux -Wl,-rpath=/home/username/Documents/hikka/lib/Linux -lhcnetsdk" go build -ldflags "-s -w" -o build/Linux/hikka src/hikka.go
command-line-arguments
cgo-gcc-prolog: In function ‘_cgo_b4a01acd0dff_Cfunc_NET_DVR_CaptureJPEGPicture’: cgo-gcc-prolog:44:47: warning: passing argument 3 of ‘NET_DVR_CaptureJPEGPicture’ from incompatible pointer type [-Wincompatible-pointer-types] In file included from src/hikka.go:4:0: /home/username/Documents/hikka/include/HCNetSDK.h:13330:28: note: expected ‘LPNET_DVR_JPEGPARA {aka struct }’ but argument is of type ‘struct ’
NET_DVR_API BOOL stdcall NET_DVR_CaptureJPEGPicture(LONG lUserID, LONG lChannel, LPNET_DVR_JPEGPARA lpJpegPara, const char sPicFileName);
^ }’ but argument is of type ‘struct *’
NET_DVR_API LONG stdcall NET_DVR_Login(const char sDVRIP, const WORD wDVRPort, const char sUserName, const char *sPassword, LPNET_DVR_DEVICEINFO lpDeviceInfo);
^
~~~~~cgo-gcc-prolog: In function ‘_cgo_b4a01acd0dff_Cfunc_NET_DVR_Login’: cgo-gcc-prolog:143:48: warning: passing argument 5 of ‘NET_DVR_Login’ from incompatible pointer type [-Wincompatible-pointer-types] In file included from src/hikka.go:4:0: /home/username/Documents/hikka/include/HCNetSDK.h:13117:28: note: expected ‘LPNET_DVR_DEVICEINFO {aka struct~~~~command-line-arguments
src/hikka.go:108: cannot use (_Ctype_struct___0)(unsafe.Pointer(&imgParams)) (type _Ctype_struct_0) as type *_Ctypestruct7 in argument to _Cfunc_NET_DVR_CaptureJPEGPicture src/hikka.go:200: cannot use (_Ctype_struct___1)(unsafe.Pointer(&device)) (type _Ctype_struct_1) as type *_Ctypestruct6 in argument to _Cfunc_NET_DVR_Login Makefile:7: recipe for target 'linux' failed make: *** [linux] Error 2