Giter Club home page Giter Club logo

Comments (4)

lidanger avatar lidanger commented on July 22, 2024

CMakeError.log:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler:
Build flags: ;/nologo;/MD
Id flags:

The output was:
1
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 15.9.21+g9802d43bc3
版权所有(C) Microsoft Corporation。保留所有权利。

生成启动时间为 2019-03-03 12:00:42。
节点 1 上的项目“E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj”(默认目标)。
PrepareForBuild:
正在创建目录“Debug\”。
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: 已启用 Spectre 缓解,但找不到 Spectre 缓解库。验证 Visual Studio 工作负荷包括 Spectre 缓解库。有关详细信息,请参阅 https://aka.ms/Ofhn4c。 [E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj]
正在创建目录“Debug\CompilerIdC.tlog\”。
InitializeBuildStatus:
正在创建“Debug\CompilerIdC.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Qspectre /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\" /Fd"Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue CMakeCCompilerId.c
CMakeCCompilerId.c
Link:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X64 Debug\CMakeCCompilerId.obj
LINK : fatal error LNK1104: 无法打开文件“MSVCRTD.lib” [E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj]
已完成生成项目“E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj”(默认目标)的操作 - 失败。

生成失败。

“E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj”(默认目标) (1) ->
(PrepareForBuild 目标) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(402,5): warning MSB8038: 已启用 Spectre 缓解,但找不到 Spectre 缓解库。验证 Visual Studio 工作负荷包括 Spectre 缓解库。有关详细信息,请参阅 https://aka.ms/Ofhn4c。 [E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj]

“E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj”(默认目标) (1) ->
(Link 目标) ->
LINK : fatal error LNK1104: 无法打开文件“MSVCRTD.lib” [E:\Test\mdbook-epub-0.1.0\target\release\build\libssh2-sys-1872c162ac6e8a5f\out\build\CMakeFiles\3.13.4\CompilerIdC\CompilerIdC.vcxproj]

1 个警告
1 个错误

已用时间 00:00:01.36

from mdbook-epub.

lidanger avatar lidanger commented on July 22, 2024

environment:
rustc 1.33.0 (2aa4c46cf 2019-02-28)
Windows 10 Professional 17763
Visual Studio 2017 Community 15.9.7
CMake 3.13.4

from mdbook-epub.

Michael-F-Bryan avatar Michael-F-Bryan commented on July 22, 2024

This looks like a problem with the libssh2-sys crate and not directly related to mdbook-epub, so you'd be better off creating an issue against their repo.

from mdbook-epub.

lidanger avatar lidanger commented on July 22, 2024

I solved it just now, refer to this

from mdbook-epub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.