当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
29 Star 134 Fork 313

OpenHarmony / build_lite
暂停

 / 详情

Not able to build ipcamera_hi3516dv300

已完成
缺陷
创建于  
2020-09-11 18:31

Issue

I tried to build ipcamera_hi3516dv300 with
python3 build.py ipcamera_hi3516dv300
and im getting the following errors

Im using Ubuntu 18.04

Error logs

libavdevice/alsa_enc.c:40:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
         ^~~~~~~~~~~~~~~~~~
libavdevice/avfoundation.m:28:9: fatal error: 'AVFoundation/AVFoundation.h' file not found
#import <AVFoundation/AVFoundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libavdevice/alsa.c:31:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
         ^~~~~~~~~~~~~~~~~~
libavdevice/alsa_dec.c:48:10: fatal error: 'alsa/asoundlib.h' file not found
#include <alsa/asoundlib.h>
         ^~~~~~~~~~~~~~~~~~
libavdevice/caca.c:21:10: fatal error: 'caca.h' file not found
#include <caca.h>
         ^~~~~~~~
libavdevice/android_camera.c:29:10: fatal error: 'camera/NdkCameraDevice.h' file not found
#include <camera/NdkCameraDevice.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavdevice/avdevice.c:19:
In file included from ./libavutil/avassert.h:31:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from libavdevice/avdevice.c:19:
In file included from ./libavutil/avassert.h:31:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
In file included from libavdevice/dshow_common.c:22:
In file included from libavdevice/dshow_capture.h:27:
In file included from libavdevice/avdevice.h:48:
In file included from ./libavutil/log.h:25:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
In file included from libavdevice/decklink_enc_c.c:22:
In file included from ./libavformat/avformat.h:317:
In file included from ./libavcodec/avcodec.h:31:
In file included from ./libavutil/samplefmt.h:24:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
In file included from libavdevice/bktr.c:27:
In file included from ./libavformat/internal.h:27:
In file included from ./libavformat/avformat.h:317:
In file included from ./libavcodec/avcodec.h:31:
In file included from ./libavutil/samplefmt.h:24:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
1 error generated.
1 error generated.
In file included from libavdevice/decklink_dec_c.c:23:
In file included from ./libavformat/avformat.h:317:
In file included from ./libavcodec/avcodec.h:31:
In file included from ./libavutil/samplefmt.h:24:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
In file included from libavdevice/dshow.c:22:
In file included from libavdevice/dshow_capture.h:27:
In file included from libavdevice/avdevice.h:48:
In file included from ./libavutil/log.h:25:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
In file included from libavdevice/alldevices.c:23:
In file included from ./libavformat/internal.h:27:
In file included from ./libavformat/avformat.h:317:
In file included from ./libavcodec/avcodec.h:31:
In file included from ./libavutil/samplefmt.h:24:
In file included from ./libavutil/avutil.h:296:
In file included from ./libavutil/common.h:491:
In file included from ./libavutil/internal.h:42:
./libavutil/timer.h:37:11: fatal error: 'asm/unistd.h' file not found
# include <asm/unistd.h>
          ^~~~~~~~~~~~~~
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/avdevice.o' failed
make[1]: *** [libavdevice/avdevice.o] Error 1
make[1]: *** Waiting for unfinished jobs....
ffbuild/common.mak:60: recipe for target 'libavdevice/caca.o' failed
make[1]: *** [libavdevice/caca.o] Error 1
ffbuild/common.mak:60: recipe for target 'libavdevice/alsa_dec.o' failed
make[1]: *** [libavdevice/alsa_dec.o] Error 1
1 error generated.
1 error generated.
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/dshow_common.o' failed
make[1]: *** [libavdevice/dshow_common.o] Error 1
ffbuild/common.mak:60: recipe for target 'libavdevice/alsa_enc.o' failed
make[1]: *** [libavdevice/alsa_enc.o] Error 1
ffbuild/common.mak:66: recipe for target 'libavdevice/avfoundation.o' failed
make[1]: *** [libavdevice/avfoundation.o] Error 1
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/decklink_enc_c.o' failed
make[1]: *** [libavdevice/decklink_enc_c.o] Error 1
1 error generated.
1 error generated.
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/alldevices.o' failed
make[1]: *** [libavdevice/alldevices.o] Error 1
ffbuild/common.mak:60: recipe for target 'libavdevice/alsa.o' failed
make[1]: *** [libavdevice/alsa.o] Error 1
ffbuild/common.mak:60: recipe for target 'libavdevice/decklink_dec_c.o' failed
make[1]: *** [libavdevice/decklink_dec_c.o] Error 1
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/bktr.o' failed
make[1]: *** [libavdevice/bktr.o] Error 1
1 error generated.
1 error generated.
ffbuild/common.mak:60: recipe for target 'libavdevice/android_camera.o' failed
make[1]: *** [libavdevice/android_camera.o] Error 1
ffbuild/common.mak:60: recipe for target 'libavdevice/dshow.o' failed
make[1]: *** [libavdevice/dshow.o] Error 1
libavdevice/decklink_common.cpp:28:10: fatal error: 'DeckLinkAPI.h' file not found
#include <DeckLinkAPI.h>
         ^~~~~~~~~~~~~~~
1 error generated.
ffbuild/common.mak:63: recipe for target 'libavdevice/decklink_common.o' failed
make[1]: *** [libavdevice/decklink_common.o] Error 1
libavdevice/decklink_dec.cpp:33:10: fatal error: 'DeckLinkAPI.h' file not found
#include <DeckLinkAPI.h>
         ^~~~~~~~~~~~~~~
libavdevice/decklink_enc.cpp:31:10: fatal error: 'DeckLinkAPI.h' file not found
#include <DeckLinkAPI.h>
         ^~~~~~~~~~~~~~~
1 error generated.
ffbuild/common.mak:63: recipe for target 'libavdevice/decklink_dec.o' failed
make[1]: *** [libavdevice/decklink_dec.o] Error 1
1 error generated.
ffbuild/common.mak:63: recipe for target 'libavdevice/decklink_enc.o' failed
make[1]: *** [libavdevice/decklink_enc.o] Error 1
make[1]: Leaving directory '/home/siju/workspace/harmonyos/vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y'
Makefile:39: recipe for target 'ffmpeg-y' failed
make: *** [ffmpeg-y] Error 2
Traceback (most recent call last):
  File "../../build/lite/build_ext_components.py", line 64, in <module>
    sys.exit(main())
  File "../../build/lite/build_ext_components.py", line 58, in main
    cmd_exec(args.command)
  File "../../build/lite/build_ext_components.py", line 32, in cmd_exec
    raise Exception("{} failed, return code is {}".format(cmd, ret_code))
Exception: ['./build.sh', '/home/siju/workspace/harmonyos/out/ipcamera_hi3516dv300', 'hi3516dv300', 'liteos_a', 'clang', '/home/siju//llvm/bin/..'] failed, return code is 2
[1008/1165] ACTION //kernel/liteos_a:make(//build/lite/toolchain:linux_x86_64_clang)
sh param:hi3516dv300,clang,release

Need help

Do i need to install any packages to resolve this errors ?
Please guide me.

评论 (5)

Siju Samuel 创建了缺陷
Siju Samuel 关联仓库设置为OpenHarmony/build_lite
展开全部操作日志

Could you upload out/ipcamera_hi3516dv300/build.log ?

https://we.tl/t-VO4W8u4h9U

Im not able to upload the file in gitee issue.
You can download the logs from the above wetransfer link.
Thanks for your reply.

ipcamera_hi3518ev300 & ipcamera_hi3516dv300 gives me same error.

Let track the issue here

sudo dpkg-reconfigure dash

And select ** no**
It will change your sh to bash from dash

I will close this issue.

Xingwa 任务状态待办的 修改为已确认
Xingwa 任务状态已确认 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
8044018 siju samuel 1599843620
Python
1
https://gitee.com/openharmony/build_lite.git
git@gitee.com:openharmony/build_lite.git
openharmony
build_lite
build_lite

搜索帮助