hikka
hikka copied to clipboard
make: *** [Makefile:7: linux] Ошибка 2
GOOS=linux CGO_CFLAGS="-I/home/h0rse/hikka/include" CGO_LDFLAGS="-L/home/h0rse/hikka/lib/Linux -Wl,-rpath=/home/h0rse/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:48: warning: passing argument 3 of ‘NET_DVR_CaptureJPEGPicture’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:
/home/h0rse/hikka/include/HCNetSDK.h:13330:103: note: expected ‘LPNET_DVR_JPEGPARA’ {aka ‘struct
command-line-arguments
src/hikka.go:108: cannot use (*_Ctype_struct___0)(unsafe.Pointer(&imgParams)) (type *_Ctype_struct___0) as type _Ctype_struct___7 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 *_Ctype_struct___6 in argument to _Cfunc_NET_DVR_Login
такая же жопа admin help
GOOS=linux CGO_CFLAGS="-I/root/hikka/include" CGO_LDFLAGS="-L/root/hikka/lib/Linux -Wl,-rpath=/root/hikka/lib/Linux -lhcnetsdk" go build -ldflags "-s -w" -o build/Linux/hikka src/hikka.go
runtime/cgo
/usr/bin/ld: skipping incompatible /root/hikka/lib/Linux/libhcnetsdk.so when searching for -lhcnetsdk /usr/bin/ld: cannot find -lhcnetsdk collect2: error: ld returned 1 exit status make: *** [Makefile:7: linux] Error 2
Поробуй go откатить
+