Skip to content

Git failed to build with VS2017 due to error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory #1234

@KarenHuang2016

Description

@KarenHuang2016

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64-bit
    $ git --version --build-options
    git version 2.9.2.windows.1
    sizeof-long: 4
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows Server 2016 64-bit + VS2017.2
    $ cmd.exe /c ver
    Microsoft Windows [Version 10.0.14393]

Repro steps:

  1. git clone https://github.com/git-for-windows/git.git D:\git\src
  2. git checkout vs/master
  3. devenv /upgrade git.sln
  4. nuget.exe restore git.sln
  5. msbuild /m /p:Configuration=Release;Platform=x86 /p:WindowsTargetPlatformVersion=10.0.15063.0 /t:Rebuild git.sln

Error info:
d:\git\src\compat/mingw.h(179): fatal error C1083: Cannot open include file: 'openssl/ssl.h': No such file or directory (s:\dd\feature\winc\src\vctools\compiler\cxxfe\sl\p1\c\p0prepro.c:1654) [D:\Git\src\libgit\libgit.vcxproj]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions