hikka icon indicating copy to clipboard operation
hikka copied to clipboard

make: *** [Makefile:7: linux] Ошибка 2

Open StanIdris opened this issue 5 years ago • 4 comments

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 *’} 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:49: warning: passing argument 5 of ‘NET_DVR_Login’ from incompatible pointer type [-Wincompatible-pointer-types] In file included from src/hikka.go:4: /home/h0rse/hikka/include/HCNetSDK.h:13117:150: 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 _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

StanIdris avatar Jun 19 '19 18:06 StanIdris

такая же жопа admin help

sashagitar avatar Aug 19 '19 13:08 sashagitar

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

sashagitar avatar Aug 19 '19 13:08 sashagitar

Поробуй go откатить

oooaoaSH avatar May 16 '20 08:05 oooaoaSH

+

Sharabaddin avatar Jul 21 '20 23:07 Sharabaddin