linux 编译 dlib opencv
//check gcc version, gcc already installed
gcc -v
g++ -v
- install g++
sudo apt-get install g++
- install cmake and cmake-gui
sudo apt-get install cmake
sudo apt-get install cmake-gui
- compile opencv
if u not install g++ ,can not compile it !
cd build
make
- compile dlib
mkdir build; cd build;
#cmake .. -DUSE_AVX_INSTRUCTIONS=1;
cmake .. -DUSE_AVX_INSTRUCTIONS=1 -DUSE_AVX2_INSTRUCTIONS=1;
cmake --build .
Tips:
ubuntu screenshot [Alt]+[PrintScreen]