Deploy RecastNavigation with vs2017

 Reference steps:

Vs2017 compiles RecastNavigation [grid navigation tool] - Programmer Sought

When I followed the steps, I still encountered many problems.

Problem 1. Unable to reference "math.h" or "stdio.h"

If the header file that comes with C++ like this cannot be referenced, it is generally because the sdk version of windows is wrong. I changed it to 10.0.17134.0 here.

 Question 2. Unable to reference DebugDraw.h

For example, the .h created by yourself in the pulled-down project cannot be referenced. Generally, the project properties have not been imported into the configuration properties--c/c++--general--additional include directory . Add the directory address where the .h file is located to it

 Problem 3: Cannot open file 'SDL2.lib'

In this case, the generated .lib file is not imported into the property page Configuration Properties - Linker - General and Input

 Basic vs Information Interpretation

The 7 in the circle, each has its own property page configuration. When changing the windows SDK, you must change each of them. In fact, it doesn’t matter. When reporting an error, it will point out which project is wrong. Just change it.

Problem 4. Unable to generate a solution

After the above problems are solved, recastnavigation will report this error, right-click to open the properties, and change the startup project to RecastDemo, as shown below

 Question 5. debugutils.lib is not an exe startup program,

The problem is the same as above, the startup project is wrongly selected as DebugUtils.

After the solution is successfully generated in the last step, click on the picture below to generate a visualized exe program.

 Related git links:

https://github.com/recastnavigation/recastnavigation

Deployed project in RecastNavigation environment.zip: Deployed project resource of recastnavigation on github

Guess you like

Origin blog.csdn.net/qq_41286356/article/details/128935426