If you used any other Linux distributions without apt-get package manager, you need to install required packages manaully instead of using ``make init``.
To build and install Opencv, Please refer to `Installation in Linux <https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html>`_ . Alternatively, refer to the command below:
If opencv is installed in custom directory or if you want to specify a version, you should set the path before building:
..code-block:: bash
# OpenCV_DIR is the directory where your OpenCVConfig.cmake exists
export OpenCV_DIR=~/opencv
Otherwise, CMake will prompt cannot find OpenCV. If you need sdk without OpenCV, please read :ref:`sdk_without_opencv` .
Build and install:
..code-block:: bash
cd <sdk>
make install
Finally, sdk will install in ``/usr/local`` by default.
Building samples
----------------
..code-block:: bash
cd <sdk>
make samples
Run samples:
..code-block:: bash
./samples/_output/bin/api/camera_a
Tutorial samples, please read :ref:`data` and :ref:`ctrl` .
Building tools
---------------
..code-block:: bash
cd <sdk>
make tools
Installation requirement:
..code-block:: bash
cd <sdk>/tools/
sudo pip install -r requirements.txt
The usage of tools and scripts will be introduced later.
Conclusion
-----------
If your project will use SDK, you can refer to the settings in ``samples/CMakeLists.txt`` for CMake. Alternatively, import the head file and dynamic library in the installation directory.