×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

CNStream执行cmake构建时出错 已解决 wmatrix2021-06-22 21:00:14 回复 5 查看 使用求助
CNStream执行cmake构建时出错
分享到:

按照手册文档clone CNStream仓库后,成功执行

pre_required_helper.sh

进行了依赖安装,但是执行cmake编译时提示错误,输出如下:


lzh@ssk-ThinkStation-P520:~/CNStream/build$ cmake ..

-- The C compiler identification is GNU 7.5.0

-- The CXX compiler identification is GNU 7.5.0

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Performing Test COMPILER_SUPPORTS_CXX11

-- Performing Test COMPILER_SUPPORTS_CXX11 - Success

generate default(MLU270) Makefile

-- Found GFlags: /usr/include

-- Found gflags  (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)

-- Found Glog: /usr/include

-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)

-- HAVE_OPENCV enabled

-- opencv libraries: opencv_imgcodecs;opencv_videoio;opencv_core;opencv_imgproc;opencv_highgui;opencv_features2d

-- HAVE_FFMPEG enabled

-- ffmpeg include: /usr/include/x86_64-linux-gnu

-- ffmpeg libraries: /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so;/usr/lib/x86_64-linux-gnu/libswresample.so

-- SDL2 Found

-- Found PythonInterp: /usr/bin/python (found version "2.7.17")

-- Looking for pthread.h

-- Looking for pthread.h - found

-- Looking for pthread_create

-- Looking for pthread_create - not found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Found Threads: TRUE

-- CMAKE_INSTALL_PREFIX = /home/lzh/CNStream/easydk/dist

-- !!!!! BUILD RELEASE !!!!!

-- generate default (MLU200 CLOUD) Makefile

------------------- Turbo-JPEG and libyuv -----------------------

-- CMAKE_BUILD_TYPE = RELEASE

-- VERSION = 2.0.6, BUILD = 20210622

-- 64-bit build (x86_64)

-- Shared libraries disabled (ENABLE_SHARED = 0)

-- Static libraries enabled (ENABLE_STATIC = 1)

-- 12-bit JPEG support disabled (WITH_12BIT = 0)

-- Arithmetic decoding support disabled (WITH_ARITH_DEC = 0)

-- Arithmetic encoding support disabled (WITH_ARITH_ENC = 0)

-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)

-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)

-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)

-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)

-- libjpeg API shared library version = 62.3.0

-- Compiler flags =  -D_REENTRANT -fPIC -fvisibility=hidden -O3 -DNDEBUG

--  er flags =

-- Looking for sys/types.h

-- Looking for sys/types.h - found

-- Looking for stdint.h

-- Looking for stdint.h - found

-- Looking for stddef.h

-- Looking for stddef.h - found

-- Check size of size_t

-- Check size of size_t - done

-- Check size of unsigned long

-- Check size of unsigned long - done

-- Performing Test HAVE_BUILTIN_CTZL

-- Performing Test HAVE_BUILTIN_CTZL - Success

-- Looking for include file locale.h

-- Looking for include file locale.h - found

-- Looking for include file stdlib.h

-- Looking for include file stdlib.h - found

-- Looking for include file sys/types.h

-- Looking for include file sys/types.h - found

-- Looking for memset

-- Looking for memset - found

-- Looking for memcpy

-- Looking for memcpy - found

-- Check size of unsigned char

-- Check size of unsigned char - done

-- Check size of unsigned short

-- Check size of unsigned short - done

-- Performing Test INCOMPLETE_TYPES

-- Performing Test INCOMPLETE_TYPES - Success

-- Compiler supports pointers to undefined structures.

-- Performing Test RIGHT_SHIFT_IS_UNSIGNED

-- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed

-- Performing Test __CHAR_UNSIGNED__

-- Performing Test __CHAR_UNSIGNED__ - Failed

-- Performing Test INLINE_WORKS

-- Performing Test INLINE_WORKS - Success

-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)

-- Performing Test HAVE_THREAD_LOCAL

-- Performing Test HAVE_THREAD_LOCAL - Success

-- THREAD_LOCAL = __thread

-- Performing Test HAVE_VERSION_

-- Performing Test HAVE_VERSION_  - Success

--  er supports GNU-style version  s

-- CMAKE_EXECUTABLE_SUFFIX =

-- Looking for a ASM_NASM compiler

-- Looking for a ASM_NASM compiler - NOTFOUND

CMake Warning at easydk/3rdparty/libjpeg-turbo/simd/CMakeLists.txt:5 (message):

  SIMD extensions disabled: could not find NASM compiler.  Performance will

  suffer.

Call Stack (most recent call first):

  easydk/3rdparty/libjpeg-turbo/simd/CMakeLists.txt:45 (simd_fail)



-- FLOATTEST = 32bit

------------------- Turbo-JPEG and libyuv END -----------------------

-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR)

-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR)

-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR)

-- Found Backward: /home/lzh/CNStream/easydk/3rdparty/backward

-- Build with EasyInfer

-- Build with EasyCodec

-- Build with EasyTrack

-- Build with EasyBang

-- @@@@@@@@@@@ Target : easydk

-- Found glog    (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)

-- @@@@@@@@@@@ Target : cnis

-- Could NOT find LibRDKafka (missing: LibRDKafka_C_LIBRARIES LibRDKafka_INCLUDE_DIR)

CMake Error at modules_contrib/CMakeLists.txt:9 (message):

  rdkafka not found



-- Configuring incomplete, errors occurred!

See also "/home/lzh/CNStream/build/CMakeFiles/CMakeOutput.log".

See also "/home/lzh/CNStream/build/CMakeFiles/CMakeError.log".

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭