Open StanIdris opened 5 years ago
такая же жопа 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
/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 откатить
+
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);