MATLAB-SIMULINK(MAC OSX)中的模型加速度
Model acceleration in Matlab-Simulink (Mac OSX)
我在模型加速度和模型参考技术的Simulink中获得了此构建错误。我在Mac OSX 10.9.5中使用MATLAB R2013B,并将Xcode 6.2/clang 作为我的C/C 编译器。该错误似乎是由于缺失/未知类型的char16_t引起的。通过将MATLAB编译器的CFLAGS -Dchar16_t=UINT16_T
用于MAC OSX来解决类似的问题。我没有MATLAB编译器的问题,但是通过Simulink模型的编译(即sbuild
函数)获取构建错误。有任何线索如何解决此构建错误?
### Build procedure for model: 'sldemo_mdlref_counter' aborted due to an error.
### Model reference SIM target (sldemo_mdlref_counter_msf.mexmaci64) for model sldemo_mdlref_counter is out of date because sldemo_mdlref_counter_msf.mexmaci64 does not exist.
### Updating model reference SIM target for model: sldemo_mdlref_counter
xcrun clang -arch x86_64 -c -fno-common -fexceptions -O0 -DNDEBUG -DMODEL=sldemo_mdlref_counter -DNUMST=1 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=0 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DMDL_REF_SIM_TGT=1 -I. -I../../.. -I/Applications/MATLAB_R2013a.app/extern/include -I/Applications/MATLAB_R2013a.app/simulink/include -I/Applications/MATLAB_R2013a.app/rtw/c/src -I/Applications/MATLAB_R2013a.app/rtw/c/src/ext_mode/common -I. -I/Users/santanusarma/Dropbox/M.TECH project/code/model -I../../../slprj/sim/_sharedutils "sldemo_mdlref_counter.c"
In file included from sldemo_mdlref_counter.c:2:
In file included from ./sldemo_mdlref_counter_capi.h:4:
In file included from ./sldemo_mdlref_counter.h:4:
In file included from /Applications/MATLAB_R2013a.app/rtw/c/src/rtw_modelmap.h:33:
In file included from ../../../slprj/sim/_sharedutils/rtwtypes.h:13:
/Applications/MATLAB_R2013a.app/extern/include/tmwtypes.h:819:9: error: unknown type
name 'char16_t'
typedef char16_t CHAR16_T;
^
1 error generated.
gmake: *** [sldemo_mdlref_counter.o] Error 1
### Build procedure for model: 'sldemo_mdlref_counter' aborted due to an error.
#include <stdint.h>
是获得char16_t
声明的一种方法。如果您无法修改代码,则可以使用强制包含该文件(检查编译器的强制选项包含的文档)。
相关文章:
- QTableView:endMoveRows在模型中重置水平页眉大小
- 将IBM Rhapsody模型集成到VS 2019中
- 旋转模型矩阵时的形状失真
- 成员函数调用和C++对象模型
- 连接 dockerized 模型和 dockerized 数据库时出现"无法 SQLConnect"错误
- 打印 ONNXRUNTIME::图形没有模型
- C++内存模型和位字段的最大序列
- 使用SIR模型的疾病爆发模拟
- Qt - QVector 和模型视图 - 从列表视图获取自定义类的最佳方法是什么?
- 如何在 ECS 模型中组织实体?
- 在官方张量流 resnet50 模型上运行 tflite 精度工具
- Libtorch:如何加载ONNX模型?
- 使用 assimp 加载模型 - 不需要提升?
- 如何将经过训练的机器学习模型保存在python中并将其加载到C++中进行预测?
- C++内存模型中的确切规则阻止在获取操作之前重新排序
- MFC:你能在CDateTimeCtrl中改变自旋的加速度吗?
- 如何更改古罗比C++模型中的目标值系数
- 如何获取加速度值?
- 如何在 openGL 中围绕全局轴旋转模型?
- MATLAB-SIMULINK(MAC OSX)中的模型加速度