CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
155 stars 50 forks source link

Error when building an FMU model with a fuzzy control module #411

Open zzlonggg opened 1 year ago

zzlonggg commented 1 year ago

An error was generated when building an FMU model containing a fuzzy control module, the error is shown below. The model is shown in Figure 1(Contains only a simple fuzzy control moduleContains only a simple fuzzy control module)

### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: D:\Users\J\Desktop\zuizhogn\zonghe\zz22_grt_fmi_rtw
### Invoking Target Language Compiler on zz22.rtw
### Using System Target File: D:\Users\J\Desktop\zuizhogn\zonghe\FMIKit-Simulink-3.0-alpha.4\grtfmi\grtfmi.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
    ### Writing header file zz22_types.h
    ### Writing source file zz22.c
    ### Writing header file zz22_private.h
.
    ### Writing header file zz22.h
    ### Writing header file rtwtypes.h
    ### Writing header file multiword_types.h
    ### Writing header file rt_nonfinite.h
    ### Writing source file rt_nonfinite.c
    ### Writing header file rtGetInf.h
.
    ### Writing source file rtGetInf.c
    ### Writing header file rtGetNaN.h
    ### Writing source file rtGetNaN.c
    ### Writing header file rtmodel.h
    ### Writing source file zz22_data.c
    ### Writing header file rt_defines.h
### TLC code generation complete.
### Writing modelDescription.xml
### Running CMake generator
### Generating project
-- Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30146.0
-- The CXX compiler identification is MSVC 19.29.30146.0
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: D:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_C_FLAGS_RELEASE /MT /O2 /Ob2 /DNDEBUG
CMAKE_C_FLAGS_RELEASE /MT /Od /Ob2 /DNDEBUG
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Users/J/Desktop/zuizhogn/zonghe/zz22_grt_fmi_rtw
### Building FMU
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642 
版权所有(C) Microsoft Corporation。保留所有权利。
  rt_matrx.c 
  rtGetInf.c
  rtGetNaN.c 
  rt_nonfinite.c 
  zz22.c 
  zz22_data.c 
  fmi2Functions.c
D:\Users\J\Desktop\zuizhogn\zonghe\zz22_grt_fmi_rtw\fmiwrapper.inc(340,60): error C2039: "pooled1": 不是 "P_zz22_T_" 的成员 [D:\Users\J\Desktop\zuizhogn\zonghe\zz22_grt_fmi_rtw\zz22.vcxproj]
D:\Users\J\Desktop\zuizhogn\zonghe\zz22_grt_fmi_rtw\zz22.h(75): message : 参见“P_zz22_T_”的声明 [D:\Users\J\Desktop\zuizhogn\zonghe\zz22_grt_fmi_rtw\zz22.vcxproj]
  正在生成代码...
The call to grtfmi_make_rtw_hook, during the after_make hook generated the following error:
    Failed to build FMU

The build process will terminate as a result.
Caused by:
Failed to build FMU 

4)DS6EKYX1E5TZYROGBRJAV Figure 1