CONT.
download resource from github
克隆含有子模块的项目
当我们直接git clone的时候,会显示子模块的目录,但是文件目录是空的,
必须运行两个命令:
- git submodule init
用来初始化本地配置文件,
- git submodule update
则从该项目中抓取所有数据并检出父项目中列出的合适的提交
initialize the git environment
git init
git submodule init
git submodule update
更简单一点的方式。
如果给 git clone 命令传递 --recurse-submodules 选项,它就会自动初始化并更新仓库中的每一个子模块, 包括可能存在的嵌套子模块。
git clone --recurse-submodules
DBoost_DEBUG
set option as on
cmake -DBoost_DEBUG=ON .
A series of parameters or options
set them all on
cmake
-DWITH_TBB=ON
-DWITH_QT=ON
-DWITH_OPENGL=ON
-DWITH_CUDA=OFF
-DCMAKE_BUILD_TYPE=Release ..
nproc
nproc 多线程同时编译
(Multiple threads compile at the same time)
Through the command nproc to detect how many threads we have firstly
Then set the thread number (can set as an exact number)
nproc
make -j`nproc`
QT Path
Warning
Call Stack (Error)
QT 路径需要提供
Add the QT’s path in 0penCVFindLibsGUI.cmake
The red area is the path of QT.
可执行格式
chmod 777
chmod 777 PATH