OpenHisiIpCam / br-hisicam

Buildroot based sample firmware for HiSilicon`s System-On-a-Chip ip cameras
http://www.openhisiipcam.org
Other
137 stars 25 forks source link

Build failed in ubuntu:eoan #7

Closed nikitos1550 closed 4 years ago

nikitos1550 commented 4 years ago
LN include/sys/user.h
  LN include/bits/posix_opt.h
  LN include/bits/local_lim.h
  MKDIR libm/arm
  HOSTCC /extra/locale/gen_wc8bit
  GEN /extra/locale/codesets.txt
  GEN /extra/locale/c8tables.h
make[4]: *** [Makefile.in:164: ../..//extra/locale/c8tables.h] Error 1
make[3]: *** [Makefile.in:185: headers] Error 2
make[2]: *** [package/pkg-generic.mk:269: /br-hisicam/output/xm_ivg-hp201y-se_hi3516cv300_imx323/build/uclibc-1.0.32/.stamp_built] Error 2
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/br-hisicam/output/xm_ivg-hp201y-se_hi3516cv300_imx323'
make: *** [Makefile:39: xm_ivg-hp201y-se_hi3516cv300_imx323_defconfig] Error 2

P.S. Seems it is becasue BR2_TOOLCHAIN_BUILDROOT_LOCALE=y in defconfig, as unknown_unknown_xm530_unknown builds ok.

nikitos1550 commented 4 years ago

Seems the problem is becasue there is no locale on empty system.

RUN locale -a
RUN locale-gen en_US.UTF-8
RUN update-locale
RUN locale -a
ROM ubuntu:eoan

ENV FORCE_UNSAFE_CONFIGURE 1

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install \
    build-essential cmake gawk libncurses-dev libc6-dev intltool python \
    git subversion time unzip zlib1g-dev libssl-dev wget curl cpio bc \
    gettext gettext-base liblocale-gettext-perl upx \
    flex texinfo help2man libtool-bin byacc bison pkg-config libyaml-dev \
    rsync locales

RUN locale -a
RUN locale-gen en_US.UTF-8
RUN update-locale
RUN locale -a

RUN git clone --recursive https://github.com/OpenHisiIpCam/br-hisicam --depth 1

WORKDIR ./br-hisicam
RUN make install-ubuntu-deps
RUN make prepare
RUN make list-configs
RUN make xm_ivg-hp201y-se_hi3516cv300_imx323_defconfig
RUN ls /br-hisicam/output/xm_ivg-hp201y-se_hi3516cv300_imx323/images