server: [client c++] Could not find a package configuration file provided by "RapidJSON"

Description

  Could not find a package configuration file provided by "RapidJSON" with
  any of the following names:

    RapidJSONConfig.cmake
    rapidjson-config.cmake

  Add the installation prefix of "RapidJSON" to CMAKE_PREFIX_PATH or set
  "RapidJSON_DIR" to a directory containing one of the above files.  If
  "RapidJSON" provides a separate development package or SDK, be sure it has
  been installed.

Triton Information trying to build client branch r22.01 (only c++ api is needed, thus excluding python and java from the suggested args)

To Reproduce Platform: CentOS 7.9.2009, cmake 3.21.1, GNU Make 3.82, icc (ICC) 2021.5.0 20211109

git clone -b r22.01 https://github.com/triton-inference-server/client

mkdir -p client/build && cd client/build

cmake -DCMAKE_INSTALL_PREFIX=`pwd`/install -DTRITON_ENABLE_CC_HTTP=ON -DTRITON_ENABLE_CC_GRPC=ON -DTRITON_ENABLE_PERF_ANALYZER=ON -DTRITON_ENABLE_GPU=ON -DTRITON_ENABLE_EXAMPLES=ON -DTRITON_ENABLE_TESTS=ON -DTRITON_COMMON_REPO_TAG=r22.01 -DTRITON_THIRD_PARTY_REPO_TAG=r22.01 -DTRITON_CORE_REPO_TAG=r22.01 -DTRITON_BACKEND_REPO_TAG=r22.01 ..

make cc-clients

Expected behavior build succeeds

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Closing issue due to lack of activity. Please re-open the issue if you would like to follow up with this issue

sudo apt install rapidjson-dev

Works for me (ubuntu 22.04)

Same issue, but with building the server from source for a CPU-only container-less build. It’s rather strange that tritonserver fetches and compiles a dozen of 3rd party libraries, but doesn’t do the same for rapidjson

Does that have cmake in it? I tried sagemaker-tritonserver:23.<XY>-py3-sdk and it didn’t. But I’m using Ubuntu 22.04 so once I managed to follow the instructions properly it worked fine without docker

Yes, tritonserver_buildbase is built along with the tritonserver image.

❯ docker run -it -v $PWD:/ws tritonserver_buildbase bash
root@7572e3b554f9:/workspace# cmake --version
cmake version 3.27.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).