1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openharmony-build_lite

 / Детали:

Not able to build ipcamera_hi3516dv300

Завершенные
Владелец
Создано  
26.11.2024

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.

Комментарий (0)

GitLife Service Account Задача создана
GitLife Service Account устанавливает Связанный проект на Не задано
GitLife Service Account изменить Статус задачи с Предстоит сделать на Завершенные
Развернуть журнал операций

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/openharmony-build_lite.git
git@api.gitlife.ru:oschina-mirror/openharmony-build_lite.git
oschina-mirror
openharmony-build_lite
openharmony-build_lite