Page 1 of 1

CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Thu Jan 26, 2023 12:45 pm
by skanky
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

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Wed Jul 05, 2023 6:36 am
by crnewton
unfortunately the same problem, no solution :(.

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

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Fri Jul 07, 2023 7:17 pm
by ESP_igrr
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.

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Tue Jul 11, 2023 9:42 am
by skanky
In November I was a brand new install, the most up-to-date versions of everything were downloaded and used.

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Wed Jul 12, 2023 1:56 am
by 3x67az
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?

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Wed Jul 12, 2023 8:57 am
by skanky
No, had nothing back from Espressif here so had to work around it and have done ever since

Re: CMAKE_OBJECT_PATH_MAX and path length issues

Posted: Tue Dec 05, 2023 6:12 am
by Anurag Paul
Any Update Regarding the issue. I am also facing the same thing.