Skip to content

json-rpc-cpp: fatal error C1083: Cannot open include file: 'json/json.h': No such file or directory #662

Open
@Zhaojun-Liu

Description

@Zhaojun-Liu
  • I've read Brief overview section and do understand basic concepts. [Yes]
  • I've read F.A.Q. section and there is no solution to my problem there. [Yes]
  • I've read Code of Conduct, I promise to be polite and will do my best at being constructive. [Yes]
  • I've read Reporting bugs section carefully. [Yes]
  • I've checked that all the hunter_add_package/find_package API used by me in the example is the same as in documentation. [Yes]
  • I'm using latest Hunter URL/SHA1. [Yes]

Hi all,
I tried to build Aleth with VS2022 on Windows, but it failed at the cmake step. Could anyone helps look at this issue? Thanks in advance.

Environment:
VS2022 + Windows Server

Repro steps:

  1. Open a VS 2022 x64 Native Tools command.
  2. git clone https://github.com/ethereum/aleth F:\gitP\ethereum\aleth
  3. cd F:\gitP\ethereum\aleth
  4. git submodule update --init --recursive
  5. mkdir build_amd64 & cd build_amd64
  6. set HUNTER_ROOT=F:\gitP\ethereum\hunter_tools_New
  7. cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DCMAKE_BUILD_TYPE=Release ..

CmakeLists.txt
CMakeLists.txt

Result:
F:\gitP\ethereum\hunter_tools_New_Base\8010d63\7ad3772\0db49b4\Build\libjson-rpc-cpp\Build\libjson-rpc-cpp-Release-prefix\src\libjson-rpc-cpp-Release-build\gen\jsonrpccpp\common\jsonparser.h(13,10): fatal error C1083: Cannot open include file: 'json/json.h': No such file or directory (C:\repos\msvc\src\vctools\Compiler\CxxFE\sl\p1\c\p0prepro.c:1955)

detailed logs:
camke.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions