OS: Ubuntu 18.04
Build fails if valgrind
is installed on host system
hb set
, choose product: ipcamera_hispark_taurus@hisiliconhb build
Build fails with errors valgrind.h
header file is not found
hb build
succeeds regardless of whether valgrind is installed in the system.
[OHOS ERROR] CC libavutil/imgutils.o
[OHOS ERROR] CC libavutil/integer.o
[OHOS ERROR] CC libavutil/intmath.o
[OHOS ERROR] CC libavutil/lfg.o
[OHOS ERROR] CC libavutil/lls.o
[OHOS ERROR] CC libavutil/log.o
[OHOS ERROR] CC libavutil/log2_tab.o
[OHOS ERROR] CC libavutil/mastering_display_metadata.o
[OHOS ERROR] libavutil/log.c:49:10: fatal error: 'valgrind/valgrind.h' file not found
[OHOS ERROR] #include <valgrind/valgrind.h>
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] CC libavutil/mathematics.o
[OHOS ERROR] 1 error generated.
[OHOS ERROR] CC libavutil/md5.o
[OHOS ERROR] ffbuild/common.mak:59: recipe for target 'libavutil/log.o' failed
[OHOS ERROR] make[1]: *** [libavutil/log.o] Error 1
[OHOS ERROR] make[1]: *** Waiting for unfinished jobs....
[OHOS ERROR] 1 warning generated.
[OHOS ERROR] 4 warnings generated.
[OHOS ERROR] make[1]: Leaving directory '/home/gex/Documents/DevEco/Projects/L110_3516/device/hisilicon/third_party/ffmpeg/ffmpeg-y'
[OHOS ERROR] Makefile:54: recipe for target 'ffmpeg-y' failed
[OHOS ERROR] make: *** [ffmpeg-y] Error 2
[OHOS ERROR] you can check build log in /home/gex/Documents/DevEco/Projects/L110_3516/out/hispark_taurus/ipcamera_hispark_taurus/build.log
[OHOS ERROR] /home/gex/.hpm/global/ohos_bundles/@ohos/ninja/ninja/ninja -w dupbuild=warn -C /home/gex/Documents/DevEco/Projects/L110_3516/out/hispark_taurus/ipcamera_hispark_taurus failed, return code is 1
sudo apt remove valgrind
solves the problem