Sketcher: Workaround for Eigen bug: SparseQR crash on matrices with rows>cols
============================================================================= There is an issue with an assertion in Eigen, as reported here: https://forum.kde.org/viewtopic.php?f=74&t=117474 http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&p=92153#p92146 The work-around is to disable debug assertions for Eigen until the problem gets solved.
This commit is contained in:
parent
6030da1182
commit
516b0d3c56
|
@ -10,7 +10,7 @@ if (OPENMP_FOUND)
|
|||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_NO_DEBUG") # Necessary to avoid SparseQR crash with Eigen 3.2 due to a wrong assertion
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
#include "GCS.h"
|
||||
#include "qp_eq.h"
|
||||
|
||||
// NOTE: In CMakeList.txt -DEIGEN_NO_DEBUG is set (it does not work with a define here), to solve this:
|
||||
// this is needed to fix this SparseQR crash http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&p=92146#p92146,
|
||||
// until Eigen library fixes its own problem with the assertion (definitely not solved in 3.2.0 branch)
|
||||
|
||||
#include <Eigen/QR>
|
||||
#include <Eigen/Sparse>
|
||||
#include <Eigen/OrderingMethods>
|
||||
|
|
Loading…
Reference in New Issue
Block a user