Skip to content

I am unable to build without errors in Windows 11 using VS2022 #5

Answered by egorodet
RallyTronics asked this question in Q&A
Discussion options

You must be logged in to vote

As I see in Build.log, CMake configure fails with error “download path exceeds the OS max path limit. The fully qualified file name must be less than 260 characters”. So I suggest you trying to switch off Windows path limit, it can be done with the following command run from Administrator PowerShell:

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@RallyTronics
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by egorodet
Comment options

You must be logged in to vote
1 reply
@egorodet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants