CMAKE_OBJECT_PATH_MAX and path length issues

skanky
Posts: 20
Joined: Mon Nov 21, 2022 12:58 pm

CMAKE_OBJECT_PATH_MAX and path length issues

Postby skanky » Thu Jan 26, 2023 12:45 pm

I can't find any resource on path length limits for cmake with esp-idf and VSCode.

I should be able to use long paths with cmake on windows by setting registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled to 1, which I have and rebooted my machine.

However when I build I still get an error with explanation "The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX)."

I can find no CMAKE_OBJECT_PATH_MAX setting, if I add it to my CMakeLists.txt and set it to say 260 it is ignored and the same error persists.

How can ESP-IDF be made to work with long file paths on Windows?
Thanks
Adam

crnewton
Posts: 6
Joined: Mon Nov 07, 2022 9:58 am

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby crnewton » Wed Jul 05, 2023 6:36 am

unfortunately the same problem, no solution :(.

I hope this bumps this issue and someone can give us some insight.

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby ESP_igrr » Fri Jul 07, 2023 7:17 pm

Which IDF version and which CMake version are you folks using?

IIRC this was solved in CMake 3.23 and later by https://gitlab.kitware.com/cmake/cmake/ ... e4007c477a.

skanky
Posts: 20
Joined: Mon Nov 21, 2022 12:58 pm

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby skanky » Tue Jul 11, 2023 9:42 am

In November I was a brand new install, the most up-to-date versions of everything were downloaded and used.

3x67az
Posts: 1
Joined: Wed Jul 12, 2023 1:54 am

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby 3x67az » Wed Jul 12, 2023 1:56 am

skanky wrote:
Tue Jul 11, 2023 9:42 am
In November I was a brand new install, the most up-to-date versions of everything were downloaded and used.
Any solution you were able to find?

skanky
Posts: 20
Joined: Mon Nov 21, 2022 12:58 pm

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby skanky » Wed Jul 12, 2023 8:57 am

No, had nothing back from Espressif here so had to work around it and have done ever since

Anurag Paul
Posts: 10
Joined: Thu Jul 14, 2022 5:07 am

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Postby Anurag Paul » Tue Dec 05, 2023 6:12 am

Any Update Regarding the issue. I am also facing the same thing.

Who is online

Users browsing this forum: JVKran and 75 guests