[master] src/Mod/Mesh/App/Core/Approximation.cpp: missing unsupported/Eigen/NonLinearOptimization

Having trouble installing or compiling FreeCAD? Get help here.
Post Reply
yopito
Posts: 5
Joined: Fri Apr 05, 2019 11:00 am
Location: Lyon, France

[master] src/Mod/Mesh/App/Core/Approximation.cpp: missing unsupported/Eigen/NonLinearOptimization

Post by yopito » Fri Mar 27, 2020 7:02 am

hello,

While building FC from git master branch (rev 39b691a as of 2020.03.27), the following error raises.
I see this error at least from git master as of 5th of March.

Code: Select all

[ 42%] Building CXX object src/Mod/Mesh/App/CMakeFiles/Mesh.dir/Core/Builder.cpp.o
/builddir/FreeCAD-39b691a994e8815fd9181baa7d10bc06e0111673/src/Mod/Mesh/App/Core/Approximation.cpp:51:10: fatal error: unsupported/Eigen/NonLinearOptimization: No such file or directory
   51 | #include <unsupported/Eigen/NonLinearOptimization>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/Mod/Mesh/App/CMakeFiles/Mesh.dir/build.make:112: src/Mod/Mesh/App/CMakeFiles/Mesh.dir/Core/Approximation.cpp.o] Error 1
Patching quickly this way makes build fine:

Code: Select all

--- src/Mod/Mesh/App/Core/Approximation.cpp.ORIG
+++ src/Mod/Mesh/App/Core/Approximation.cpp
@@ -48,7 +48,6 @@
 //#define FC_USE_EIGEN
 #include <Eigen/QR>
 #include <Eigen/Eigen>
-#include <unsupported/Eigen/NonLinearOptimization>
 #ifdef FC_USE_EIGEN
 #include <Eigen/Eigenvalues>
 #endif
My build setup summary:

Code: Select all

==============
Summary report
==============

-- Build type:          Release
-- Compiler:            /usr/lib/ccache/bin/g++ (9.3.0)
-- Flags:               -Wall -Wextra -Wno-write-strings -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2
-- Standard:            Requires C++11
-- Python:              [/usr/bin/python3] []
-- PCL:                 not enabled
-- pybind11:            not enabled
-- Boost:               107200
-- XercesC:             [/usr/lib/libxerces-c.so] [/usr/include]
-- ZLIB:                1.2.11
-- PyCXX:               [/builddir/FreeCAD-39b691a994e8815fd9181baa7d10bc06e0111673/src]
-- OCC:                 7.4.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
-- SMESH:               build internal
--  MEDFile:            [/usr/lib/libmedC.so;/usr/lib/libmed.so] [/usr/include/med]
--  HDF5:               1.10.5
--  VTK:                8.2.0
-- NETGEN:              not enabled
-- SWIG:                4.0.1
-- Eigen3               3.3.7
-- Qt5Core:             5.13.2
-- Qt5Network:          5.13.2
-- Qt5Xml:              5.13.2
-- Qt5XmlPatterns:      5.13.2
-- Qt5Widgets:          5.13.2
-- Qt5PrintSupport:     5.13.2
-- Qt5OpenGL:           5.13.2
-- Qt5Svg:              5.13.2
-- Qt5UiTools:          5.13.2
-- Qt5Concurrent:       5.13.2
-- Qt5WebEngineWidgets: 5.13.2
-- Shiboken2:           5.14.1 [/usr/lib64/cmake/Shiboken2-5.14.1] [/usr/include/shiboken2;/usr/include/python3.8]
-- PySide2:             5.14.1 [/usr/include/PySide2]
-- PySide2Tools:        [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
-- Freetype:            2.10.1
-- OpenGLU:             /usr/lib/libGLU.so [/usr/lib/libGLU.so][/usr/include]
-- Coin3D:              [Coin;GLU;GL;Xext;SM;ICE;X11;bz2;z;freetype;fontconfig;simage;ogg;vorbis;vorbisfile;jasper;tiff;png;jpeg;pthread] [/usr/include/Coin3;/usr/include/Coin3/Inventor/annex;/usr/include/freetype2;/usr/include/libpng16]
-- SPNAV:               [/usr/lib/libspnav.so] [/usr/include]
-- Matplotlib:          3.1.3
-- Rift:                not enabled (BUILD_VR)
-- Doxygen:             not found
Do I miss something obvious ?
yopito
Posts: 5
Joined: Fri Apr 05, 2019 11:00 am
Location: Lyon, France

Re: [master] src/Mod/Mesh/App/Core/Approximation.cpp: missing unsupported/Eigen/NonLinearOptimization

Post by yopito » Sat Mar 28, 2020 4:38 pm

found the obvious: the distribution package of egein 3.3.7 I use does not include eigen/Unsupported/ stuff ...

In the other hand, since FC build is achieved without including it, does this include is really usefull to FC ?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests