summaryrefslogtreecommitdiff
path: root/easynav-mpc-controller.spec
diff options
context:
space:
mode:
Diffstat (limited to 'easynav-mpc-controller.spec')
-rw-r--r--easynav-mpc-controller.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/easynav-mpc-controller.spec b/easynav-mpc-controller.spec
index b19a83e..ad37314 100644
--- a/easynav-mpc-controller.spec
+++ b/easynav-mpc-controller.spec
@@ -26,6 +26,10 @@ Source0: https://github.com/EasyNavigation/easynav_plugins/archive/%{commit}.
# SHA256 与 CMakeLists 的 URL_HASH 一致(53e552d8...04cf0de),完整性可校验。
Source1: https://github.com/stevengj/nlopt/archive/refs/tags/v2.11.0.tar.gz#/nlopt-2.11.0.tar.gz
Patch0: nlopt-local-source.patch
+# Eigen < 3.4 不支持 Matrix2d 的 brace-enclosed initializer list 语法
+# {{a,b},{c,d}},openEuler 24.03 自带 Eigen 3.3 编译报错。改用逗号初始化器
+# (Matrix2d() << ...).finished() 替代,兼容 Eigen 3.3+
+Patch1: eigen-matrix-init-fix.patch
# debug 子包无意义(/opt 前缀,strip/debugedit 路径非常规),统一关闭
%global debug_package %{nil}
@@ -141,3 +145,4 @@ make install DESTDIR=%{buildroot}
- NLopt 2.11.0 vendored as Source1 + Patch0 for offline COPR build
- Single-package policy with virtual devel/doc/runtime Provides
- Fix: 注释中 cmake 宏泄漏导致构建失败,改用直接 cmake 调用(对齐 mhamcl 兄弟包)
+- Fix: Eigen Matrix2d brace-init 不兼容 Eigen 3.3,Patch1 改用逗号初始化器