rcone11
rcone11
你好,我也在做替换模型,方便加个联系方式沟通吗
I tried to mex blockfactory.cpp in matlab and got the error message: /usr/bin/ld: /tmp/mex_35266495627694_401685/BlockFactory.o: in function catchLogMessages(bool, SimStruct_tag*)': BlockFactory.cpp:(.text+0x123a): undefined reference to blockfactory::core::Log::getSingleton()’ /usr/bin/ld: BlockFactory.cpp:(.text+0x124c): undefined reference to `blockfactory::core::Log::getWarnings[abi:cxx11](chrome-extension://bpelnogcookhocnaokfpoeinibimbeff/index.html) const’,...
> 请报告确切的错误,谢谢。 I opened the model in the example in simulink, and after running it, I encountered the following error: Error in S-function ‘Model/w// mask’: S-Function ‘BlockFactory’ does not exist...
> The S-Function needs to be compiled via CMake, see https://robotology.github.io/blockfactory/mkdocs/install/#installation . On this webpage, I have completed everything as instructed on Ubuntu 20.04.6, except for the last step regarding...
> 这是一个环境变量,有关这方面的入门知识,请参见 https://www.hostinger.com/tutorials/linux-environment-variables。您只需要在编译第一个 blockfactory 块后进行设置,有关如何执行此操作的示例,请参阅 https://robotology.github.io/blockfactory/mkdocs/create_new_library/。 So,sir do I not need to try mex blockfactory in Matlab? Just need to set export BLOCKFACTORY_PLUGIN_PATH=/installfolder1/subfolder1/blockfactory:/installfolder2/subfolder2/blockfactory/: right, so that the example can run...
> Did you followed the instructions in the "Compiling instructions" in https://robotology.github.io/blockfactory/mkdocs/create_new_library/ ? yes,I followed this command
> Can you report the output of those commands? after the last command:Found BlockFactory 0.8.5 (Components: Core Simulink SimulinkCoder) -- Found BlockFactory 0.8.5 (Components: Core Simulink SimulinkCoder) -- Found BlockFactory...
> > > Can you report the output of those commands? > > > > > > after the last command:Found BlockFactory 0.8.5 (Components: Core Simulink SimulinkCoder) -- Found BlockFactory...
> 请始终报告您遇到的完整错误,否则真的很难帮助您。: ) > > 在命令中,当您传递一个选项时,该部分将被忽略,因此基本上您不再构建示例。`cmake -Dcmake_CXX_STANDARD=14 --build .``--build``-D` > > 您似乎正在 conda 环境中构建,您能否通过输出报告该环境的内容?我的直觉是,您正在尝试使用来自该 conda 环境的库,但没有安装 conda 的编译器,而是使用底层发行版中的编译器,但这是不可能的,因为 conda 的库需要更新的 C++ 标准库,因此您看到的错误。`conda list` I am very sorry to have disturbed...
> conda list (base) han@han-System-Product-Name:~$ conda list # packages in environment at /home/han/miniforge3: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge ace 7.1.3 h59595ed_2...