Skip to content

SofaCaribou compilation on Windows #50

Answered by jnbrunet
ruiliang-gao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rgao15 ,

You don't need to set the Caribou_DIR cmake variable. Can you try the following:

  1. Create a directory somewhere on your PC named sofa_plugins. Clone the source code of Caribou inside of it. For example:
$ mkdir "C:/Users/Ruiliang/Documents/sofa_plugins"
$ git clone https://github.com/jnbrunet/caribou.git "C:/Users/Ruiliang/Documents/sofa_plugins/caribou"
  1. Create a C:/Users/Ruiliang/Documents/sofa_plugins/CMakeLists.txt file containing the following:
cmake_minimum_required(VERSION 3.12)

find_package(SofaFramework)
sofa_add_plugin(caribou/ SofaCaribou)
  1. Go into your SOFA's build directory, and add this sofa_plugins path to the SOFA_EXTERNAL_DIRECTORIES CMake variable. Then, …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ruiliang-gao
Comment options

@jnbrunet
Comment options

Answer selected by jnbrunet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants