Skip to content

Commit

Permalink
Also install iDynTree from vcpkg (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene authored May 11, 2023
2 parents eaf26ce + 6059b77 commit 73a0ca4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ Generate URDF model from CREO mechanisms.
Right now `creo2urdf` plugin needs that the dependencies are compiled and linked **statically**:
- Download [vcpkg](https://github.com/microsoft/vcpkg): `git clone https://github.com/microsoft/vcpkg`
- Bootstrap vcpkg: `.\vcpkg\bootstrap-vcpkg.bat`
- Run `[path to vcpkg]/vcpkg install --triplet x64-windows-static-md eigen3 libxml2 assimp`
- Compile idyntree from source following the instructions in https://github.com/robotology/idyntree/blob/master/doc/build-from-source.md, remembering to pass `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md` and `-DBUILD_SHARED_LIBS:BOOL=OFF` to ensure that iDynTree is compiled as static.
- Install iDynTree
- Run `[path to vcpkg]/vcpkg install --triplet x64-windows-static-md eigen3 libxml2 assimp idyntree[core,assimp]`

### Build `creo2urdf`

- Pass `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md` to the creo2urdf compilation, remembering also to pass the iDynTree's installaton location via `CMAKE_PREFIX_PATH`.
- Pass `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static-md` to the creo2urdf compilation.

For who uses CMake integrate in Visual Studio `-DCMAKE_TOOLCHAIN_FILE` option has not to be passed to `CMake command arguments` but in the `vcpkg.cmake` file path has to be set in `CMake toolchain file`

Expand Down

0 comments on commit 73a0ca4

Please sign in to comment.