Open fjcabello opened 4 years ago
Related with roleoroleo/yi-hack-MStar#133
@fjcabello can't simulate your problem. Probably not related but this is my absolute path for busybox:
MOD_DIR: /yi-hack-src/src/busybox
What's your output for uname -a
(on both host and docker container) ?
Hi,
$ uname -a Linux ba068e8a531e 4.14.131-linuxkit #1 SMP Fri Jul 19 12:31:17 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
And my laptop: $ uname -a $ uname -a Darwin MacBook-Pro-de-Francisco.local 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
Thanks!
Paco
Hi,
I tried to put source code under /yi-hack-src, so now
MOD_DIR: /yi-hack-src/src/busybox
but it's not making any difference. I got the same error :(
Thanks!
Issue is due to MacOSX. I tried in Ubuntu and it's working.
Only an issue with onvif Trying to download https://www.openssl.org/source/openssl-1.0.2u.tar.gz but openssl moved that version to: https://www.openssl.org/source/old/openssl-1.0.2u.tar.gz
@fjcabello my environment is also MacOS (Catalina 10.15.4). I have had no trouble building on 2019 iMac or 2018 MacBook Pro
➜ ~ uname -a
Darwin iMac.local 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64
➜ ~ docker --version
Docker version 19.03.8, build afacb8b
Regarding the openssl
download issue it is due to https://github.com/roleoroleo/yi-hack-MStar/blob/623feb7bdbcdedab5475d92c084fc7a5a9825a91/src/onvif_srvd/Makefile.onvif_srvd#L289 . @roleoroleo will appreciate if you make a pull request
I will update in the next release.
Strange, Strange... following the problem I realized that busybox fails in a internal binary call fixdep.c. Adding some traces the problems is in a fstat call and the error is 'fstat: Value too large for defined data type'. This error appears when you are in 64bit architectures but binary is compiled with 32bit support.
Do you know if ARM arch of the camera is 32bit or 64bit?
Any idea? The only 'uncommon' thing of my Mac is that the filesystem is encrypted with FileVault. Not sure if this is making any impact because I'm sharing a folder with Docker... I don't think so.
No more ideas right now. I'll continue tomorrow. If I can't find it I will compile run docker container in Ubuntu.
Volume type? I'm on APFS Case Sensitive
Hi,
I have the docker image running and follow these steps:
But compile.sh fails
`root@ba068e8a531e:/yi-hack-src/yi-hack-MStar# ./scripts/compile.sh
YI-HACK - SRC COMPILER
MOD_DIR: /yi-hack-src/yi-hack-MStar/src/busybox MOD_NAME: busybox MOD_INIT: init.busybox MOD_COMPILE: compile.busybox MOD_INSTALL: install.busybox
Initializing busybox...
HEAD is now at b84194b13 Bump version to 1.29.3 Compiling busybox...
HOSTCC scripts/basic/split-include scripts/basic/split-include.c: In function ‘main’: scripts/basic/split-include.c:134:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] 134 | fgets(old_line, buffer_size, fp_target); | ^
~~~~~~~~~~ fixdep: /usr/include/i386-linux-gn: No such file or directory make[2]: [scripts/Makefile.host:104: scripts/basic/split-include] Error 2 make[1]: [/yi-hack-src/yi-hack-MStar/src/busybox/busybox/Makefile:357: scripts_basic] Error 2 make: *** [Makefile:522: include/autoconf.h] Error 2`Any ideas?
Thanks