Libpng build issues on vc140
Mamta Upadhyay via png-mng-implement <png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Mon, 12 Mar 2018 20:33:49 +0000 (UTC)
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am using the vcxproj files included in the projects/vstudio folder and upgraded them to VS 2015 (vc140) using visual studio. I am trying to build libpng inside a python script and running msbuild within a python subprocess. But when building libpng.vcxproj, it throws 'path is not of a legal form' error (see below). I contacted MSDN team and they suggested that it is probably running an older version of msbuild looking at the error below which shows this path 'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets'. When I run msbuild it is using the correct newer version of msbuild. So not sure why and how the libpng project file get this older version of msbuild. Any suggestions would be greatly appreciated. I am stumbled at this issue for a long time now. Thanks! (Link to msdn bug: msbuild error path is not of a legal form) | | | | msbuild error path is not of a legal form | | | 09:17:00.233 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: The "CL" task failed unexpectedly. [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Utilities.FileTracker' threw an exception. ---> System.ArgumentException: The path is not of a legal form. [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at System.IO.Path.GetPathRoot(String path) [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.Utilities.FileTracker..cctor() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: --- End of inner exception stack trace --- [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.CPPTasks.CL.ComputeOutOfDateSources() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.Utilities.ToolTask.Execute() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(253,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() [C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj] 09:17:00.234 MSBuild INFO Done Building Project "C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj" (default targets) -- FAILED. 09:17:00.235 MSBuild INFO Done Building Project "C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\libpng\libpng.vcxproj.metaproj" (default targets) -- FAILED. 09:17:00.268 MSBuild INFO Done Building Project "C:\libpng\build\obj\win64_vc140\libpng\build\projects\visualc140\vstudio.sln" (default targets) -- FAILED. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ png-mng-implement mailing list png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/png-mng-implement