Home › Forum › SOFA › Building SOFA › visual studio cant work with more than 260 character-length variables
Tagged: SOFA_2012, VS2017, Windows_10
- This topic has 4 replies, 3 voices, and was last updated 3 years, 8 months ago by Froy.
-
AuthorPosts
-
27 March 2021 at 16:39 #19015kasraBlocked
Hello every one,
Iβm trying to build SOFA from source code, but the visual studio is throwing this error:
Parvin, [27.03.21 20:05] Severity Code Description Project Project Rank Path File Line Column Category Source Suppression State Tool Error MSB3491 Could not write lines to file "x64\Release\SofaGeneralObjectInteraction_SofaGeneralObjectInteraction_relocatable_install\SofaGene.E29F4CB7.tlog\SofaGeneralObjectInteraction_SofaGeneralObjectInteraction_relocatable_install.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. SofaGeneralObjectInteraction_SofaGeneralObjectInteraction_relocatable_install 16 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets 321 5 Build WriteLinesToFile
Here is a screenshot of the visual studio output.
also, Iβm using v20.12.00 because v20.12.01 was throwing a syntax error π
https://drive.google.com/file/d/1bActYfO_E-XHJIVoM4xsKk4qj-4Sx6om/view?usp=sharing
27 March 2021 at 16:41 #19016kasraBlockedthe first line of the error:
Parvin, [27.03.21 20:05]is extra π
29 March 2021 at 11:10 #19017Alex BilgerBlockedHi kasra,
check out this doc page: https://docs.microsoft.com/fr-fr/windows/win32/fileio/maximum-file-path-limitation
Does it solve your problem?
Meanwhile, can you describe the context of the issue? Does it happen when you try to install Sofa or compile it? Can you check that the runSofa.exe binary is created despite your errors?
Thank you
29 March 2021 at 22:13 #19018kasraBlockedThank you for your kind response,
I have checked that link(I have set that reg and rebooted), but it wasn’t helpful π
I’m trying to compile the source code using this
> I cant use precompiled binaries because I need to useSofaPython3
.Also, there was no
runSofa.exe
file.Thank you for your help. It’s about two weeks, walking on my nerves π
9 April 2021 at 11:19 #19100FroyKeymasterHello, I got the same error few months ago:
and I set up an issue for a short explanation: Issue1716
The registry thing did solve the issue on my setup. (Win10 20H2)
If it really does not help, a commit has been implemented starting from v20.12.01 to shorten paths.
Could you tell us what is your syntax error when you try to compile v20.12.01 ? -
AuthorPosts
- You must be logged in to reply to this topic.