sofa-framework / cgalplugin Goto Github PK
View Code? Open in Web Editor NEWUse CGAL features into SOFA (remeshing, tetrahedra generation...)
License: Other
Use CGAL features into SOFA (remeshing, tetrahedra generation...)
License: Other
I am trying to compile the CGAL plugin with the latest master branch version of SOFA on Linux. I get a lot the following errors when trying to build with ninja:
[53/56] Building CXX object applicatio....dir/src/CGALPlugin/Refine2DMesh.cpp.o
FAILED: applications/plugins/CGALPlugin/CMakeFiles/CGALPlugin.dir/src/CGALPlugin/Refine2DMesh.cpp.o
/usr/bin/clang++-12 -DBOOST_ALL_NO_LIB -DCGALPlugin_EXPORTS -DCGAL_MESH_3_VERBOSE=0 -DNDEBUG -DSOFA_BUILD_CGALPLUGIN -I/home/nick/sofa/src/applications/plugins/CGALPlugin/src -I/home/nick/sofa/build/include/CGALPlugin -I/home/nick/sofa/src/Sofa/framework/Simulation/Common/src -I/home/nick/sofa/build/include/Sofa.Simulation.Common -I/home/nick/sofa/src/Sofa/framework/Core/src -I/home/nick/sofa/build/include/Sofa.Core -I/home/nick/sofa/src/Sofa/framework/Helper/src -I/home/nick/sofa/build/include/Sofa.Helper -I/home/nick/sofa/src/Sofa/framework/Config/src -I/home/nick/sofa/build/include/Sofa.Config -I/home/nick/sofa/src/Sofa/framework/Type/src -I/home/nick/sofa/build/include/Sofa.Type -I/home/nick/sofa/src/Sofa/framework/Compat/src -I/home/nick/sofa/build/include/Sofa.Compat -I/home/nick/sofa/src/Sofa/framework/Topology/src -I/home/nick/sofa/build/include/Sofa.Topology -I/home/nick/sofa/src/Sofa/framework/Geometry/src -I/home/nick/sofa/build/include/Sofa.Geometry -I/home/nick/sofa/src/Sofa/framework/DefaultType/src -I/home/nick/sofa/build/include/Sofa.DefaultType -I/home/nick/sofa/src/Sofa/framework/LinearAlgebra/src -I/home/nick/sofa/build/include/Sofa.LinearAlgebra -I/home/nick/sofa/src/Sofa/Component/Compat/src -I/home/nick/sofa/build/include/Sofa.Component.Compat -I/home/nick/sofa/src/Sofa/framework/Simulation/Core/src -I/home/nick/sofa/build/include/Sofa.Simulation.Core -I/home/nick/sofa/src/Sofa/Component/Mass/src -I/home/nick/sofa/build/include/Sofa.Component.Mass -I/home/nick/sofa/src/Sofa/Component/Topology/Container/Dynamic/src -I/home/nick/sofa/build/include/Sofa.Component.Topology.Container.Dynamic -I/home/nick/sofa/src/Sofa/Component/MechanicalLoad/src -I/home/nick/sofa/build/include/Sofa.Component.MechanicalLoad -isystem /home/nick/sofa/src/extlibs/json -isystem /home/nick/sofa/src/extlibs/stb -isystem /usr/include/eigen3 -O3 -DNDEBUG -fPIC -Wno-attributes -Wall -W -Wno-padded -std=gnu++17 -MD -MT applications/plugins/CGALPlugin/CMakeFiles/CGALPlugin.dir/src/CGALPlugin/Refine2DMesh.cpp.o -MF applications/plugins/CGALPlugin/CMakeFiles/CGALPlugin.dir/src/CGALPlugin/Refine2DMesh.cpp.o.d -o applications/plugins/CGALPlugin/CMakeFiles/CGALPlugin.dir/src/CGALPlugin/Refine2DMesh.cpp.o -c /home/nick/sofa/src/applications/plugins/CGALPlugin/src/CGALPlugin/Refine2DMesh.cpp
In file included from /home/nick/sofa/src/applications/plugins/CGALPlugin/src/CGALPlugin/Refine2DMesh.cpp:25:
/home/nick/sofa/src/applications/plugins/CGALPlugin/src/CGALPlugin/Refine2DMesh.inl:342:33: error: use of undeclared identifier 'serr'
serr << "Invalid constrained edge." << sendl;
^
/home/nick/sofa/src/applications/plugins/CGALPlugin/src/CGALPlugin/Refine2DMesh.inl:342:72: error: use of undeclared identifier 'sendl'
serr << "Invalid constrained edge." << sendl;
^
2 errors generated.
I found the following pull request where it seems that these undeclared identifiers have been deprecated, so I think there is an error with the plugin rather than a mistake on my end, but I could be wrong.
Also, the installation instructions appear to be out of date here
https://www.sofa-framework.org/community/doc/plugins/usual-plugins/cgal-library/
I installed the plugin by activating "SOFA_FETCH_CGALPLUGIN" in cmake and then the "PLUGIN_CGALPLUGIN" entry as well, and I installed boost, GMP and MPFR, and CGAL all through the command line (sudo apt-get ...). When I configure cmake, it seems to find everything correctly; it just fails to build with ninja.
Bug reported in discussion: sofa-framework/sofa#3478
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.