superhacker777 / hikka

IP camera bruteforcer
156 stars 64 forks source link

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

Open StanIdris opened 5 years ago

StanIdris commented 5 years ago

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 <anonymous> *’} but argument is of type ‘struct <anonymous> *’
 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
sashagitar commented 5 years ago

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

sashagitar commented 5 years ago

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

oooaoaSH commented 4 years ago

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

Sharabaddin commented 4 years ago

+