Groot编译
1. 相关链接
2. 问题
2.1 CMake错误
CMake Error at CMakeLists.txt:87 (add_subdirectory):
The source directory
Z:/Projects/SPrjs/w_Groot/depend/BehaviorTree.CPP
does not contain a CMakeLists.txt file.
备注:
需要保证\w_Groot\depend\BehaviorTree.CPP是有内容的,在对Groot工程进行fork再clone之后是没有这个工程的。
可以将BehaviorTree.CPP的代码下载好,然后放在这个目录下。
2.2 编译错误
Severity Code Description Project File Line Suppression State
Error LNK1181 cannot open input file 'Release\behavior_tree_editor.lib' Groot Z:\Projects\SPrjs\w_Groot\build\LINK 1
对于工程behavior_tree_editor
需要产生一个静态lib库,直接生成dll是有问题的。
在这个工程里面的内容没有export相关的内容,并且其他工程需要的是lib库,可以推测此处需要静态lib库。
调整:在VS2019的配置中
- 将Configuration Type调整为Static library(.lib)
- 将Traget File Extension调整为.lib