Visual Studio Professional no longer works with ESP-IDF 4.4 because of cmake 3.20.3

RMandR
Posts: 75
Joined: Mon Oct 29, 2018 3:13 pm

Visual Studio Professional no longer works with ESP-IDF 4.4 because of cmake 3.20.3

Postby RMandR » Tue Mar 08, 2022 4:19 pm

Please Note: there never was support for Visual Studio Community or Professional. While there is IDF support for VSCode, which is NOT what this post is about.

In prior IDF versions you could get it working well using this helpful post: viewtopic.php?t=18924.

With IDF 4.4, this does not work anymore since it uses Cmake 3.20.3 and cmake has removed server support as of .20. This means Visual Studio is no longer able to parse the ccache (from what I've gathered).

Is it possible to run ESP-IDF 4.4 with older cmakes? or does that break something?

much thanks

-a

User avatar
ESP_Roland
Posts: 242
Joined: Tue Oct 09, 2018 10:28 am

Re: Visual Studio Professional no longer works with ESP-IDF 4.4 because of cmake 3.20.3

Postby ESP_Roland » Tue Mar 08, 2022 4:35 pm

Hi,

you could notice in all the examples the following line:

Code: Select all

cmake_minimum_required(VERSION 3.5)
It should work everything fine with any cmake version 3.5 or newer.

RMandR
Posts: 75
Joined: Mon Oct 29, 2018 3:13 pm

Re: Visual Studio Professional no longer works with ESP-IDF 4.4 because of cmake 3.20.3

Postby RMandR » Tue Mar 08, 2022 6:08 pm

Nice! Much thanks @ESP_Roland

So it looks like if modify tools.json and include the older cmake, it works fine. Not sure if there is a better way.

-a

Who is online

Users browsing this forum: Baidu [Spider] and 119 guests