I tried to build ipcamera_hi3516dv300 with
python3 build.py ipcamera_hi3516dv300
and im getting the following errors
Im using Ubuntu 18.04
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>
^~~~~~~~~~~~~~
Do i need to install any packages to resolve this errors
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
@东方星痕 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.
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
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.
Yes. This issue can be closed. Thanks to all.
登录 后才可以发表评论