DiscussionsIssue archiveInstallation and Building

Archived discussion

Building on Linux with rapidjson

Installation and BuildingFri, 04/03/2020 - 00:232 replies

Browse this forum
QuestionAuthor

How do I get the build to include rapidjson?

I've managed to successfully build occt within a Ubuntu Docker container, but it doesn't include rapidjson.

rapidjson is installed via

apt-get install rapidjson-dev

and the files are available in /usr/include/rapidjson

I've tried setting the USE_RAPIDJSON environment variable

export USE_RAPIDJSON=ON

but when I look in CMakeCache.txt it has 

USE_RAPIDJSON:BOOL=OFF

I've also tried running cmake as below but with the same results

USE_RAPIDJSON=ON cmake /app/occt

How do I enable rapidjson for the build?

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Check CMake documentation for passing configuration arguments - they are not environment variables like in your samples.

cmake -G "Unix Makefiles" -D USE_RAPIDJSON:BOOL="ON" /home/occt.git
02Author

Thanks!