- This topic has 3 replies, 3 voices, and was last updated 5 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › Building Stlib and integration with sofa in windows 10
Tagged: 64_bits, building stlib, SOFA_1806, VS2017, Windows_10
I am trying to build stlib using Cmake but is giving me error “Unknown CMake command “sofa_set_python_directory”. and Unknown CMake command “sofa_create_package”.
Please advise
Hi @himanshu,
I’m not a user of windows 10.. but it seems to me that you’re building SOFA without PLUGIN_SOFAPYTHON.
– Have you built SOFA by yourself (from sources) or did you download the binaries?
If you built it yourself, you need to enable the SofaPython plugin in your cmake configuration (PLUGIN_SOFAPYTHON=ON)
– Are you building the STLIB separately from SOFA, or are you building it as a SOFA_EXTERNAL_DIRECTORY?
– If you are building STLIB with the sources of SOFA, you need to configure it as such (in cmake):
PLUGIN_SOFAPYTHON=ON
SOFA_EXTERNAL_DIRECTORIES=<your STLIB_SOURCE_DIRECTORY>
– If you’re building the STLIB as an “out-of-tree build”, you need to pass the path to your SOFA installation directory in CMake:
CMAKE_PREFIX_PATH=<sofa_install_dir>
I have used the bineries to install sofa but If I am building Sofa from source it is giving me error of boost:
C:\Program Files\CMake\share\cmake-3.13\Modules\FindBoost.cmake:2100: error: Unable to find the requested Boost libraries. Boost version: 1.69.0 Boost include path: C:/SofaDependencies/boost_1_69_0 Could not find the following Boost libraries: boost_system boost_filesystem boost_locale boost_program_options Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. SofaKernel/SofaFramework/CMakeLists.txt:112 (find_package)
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.