ebertolazzi / Clothoids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

matlab toolbox error

leghi opened this issue · comments

commented

Hey. I found an issue when I was trying to compile the toolbox when I run the CompileClothoidsLib.m follow is the error

mex -c -largeArrayDims -Isrc -Isrc/Utils COMPFLAGS="$COMPFLAGS -O2" -c src/AABBtree.cc
使用 'Microsoft Visual C++ 2013' 编译。
错误使用 mex
AABBtree.cc
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(316) : warning C4091: “inline ”: 没有声明变量时忽略“int”的左

c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(316) : error C2143: 语法错误 : 缺少“;”(在“namespace”的前面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(335) : error C2146: 语法错误: 缺少“;”(在标识符“monostate”的前
面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(335) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(354) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(354) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(365) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(365) : error C2065: “T”: 未声明的标识符
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(365) : error C2146: 语法错误: 缺少“)”(在标识符“value”的前面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(365) : error C2433: “const_check”: 不允许在数据声明中使
用“inline”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(365) : error C2059: 语法错误:“)”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(430) : error C2144: 语法错误:“unsigned char”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(430) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(430) : error C2086: “int fmt::v8::detail::constexpr”: 重
定义
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(354) : 参见“fmt::v8::detail::constexpr”的声明
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(432) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(432) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(432) : error C2086: “int fmt::v8::detail::constexpr”: 重
定义
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(354) : 参见“fmt::v8::detail::constexpr”的声明
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(457) : error C2146: 语法错误: 缺少“;”(在标识
符“basic_string_view”的前面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(538): 参见对正在编译的类 模板 实例
化“fmt::v8::basic_string_view”的引用
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(457) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(460) : error C2146: 语法错误: 缺少“;”(在标识
符“basic_string_view”的前面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(460) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(492) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(492) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(495) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(495) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(497) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(497) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(498) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(498) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(500) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(500) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(557) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(557) : error C2065: “Char”: 未声明的标识符
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(557) : error C2923: “fmt::v8::basic_string_view”: 对于参
数“Char”,“Char”不是有效的 模板 类型变量
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(558) : error C2065: “Char”: 未声明的标识符
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(558) : error C2923: “fmt::v8::basic_string_view”: 对于参
数“Char”,“Char”不是有效的 模板 类型变量
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(560) : error C2079: “fmt::v8::to_string_view”使用未定义的
class“fmt::v8::basic_string_view”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(566) : warning C4544: “unnamed-parameter”: 此模板声明中忽略
的默认模板参数
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(562) : 参见“unnamed-parameter”的声明
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(576) : warning C4346:
“fmt::v8::is_compile_string::value”: 依赖名称不是类型
用“typename”为前缀来表示类型
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(576) : error C2144: 语法错误:“auto”的前面应有“;”
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(576) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不
支持默认 int
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(576) : error C2143: 语法错误 : 缺少“,”(在“&”的前面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(577) : error C2653: “S”: 不是类或命名空间名称
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(577) : error C2146: 语法错误: 缺少“,”(在标识符“char_type”的前
面)
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(577) : error C2065: “char_type”: 未声明的标识符
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(577) : error C2977: “fmt::v8::basic_string_view”: 模板 参
数太多
c:\users\zt\appdata\roaming\mathworks\matlab add-ons\toolboxes\clothoids\src\utils\fmt\core.h(448) : 参见“fmt::v8::basic_string_view”的声明

cl: 命令行 warning D9024 :无法识别的源文件类型“/Zp8”,假定为对象文件
cl: 命令行 warning D9027 :源文件“/Zp8”被忽略

出错 CompileClothoidsLib (line 49)
eval(CMD);

It seems that you are using C++2013 which is very old and is not able to compile correctly the library {FMT}.
Clothoids require C++11 thus you must use a more recent compiler.