1.1K Star 6.1K Fork 4.9K

OpenHarmony / docs

 / 详情

Not able to build ipcamera_hi3516dv300

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

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>
          ^~~~~~~~~~~~~~

Need help

Do i need to install any packages to resolve this errors

评论 (13)

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

@东方星痕 Your docker script is very helpful.
Im able to compile successfully for all the 3 hardware in docker.
I installed all the packages present in the docker in my enviroment, but still im getting the error.
Thanks a lot for your quick help.

Would you please provide your ffmpeg configuration file?
vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/config.h

run the in your code root dir:

docker run --rm -ti -v ${PWD}:/OpenHarmony ystyle/open-harmony

To check if your code directory is complete

ps:
get code all code with method 4, and sync code with repo-py3(method1)

Would you please provide your ffmpeg configuration file?
vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/config.h

@helsing.chen
Im not able to upload in this issue, please download from the below wetransfer.com site.

https://we.tl/t-oaamGtOTG2

run the in your code root dir:

docker run --rm -ti -v ${PWD}:/OpenHarmony ystyle/open-harmony

To check if your code directory is complete
ps:
get code all code with method 4, and sync code with repo-py3(method1)

@东方星痕 Yes, it can run successfully. I think my ubuntu env, some packages may be missing.
Thanks a lot for your help.

@Siju Samuel
hi, did you resolve this error?

@NEEN using docker build is perfectly working.

In my environment, I'm missing some packages due to which im getting the below errors. Im not able to find the missing packages in my env.
https://we.tl/t-VO4W8u4h9U

Try to execute below commands:

rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh

retry it.

build.sh: 73: [: debug: unexpected operator make: Entering directory '/home/siju/workspace/harmonyos/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant' make -C ../src clean

the script of wpa_supplicant requires run with bash but dash

sudo dpkg-reconfigure dash

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

duplicate issue

Try to execute below commands:

rm -rf /bin/sh
sudo ln -s /bin/bash /bin/sh

retry it.

@帅煜韬
Wow. Thanks a lot. It worked. Super helpful

@Siju Samuel
so we can close this issue, right?
would you please write the FAQ about how to solve this problem?
thanks.

NEEN 添加了product-question(已删除)标签
NEEN 添加了doc-enhancement(已删除)标签
NEEN 任务状态待办的 修改为修复中

Yes. This issue can be closed. Thanks to all.

Siju Samuel 任务状态修复中 修改为已完成
NEEN 移除了doc-enhancement(已删除)标签
NEEN 移除了product-question(已删除)标签

登录 后才可以发表评论

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

搜索帮助