中文 | English
- Project Name: CMake_Template_Project
- Version: v2.0
- State: Pre-Release
- Author: Tung Chia-hui
- Website: https://github.com/tungchiahui
- E-mail: [email protected]
- Organization: SDUT_EMIS_VinciRobot
- Date: 2023-03-20
- Future Features:
- Make_Log do not recorded.
- Add more things to the vinci_ emis script.
If there is an error when running and it says that some libraries are missing, please check if you have Eigen3 and OpenCV4.
- CMake generates compiled files such as Makefiles.
- MakeFiles generates bin, lib, and other files.
- Load the lib environment and run the binary program.
-
Build
使用以下命令编译出二进制文件:
# 请确认该脚本在build文件夹下运行 cd build # 进行CMake cmake .. # 进行MakeFiles make install
-
RUN
使用以下命令运行二进制文件:
# 请确认该脚本在build文件夹下运行 cd build # 加载lib环境 source ../install/.setup.bash # 运行二进制程序(demo1换成对应的二进制文件名) ../install/bin/demo1
- Use VScode's powerful task function to easily perform one click tasks such as CMake, MakeFiles, loading lib environment, and running binary programs.
- This method can be used for debugging.
-
Click Run
直接点击VScode的Run即可,注意,如果有报错,需要去log文件夹下查看对应的.log文件来寻找错误,或者打断点Debug。
- 详见script文件夹下的Markdown。