References: https: //blog.csdn.net/Ding_0110M/article/details/88083741
Cmake configuration in which the compiler:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
Compile problems:
Makefile:160: recipe for target 'all' failed
The reason: because before the system already exists in anaconda, then the system default compiler is modified, so clashes
Solution: Reference: https: //blog.csdn.net/ZT0518/article/details/83445308
Compile about to read:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_SHARED_LIBS=OFF -D WITH_OPENMP=ON -D ENABLE_PRECOMPILED_HEADERS=OFF ..
Then execute:
make -j4 # 4 of cpu core number, according to their modify, and delete this comment.
And finally compiled:
sudo make install