AirSim compilation fails: C1900 "P1" "P2" does not match

I played AirSim on my laptop for a while in August last year. I just had free time today, so I wanted to take it out and play for a while, but found that the compilation failed. Even the official Block routine cannot be compiled, and the following error is always reported:

 C1900 Il mismatch between "P1" (version "20220715") and "P2" (version "20210202")   

 Tell me about my configuration. When I used it in August last year, AirSim only supported VS2019 at that time. Now it supports VS2022. I updated VS2022 first. Of course, the SDK and other libraries must be installed according to the requirements of the AirSim official website. As follows:

 Don’t be mistaken about the version of this SDK, I estimate it has some influence.

Then, you can create a new UE4.27 project, click Edit->Preferences->Source Code->Manually select vs2022 [very important!

Then, you can copy the AirSim Plugins to the directory of this project (my project is called ggg)

 Then, compile it manually through ggg.uproject or open ggg.sln, and it will pass.

 In this way, this ggg project is a project with AirSim plug-in.

But this method doesn't seem to be able to change the official Block routine back (at least I haven't succeeded yet), but it doesn't matter anymore, we are not using Block, right.

After thinking about it for 3 to 4 hours, I finally got it, WTF!

Guess you like

Origin blog.csdn.net/huangzhuofei/article/details/128515162