Repository navigation
Closed
Labels
Milestone
Description
Despite attempting to upgrade the freetype sln file with /upgrade, when building using the 2017 msbuild as part of setup.py I get the following failure:
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 2020-01-16 14:46:40.
Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.sln" on node 1 (Clean;Build target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Release|x64".
Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.sln" (1) is building "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj" (2) on node 1 (Clean target(s)).
CoreClean:
Creating directory ".\..\..\..\objs\vc2010\x64\Release\".
Done Building Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj" (Clean target(s)).
Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.sln" (1) is building "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj" (2:2) on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(55,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj]
Done Building Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.sln" (Clean;Build target(s)) -- FAILED.
Build FAILED.
"C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.sln" (Clean;Build target) (1) ->
"C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj" (default target) (2:2) ->
(PlatformPrepareForBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(55,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\wiese\Repos\numeric-python\matplotlib\build\freetype-2.6.1\builds\windows\vc2010\freetype.vcxproj]
Activity
eric-wieser commentedon Jan 16, 2020
Making the following change appears to fix the issue for me on 3.8:
but I'm not sure how ideal hard-coding
v140is. It's better than falling back onv100at least...anntzer commentedon Jan 16, 2020
We may be able to reuse https://github.com/python/cpython/blob/9baf242fc733ab8a52a0b6201d95c6fdb8251745/PCbuild/python.props#L7-L21? (by patching the relevant file in the freetype build script)
Kojoley commentedon Feb 11, 2020
@eric-wieser could you please check if #16401 fixes the issue?
eric-wieser commentedon Feb 11, 2020
Yes, that seemed to do the trick