b2 icon indicating copy to clipboard operation
b2 copied to clipboard

Manifest-related problems with b2 building in msvc-14.0

Open joaquintides opened this issue 1 year ago • 2 comments

Starting with B2 5.0.0, building b2 with msvc-14.0 (toolset vc14) fails with:

LINK : fatal error LNK1158: cannot run 'mt.exe'

Full log here. Seemingly this is related to manifest embedding, as defining B2_DONT_EMBED_MANIFEST when building b2 solves the problem. Ideally, this shouldn't be necessary as it wasn't pre 5.0.0.

Thank you!

joaquintides avatar Jan 12 '24 18:01 joaquintides

I'm starting to suspect this is a consequence of a badly configured msvc install. As it works with the same toolset in Appveyor.. https://ci.appveyor.com/project/bfgroup/b2/build/job/f5fqmt4vvg6i7kiv -- And since it's msvc itself that is invoking mt.exe, and not finding it, increases my suspicion to that conclusion. I.e. msvc itself thinks mt.exe should be there.

grafikrobot avatar Jan 25 '24 14:01 grafikrobot

LINK : fatal error LNK1158: cannot run 'mt.exe'

That error usually means Windows SDK is missing.

Kojoley avatar Feb 07 '24 18:02 Kojoley