sofa
sofa copied to clipboard
Sofa compilation [Ubuntu 18]
Problem
Description Hello, thank you for your work. I want to compile Sofa.
Steps to reproduce
I did all installation steps https://www.sofa-framework.org/community/doc/getting-started/build/linux/ make the same structure as described & clone git clone -b v21.12 https://github.com/sofa-framework/sofa.git sofa/src
.
After configure cmake gui I got error:
-- Precompiled headers: disabled (SOFA_BUILD_WITH_PCH_ENABLED is OFF or CMake < 3.16).
Install prefix: /media/maxim/big-500/sofa/build/v21.12/install
CMake Deprecation Warning at SofaKernel/modules/Sofa.Config/CMakeLists.txt:80 (message):
Deprecated components are activated (SOFA_WITH_DEPRECATED_COMPONENTS
variable is ON)
Using legacy headers is enabled.
Headers from v21.06 are usable, but it is advised to change your code to use the new headers introduced in v21.12.
Adding module Sofa.GL
Adding plugin SofaSimpleFem
Adding plugin SofaRigid
Adding plugin SofaDeformable
Adding plugin SofaObjectInteraction
Adding plugin SofaMeshCollision
Adding plugin SofaEngine
Adding plugin SofaExplicitOdeSolver
Adding plugin SofaImplicitOdeSolver
Adding plugin SofaLoader
Adding plugin SofaGeneralVisual
Adding plugin SofaGraphComponent
Adding plugin SofaGeneralMeshCollision
Adding plugin SofaBoundaryCondition
Adding plugin SofaGeneralAnimationLoop
Adding plugin SofaGeneralDeformable
CMake Warning at /media/maxim/big-500/sofa/build/v21.12/lib/cmake/SofaEigen2SolverConfig.cmake:36 (message):
SofaEigen2Solver has been removed. The package still exists for
compatibility but is empty. Eigen classes were moved to Sofa.LinearAlgebra
and SVDLinearSolver to SofaDenseSolver.
Call Stack (most recent call first):
/media/maxim/big-500/sofa/build/v21.12/lib/cmake/SofaBaseConfig.cmake:35 (find_package)
/media/maxim/big-500/sofa/build/v21.12/lib/cmake/SofaGeneralDeformableConfig.cmake:34 (find_package)
modules/SofaGeneralDeformable/SofaGeneralDeformable_test/CMakeLists.txt:12 (find_package)
Adding plugin SofaGeneralEngine
Adding plugin SofaGeneralExplicitOdeSolver
Adding plugin SofaGeneralImplicitOdeSolver
Adding plugin SofaGeneralLinearSolver
Adding plugin SofaGeneralRigid
Adding plugin SofaGeneralObjectInteraction
Adding plugin SofaGeneralSimpleFem
Adding plugin SofaGeneralTopology
Adding plugin SofaTopologyMapping
Adding plugin SofaUserInteraction
Adding plugin SofaConstraint
Adding plugin SofaGeneralLoader
Adding plugin SofaExporter
Adding plugin SofaSparseSolver
SofaSparseSolver: using built-in metis library
Adding plugin SofaPreconditioner
Adding plugin SofaHaptics
Adding plugin SofaValidation
Adding plugin SofaDenseSolver
Adding plugin SofaNonUniformFem
Adding plugin SofaOpenglVisual
Adding plugin SofaMiscTopology
Adding plugin SofaMiscExtra
Adding plugin SofaMiscForceField
Adding plugin SofaMiscEngine
Adding plugin SofaMiscSolver
Adding plugin SofaMiscFem
Adding plugin SofaMiscMapping
Adding plugin SofaMiscCollision
SofaMiscModule: build all maintained sofa components.
CMake Error at /usr/share/cmake-3.15/Modules/FetchContent.cmake:903 (message):
CMake step for cxxopts failed: No such file or directory
Call Stack (most recent call first):
/usr/share/cmake-3.15/Modules/FetchContent.cmake:1006 (__FetchContent_directPopulate)
modules/SofaGuiCommon/CMakeLists.txt:18 (FetchContent_Populate)
Configuring incomplete, errors occurred!
See also "/media/maxim/big-500/sofa/build/v21.12/CMakeFiles/CMakeOutput.log".
See also "/media/maxim/big-500/sofa/build/v21.12/CMakeFiles/CMakeError.log".
As I understand there is problem with cxxopts:
if(NOT cxxopts_POPULATED)
FetchContent_Populate(cxxopts)
Environment
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
gcc-11 --version
gcc-11 (Ubuntu 11.1.0-1ubuntu1~18.04.1) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks! What I'm doing wrong?