Skip to content
Zong Wei edited this page Mar 18, 2021 · 46 revisions
  • Prerequisite

    • install build-essential, gcc/g++, automake, autoconf, libtool, gawk, pkg-config
    • Linux kernel > 3.10
    • install ocl-icd-dev, ocl-icd-opencl-dev, opencl-header(>=2.0)
    • If --enable-gst, need install libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev
    • If --enable-aiq, need get ia_imaging lib which we don't support
    • If --enable-libcl, need compile or install OpenCL driver
    • If --enable-opencv, suggest OpenCV versions [3.0.0 - 4.0.0) (or: OpenCV Wiki)
    • If --enable-render, need compile OpenSceneGraph library with configure option "-DOSG_WINDOWING_SYSTEM=X11"
    • If --enable-gles, need to install Mesa3D library
    • If --enable-vulkan, need to install Mesa3D library
    • If --enable-dnn, clone source code OpenVino, compile inference-engine library, set compile environment variables export OPENVINO_IE_INC_PATH="openvino_root/inference-engine" and export OPENVINO_IE_LIBS_PATH="openvino_root/bin/intel64/Release/lib"
    • If --enable-avx512, the processors shoud support AVX-512
  • $ ./autogen.sh [options]

      --prefix=PREFIX         install architecture-independent files in PREFIX
                              [default=/usr/local]
      --enable-debug          enable debug, [default=no]
      --enable-profiling      enable profiling, [default=no]
      --enable-drm            enable drm buffer, [default=no]
      --enable-aiq            enable Aiq 3A algorithm build, [default=no]
      --enable-gst            enable gstreamer plugin build, [default=no]
      --enable-libcl          enable libcl image processor, [default=yes]
      --enable-gles           enable gles, [default=no]
      --enable-vulkan         enable vulkan, [default=no]
      --enable-avx512         enable avx512, [default=no]
      --enable-opencv         enable opencv library, [default=no]
      --enable-capi           enable libxcam-capi library, [default=no]
      --enable-render         enable texture render with OpenSceneGraph library,
                              [default=no]
      --enable-dnn            enable dnn with OpenVino library, [default=no]
      --enable-docs           build Doxygen documentation [default=no]
      --enable-3alib          enable 3A lib build, [default=no]
      --enable-smartlib       enable smart analysis lib build, [default=no]
    

    Example:

      $ ./autogen.sh --prefix=/usr --enable-drm --enable-gst --enable-avx512 \
         --enable-libcl --enable-opencv --enable-gles --enable-vulkan \
         --enable-render --enable-dnn --enable-smartlib --enable-profiling
    
  • $ make

  • $ sudo make install