Commit f3bdd347 authored by Jerome Royan's avatar Jerome Royan
Browse files

Add documentation to install conan V2 in the README

parent a47cf357
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -39,8 +39,21 @@ To install the last version of Cmake, we recommend to follow the instruction det

## Install conan v2

    npm install
    npm run installConan
Check if conan is already installed on your machine, and if the version 2 is installed:

    conan version

If conan version 1 is installed, you will have to remove it before installing version 2.

To install conan version 2, simply run:
    
    pip install conan

To setup your conan profile, run:

    conan profile detect

Conan is installed on your machine, you are ready to generate the cpp code for RestBed server.

## Code Generation

+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@
  "main": "index.js",
  "scripts": {
    "generate": "cd EtsiServerGen && java -jar /usr/local/lib/node_modules/@openapitools/openapi-generator-cli/versions/6.6.0.jar generate -i ../arf005/API/worldstorage/worldstorageopenapi.yaml --skip-validate-spec  -g cpp-restbed-server -o . && cd patches  && ./applyPatches.sh",
    "installConan": "pip install conan",
    "build": "cd EtsiServerGen && conan install . --build=missing -of build && cd build && cmake .. --preset conan-release && cmake --build . && sudo make install"

  },