robotology / blockfactory

A tiny framework to wrap algorithms for dataflow programming
https://robotology.github.io/blockfactory
GNU Lesser General Public License v2.1
41 stars 16 forks source link

Errors running the Model.mdl of the example folder #79

Closed rcone11 closed 1 week ago

rcone11 commented 2 months ago

my BlockFactory.mexa64 file address is /home/han/miniforge3/mex/BlockFactory.mexa64.But my model.mdl file address is /home/han/blockfactory/example/matlab/model.mdl.To ensure that these two files are in the same folder,I copied the BlockFactory.mexa64 file to the /home/han/blockfactory/example/matlab/BlockFactory.mexa64.Then I run the model.mdl here is the error displayed. Error while obtaining sizes from MEX S-function 'BlockFactory in "odel/w// mask'Caused by: MEX file "/home/hanblockfactory/example/matlab/BlockFactory.mexa64' invalid:libBleckFactoryCore.s9.0.8.5: cannot open shared object file : No such file or directoryComponent:Simwink Category:Model errorError while obtaining sizes from MEX S-function 'BlockFacto!y in 'Model/w//o mask'.Caused by:MEX file '/home/hablockfactory/example/matlab/BlockFactory.mexa64' invalid:libBleckFactoryCore.s9.0.8.5: cannot open shared object file : No such file or directory.

traversaro commented 2 months ago

How did you compile the /home/hablockfactory/example/matlab/BlockFactory.mexa64 file? The error seems to refer to a libBleckFactoryCore, not sure if the Bleck/Block typo is related.

rcone11 commented 2 months ago

How did you compile the /home/hablockfactory/example/matlab/BlockFactory.mexa64 file? The error seems to refer to a libBleckFactoryCore, not sure if the Bleck/Block typo is related.

sorry.There are some words spelled incorrectly, here is the error displayed. Error while obtaining sizes from MEX S-function 'BlockFactory in "odel/w// mask'Caused by: MEX file "/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBlockFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory Component:Simulink | Category:Model error Error while obtaining sizes from MEX S-function 'BlockFacto!y in 'Model/w//o mask'.Caused by: MEX file '/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBleckFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory.

traversaro commented 2 months ago

The problem seems the same. Anyhow, the question is still valid:

How did you compile the /home/hablockfactory/example/matlab/BlockFactory.mexa64 file?

If you are using a conda environment, can you report the conda list?

rcone11 commented 2 months ago

The problem seems the same. Anyhow, the question is still valid:

How did you compile the /home/hablockfactory/example/matlab/BlockFactory.mexa64 file?

If you are using a conda environment, can you report the conda list? I didn't compiled the BlockFactory.mexa64 succeed 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 conda-forge alsa-lib 1.2.11 hd590300_1 conda-forge ampl-mp 3.1.0 h2cc385e_1006 conda-forge aom 3.8.2 h59595ed_0 conda-forge archspec 0.2.3 pyhd8ed1ab_0 conda-forge assimp 5.3.1 h8343317_3 conda-forge attr 2.5.1 h166bdaf_1 conda-forge binutils 2.40 h4852527_0 conda-forge binutils_impl_linux-64 2.40 hf600244_0 conda-forge binutils_linux-64 2.40 hdade7a5_3 conda-forge blockfactory 0.8.5 h59595ed_120 robotology boltons 24.0.0 pyhd8ed1ab_0 conda-forge brotli-python 1.1.0 py310hc6cd4ac_1 conda-forge bzip2 1.0.8 hd590300_5 conda-forge c-ares 1.28.1 hd590300_0 conda-forge c-compiler 1.7.0 hd590300_0 conda-forge ca-certificates 2024.2.2 hbcca054_0 conda-forge cairo 1.18.0 h3faef2a_0 conda-forge casadi 3.6.5 py310h60ac289_0 conda-forge casadi-matlab-bindings 3.6.3.1 h59595ed_120 robotology certifi 2024.2.2 pyhd8ed1ab_0 conda-forge cffi 1.16.0 py310h2fee648_0 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge cmake 3.29.2 hcfe8598_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge compilers 1.7.0 ha770c72_0 conda-forge conda 24.3.0 py310hff52083_0 conda-forge conda-libmamba-solver 24.1.0 pyhd8ed1ab_0 conda-forge conda-package-handling 2.2.0 pyh38be061_0 conda-forge conda-package-streaming 0.9.0 pyhd8ed1ab_0 conda-forge cxx-compiler 1.7.0 h00ab1b0_0 conda-forge cython 0.29.37 py310hc6cd4ac_0 conda-forge dav1d 1.2.1 hd590300_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge distro 1.9.0 pyhd8ed1ab_0 conda-forge eigen 3.4.0 h00ab1b0_0 conda-forge expat 2.6.2 h59595ed_0 conda-forge ffmpeg 6.1.1 gpl_hee4b679_108 conda-forge fmt 10.2.1 h00ab1b0_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_1 conda-forge fontconfig 2.14.2 h14ed4e7_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fortran-compiler 1.7.0 heb67821_0 conda-forge freeglut 3.2.2 hac7e632_2 conda-forge freetype 2.12.1 h267a509_2 conda-forge fribidi 1.0.10 h36c2ea0_0 conda-forge gcc 12.3.0 h915e2ae_6 conda-forge gcc_impl_linux-64 12.3.0 h1562d66_6 conda-forge gcc_linux-64 12.3.0 h6477408_3 conda-forge gettext 0.22.5 h59595ed_2 conda-forge gettext-tools 0.22.5 h59595ed_2 conda-forge gfortran 12.3.0 h915e2ae_6 conda-forge gfortran_impl_linux-64 12.3.0 h6d6b2fb_6 conda-forge gfortran_linux-64 12.3.0 h617cb40_3 conda-forge glfw 3.4 hd590300_0 conda-forge glib 2.80.0 hf2295e7_6 conda-forge glib-tools 2.80.0 hde27a5a_6 conda-forge gmp 6.3.0 h59595ed_1 conda-forge gnutls 3.7.9 hb077bed_0 conda-forge graphite2 1.3.13 h59595ed_1003 conda-forge gsl 2.7 he838d99_0 conda-forge gst-plugins-base 1.24.1 hfa15dee_1 conda-forge gstreamer 1.24.1 h98fc4e7_1 conda-forge gxx 12.3.0 h915e2ae_6 conda-forge gxx_impl_linux-64 12.3.0 h1562d66_6 conda-forge gxx_linux-64 12.3.0 h4a1b8e8_3 conda-forge harfbuzz 8.3.0 h3d44ed6_0 conda-forge hdf5 1.14.3 nompi_h4f84152_100 conda-forge icu 73.2 h59595ed_0 conda-forge icub-firmware-shared 1.38.0 h59595ed_120 robotology icub-main 2.5.0 py310hd29ae9e_120 robotology icub-models 2.5.0 py310hc6cd4ac_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge idyntree 11.0.0 py310h3478c64_0 conda-forge idyntree-matlab-bindings 10.3.0 h9f71af4_120 robotology imath 3.1.11 hfc55251_0 conda-forge ipopt 3.14.14 h04b96a2_1 conda-forge irrlicht 1.8.5 h2a6caf8_4 conda-forge jasper 4.2.3 he6dfbbe_0 conda-forge jsonpatch 1.33 pyhd8ed1ab_0 conda-forge jsonpointer 2.4 py310hff52083_3 conda-forge kernel-headers_linux-64 2.6.32 he073ed8_17 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.21.2 h659d440_0 conda-forge lame 3.100 h166bdaf_1003 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge lerc 4.0.0 h27087fc_0 conda-forge libabseil 20240116.1 cxx17_h59595ed_2 conda-forge libaec 1.1.3 h59595ed_0 conda-forge libarchive 3.7.2 h2aa1ff5_1 conda-forge libasprintf 0.22.5 h661eb56_2 conda-forge libasprintf-devel 0.22.5 h661eb56_2 conda-forge libass 0.17.1 h8fe9dca_1 conda-forge libblas 3.9.0 22_linux64_openblas conda-forge libboost 1.84.0 h8013b2b_2 conda-forge libcap 2.69 h0f662aa_0 conda-forge libcblas 3.9.0 22_linux64_openblas conda-forge libccd-double 2.1 h59595ed_3 conda-forge libclang-cpp15 15.0.7 default_h127d8a8_5 conda-forge libclang13 18.1.3 default_h5d6823c_0 conda-forge libcups 2.3.3 h4637d8d_4 conda-forge libcurl 8.7.1 hca28451_0 conda-forge libdc1394 2.2.7 h59595ed_1 conda-forge libdeflate 1.20 hd590300_0 conda-forge libdrm 2.4.120 hd590300_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 hd590300_2 conda-forge libevent 2.1.12 hf998b51_1 conda-forge libexpat 2.6.2 h59595ed_0 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libflac 1.4.3 h59595ed_0 conda-forge libgcc-devel_linux-64 12.3.0 h2af2641_106 conda-forge libgcc-ng 13.2.0 h807b86a_5 conda-forge libgcrypt 1.10.3 hd590300_0 conda-forge libgettextpo 0.22.5 h59595ed_2 conda-forge libgettextpo-devel 0.22.5 h59595ed_2 conda-forge libgfortran-ng 13.2.0 h69a702a_6 conda-forge libgfortran5 13.2.0 h43f5ff8_6 conda-forge libglib 2.80.0 hf2295e7_6 conda-forge libglu 9.0.0 hac7e632_1003 conda-forge libgomp 13.2.0 h807b86a_5 conda-forge libgpg-error 1.48 h71f35ed_0 conda-forge libhwloc 2.9.3 default_h554bfaf_1009 conda-forge libi2c 4.3 hcb278e6_2 conda-forge libiconv 1.17 hd590300_2 conda-forge libidn2 2.3.7 hd590300_0 conda-forge libjpeg-turbo 3.0.0 hd590300_1 conda-forge liblapack 3.9.0 22_linux64_openblas conda-forge liblapacke 3.9.0 22_linux64_openblas conda-forge libllvm15 15.0.7 hb3ce162_4 conda-forge libllvm18 18.1.3 h2448989_0 conda-forge libmamba 1.5.8 had39da4_0 conda-forge libmambapy 1.5.8 py310h39ff949_0 conda-forge libnghttp2 1.58.0 h47da74e_1 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libode 0.16.2 hc6cd4ac_14 conda-forge libogg 1.3.4 h7f98852_1 conda-forge libopenblas 0.3.27 pthreads_h413a1c8_0 conda-forge libopencv 4.9.0 qt5_py38h03d32d8_512 conda-forge libopenvino 2024.0.0 h2da1b83_5 conda-forge libopenvino-auto-batch-plugin 2024.0.0 hb045406_5 conda-forge libopenvino-auto-plugin 2024.0.0 hb045406_5 conda-forge libopenvino-hetero-plugin 2024.0.0 h5c03a75_5 conda-forge libopenvino-intel-cpu-plugin 2024.0.0 h2da1b83_5 conda-forge libopenvino-intel-gpu-plugin 2024.0.0 h2da1b83_5 conda-forge libopenvino-ir-frontend 2024.0.0 h5c03a75_5 conda-forge libopenvino-onnx-frontend 2024.0.0 h07e8aee_5 conda-forge libopenvino-paddle-frontend 2024.0.0 h07e8aee_5 conda-forge libopenvino-pytorch-frontend 2024.0.0 he02047a_5 conda-forge libopenvino-tensorflow-frontend 2024.0.0 h39126c6_5 conda-forge libopenvino-tensorflow-lite-frontend 2024.0.0 he02047a_5 conda-forge libopus 1.3.1 h7f98852_1 conda-forge libosqp 0.6.3 h59595ed_0 conda-forge libpciaccess 0.18 hd590300_0 conda-forge libpng 1.6.43 h2797004_0 conda-forge libpq 16.2 h33b98f1_1 conda-forge libprotobuf 4.25.3 h08a7969_0 conda-forge libqdldl 0.1.5 h27087fc_1 conda-forge libsanitizer 12.3.0 h2af2641_6 conda-forge libscotch 7.0.4 h91e35bf_1 conda-forge libsndfile 1.2.2 hc60ed4a_1 conda-forge libsolv 0.7.28 hfc55251_2 conda-forge libspral 2023.09.07 h6aa6db2_2 conda-forge libsqlite 3.45.2 h2797004_0 conda-forge libssh2 1.11.0 h0841786_0 conda-forge libstdcxx-devel_linux-64 12.3.0 h2af2641_106 conda-forge libstdcxx-ng 13.2.0 h7e041cc_5 conda-forge libsystemd0 255 h3516f8a_1 conda-forge libtasn1 4.19.0 h166bdaf_0 conda-forge libtiff 4.6.0 h1dd3fc0_3 conda-forge libudev1 255 h3f72095_1 conda-forge libunistring 0.9.10 h7f98852_0 conda-forge libusb 1.0.27 h520f47e_100 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libuv 1.48.0 hd590300_0 conda-forge libva 2.21.0 hd590300_0 conda-forge libvorbis 1.3.7 h9c3ff4c_0 conda-forge libvpx 1.14.0 h59595ed_0 conda-forge libwebp-base 1.4.0 hd590300_0 conda-forge libxcb 1.15 h0b41bf4_0 conda-forge libxcrypt 4.4.36 hd590300_1 conda-forge libxkbcommon 1.7.0 h662e7e4_0 conda-forge libxml2 2.12.6 h232c23b_1 conda-forge libyarp 3.9.0 ha614a09_2 conda-forge libzlib 1.2.13 hd590300_5 conda-forge lz4-c 1.9.4 hcb278e6_0 conda-forge lzo 2.10 h516909a_1000 conda-forge make 4.3 hd18ef5c_1 conda-forge mamba 1.5.8 py310h51d5547_0 conda-forge matlab-whole-body-simulator 3.3.0 h59595ed_120 robotology menuinst 2.0.2 py310hff52083_0 conda-forge metis 5.1.0 h59595ed_1007 conda-forge mpg123 1.32.6 h59595ed_0 conda-forge mumps-include 5.6.2 ha770c72_4 conda-forge mumps-seq 5.6.2 hfef103a_4 conda-forge mysql-common 8.3.0 hf1915f5_4 conda-forge mysql-libs 8.3.0 hca2cd23_4 conda-forge ncurses 6.4.20240210 h59595ed_0 conda-forge nettle 3.9.1 h7ab15ed_0 conda-forge ninja 1.12.0 h00ab1b0_0 conda-forge nspr 4.35 h27087fc_0 conda-forge nss 3.98 h1d7d5a4_0 conda-forge numpy 1.26.4 py310hb13e2d6_0 conda-forge ocl-icd 2.3.2 hd590300_1 conda-forge openexr 3.2.2 haf962dd_1 conda-forge openh264 2.4.1 h59595ed_0 conda-forge openssl 3.2.1 hd590300_1 conda-forge osqp-eigen 0.8.1 hdd734ac_1 conda-forge osqp-matlab 0.6.2.4 hdd734ac_120 robotology p11-kit 0.24.1 hc5aa10d_0 conda-forge packaging 24.0 pyhd8ed1ab_0 conda-forge pcre2 10.43 hcad00b1_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.2 h59595ed_0 conda-forge pkg-config 0.29.2 h36c2ea0_1008 conda-forge platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge pluggy 1.4.0 pyhd8ed1ab_0 conda-forge portaudio 19.6.0 h7c63dc7_9 conda-forge proxsuite 0.6.4 py310hd41b1e2_1 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge pugixml 1.14 h59595ed_0 conda-forge pulseaudio-client 17.0 hb77b528_0 conda-forge pybind11-abi 4 hd8ed1ab_3 conda-forge pycosat 0.6.6 py310h2372a71_0 conda-forge pycparser 2.22 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyha2e5f31_6 conda-forge python 3.10.14 hd12c33a_0_cpython conda-forge python_abi 3.10 4_cp310 conda-forge qpoases 3.2.1 py310h22287dc_2 conda-forge qt-main 5.15.8 hc9dc06e_21 conda-forge readline 8.2 h8228510_1 conda-forge reproc 14.2.4.post0 hd590300_1 conda-forge reproc-cpp 14.2.4.post0 h59595ed_1 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge rhash 1.4.4 hd590300_0 conda-forge robot-testing-framework 2.0.1 hcb278e6_1 conda-forge ruamel.yaml 0.18.6 py310h2372a71_0 conda-forge ruamel.yaml.clib 0.2.8 py310h2372a71_0 conda-forge scipy 1.13.0 py310hb13e2d6_0 conda-forge scotch 7.0.4 h23d43cc_1 conda-forge sdl 1.2.68 h293081c_0 conda-forge sdl2 2.30.2 hdbcbe63_0 conda-forge setuptools 69.5.1 pyhd8ed1ab_0 conda-forge simde 0.8.0 h00ab1b0_0 conda-forge snappy 1.2.0 hdb0a2a9_1 conda-forge soxr 0.1.3 h0b41bf4_3 conda-forge svt-av1 2.0.0 h59595ed_0 conda-forge sysroot_linux-64 2.12 he073ed8_17 conda-forge tbb 2021.11.0 h00ab1b0_1 conda-forge tinyxml 2.6.2 h4bd325d_2 conda-forge tinyxml2 10.0.0 h59595ed_0 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge tqdm 4.66.2 pyhd8ed1ab_0 conda-forge truststore 0.8.0 pyhd8ed1ab_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge unixodbc 2.3.12 h661eb56_0 conda-forge urllib3 2.2.1 pyhd8ed1ab_0 conda-forge wayland 1.22.0 h8c25dac_1 conda-forge wb-toolbox 5.6.1 h9f71af4_120 robotology wheel 0.43.0 pyhd8ed1ab_1 conda-forge whole-body-controllers 2.5.6 h59595ed_120 robotology x264 1!164.3095 h166bdaf_2 conda-forge x265 3.5 h924138e_3 conda-forge xcb-util 0.4.0 hd590300_1 conda-forge xcb-util-image 0.4.0 h8ee46fc_1 conda-forge xcb-util-keysyms 0.4.0 h8ee46fc_1 conda-forge xcb-util-renderutil 0.3.9 hd590300_1 conda-forge xcb-util-wm 0.4.1 h8ee46fc_1 conda-forge xkeyboard-config 2.41 hd590300_0 conda-forge xorg-fixesproto 5.0 h7f98852_1002 conda-forge xorg-inputproto 2.3.2 h7f98852_1002 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.1.1 hd590300_0 conda-forge xorg-libsm 1.2.4 h7391055_0 conda-forge xorg-libx11 1.8.9 h8ee46fc_0 conda-forge xorg-libxau 1.0.11 hd590300_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h0b41bf4_2 conda-forge xorg-libxfixes 5.0.3 h7f98852_1004 conda-forge xorg-libxi 1.7.10 h7f98852_0 conda-forge xorg-libxinerama 1.1.5 h27087fc_0 conda-forge xorg-libxrender 0.9.11 hd590300_0 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h0b41bf4_1003 conda-forge xorg-xf86vidmodeproto 2.3.1 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.6 h166bdaf_0 conda-forge yaml-cpp 0.8.0 h59595ed_0 conda-forge yarp-matlab-bindings 3.9.1 h59595ed_120 robotology ycm-cmake-modules 0.16.2 h59595ed_0 conda-forge zlib 1.2.13 hd590300_5 conda-forge zstandard 0.22.0 py310h1275a96_0 conda-forge zstd 1.5.5 hfc55251_0 conda-forge

traversaro commented 2 months ago

Please read https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax on how to correctly format github comments (in particular use ~~~ blocks to contains the conda list output, thanks.

rcone11 commented 2 months ago

Please read https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax on how to correctly format github comments (in particular use ~~~ blocks to contains the conda list output, thanks.

I'm sorry for my ignorance and I didn't successfully compiled the /home/hablockfactory/example/matlab/BlockFactory.mexa64 file .


(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    conda-forge
alsa-lib                  1.2.11               hd590300_1    conda-forge
ampl-mp                   3.1.0             h2cc385e_1006    conda-forge
aom                       3.8.2                h59595ed_0    conda-forge
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
assimp                    5.3.1                h8343317_3    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
binutils                  2.40                 h4852527_0    conda-forge
binutils_impl_linux-64    2.40                 hf600244_0    conda-forge
binutils_linux-64         2.40                 hdade7a5_3    conda-forge
blockfactory              0.8.5              h59595ed_120    robotology
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py310hc6cd4ac_1    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.28.1               hd590300_0    conda-forge
c-compiler                1.7.0                hd590300_0    conda-forge
ca-certificates           2024.2.2             hbcca054_0    conda-forge
cairo                     1.18.0               h3faef2a_0    conda-forge
casadi                    3.6.5           py310h60ac289_0    conda-forge
casadi-matlab-bindings    3.6.3.1            h59595ed_120    robotology
certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
cffi                      1.16.0          py310h2fee648_0    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
cmake                     3.29.2               hcfe8598_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
compilers                 1.7.0                ha770c72_0    conda-forge
conda                     24.3.0          py310hff52083_0    conda-forge
conda-libmamba-solver     24.1.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
cxx-compiler              1.7.0                h00ab1b0_0    conda-forge
cython                    0.29.37         py310hc6cd4ac_0    conda-forge
dav1d                     1.2.1                hd590300_0    conda-forge
dbus                      1.13.6               h5008d03_3    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
eigen                     3.4.0                h00ab1b0_0    conda-forge
expat                     2.6.2                h59595ed_0    conda-forge
ffmpeg                    6.1.1           gpl_hee4b679_108    conda-forge
fmt                       10.2.1               h00ab1b0_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 h77eed37_1    conda-forge
fontconfig                2.14.2               h14ed4e7_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fortran-compiler          1.7.0                heb67821_0    conda-forge
freeglut                  3.2.2                hac7e632_2    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
fribidi                   1.0.10               h36c2ea0_0    conda-forge
gcc                       12.3.0               h915e2ae_6    conda-forge
gcc_impl_linux-64         12.3.0               h1562d66_6    conda-forge
gcc_linux-64              12.3.0               h6477408_3    conda-forge
gettext                   0.22.5               h59595ed_2    conda-forge
gettext-tools             0.22.5               h59595ed_2    conda-forge
gfortran                  12.3.0               h915e2ae_6    conda-forge
gfortran_impl_linux-64    12.3.0               h6d6b2fb_6    conda-forge
gfortran_linux-64         12.3.0               h617cb40_3    conda-forge
glfw                      3.4                  hd590300_0    conda-forge
glib                      2.80.0               hf2295e7_6    conda-forge
glib-tools                2.80.0               hde27a5a_6    conda-forge
gmp                       6.3.0                h59595ed_1    conda-forge
gnutls                    3.7.9                hb077bed_0    conda-forge
graphite2                 1.3.13            h59595ed_1003    conda-forge
gsl                       2.7                  he838d99_0    conda-forge
gst-plugins-base          1.24.1               hfa15dee_1    conda-forge
gstreamer                 1.24.1               h98fc4e7_1    conda-forge
gxx                       12.3.0               h915e2ae_6    conda-forge
gxx_impl_linux-64         12.3.0               h1562d66_6    conda-forge
gxx_linux-64              12.3.0               h4a1b8e8_3    conda-forge
harfbuzz                  8.3.0                h3d44ed6_0    conda-forge
hdf5                      1.14.3          nompi_h4f84152_100    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
icub-firmware-shared      1.38.0             h59595ed_120    robotology
icub-main                 2.5.0           py310hd29ae9e_120    robotology
icub-models               2.5.0           py310hc6cd4ac_0    conda-forge
idna                      3.6                pyhd8ed1ab_0    conda-forge
idyntree                  11.0.0          py310h3478c64_0    conda-forge
idyntree-matlab-bindings  10.3.0             h9f71af4_120    robotology
imath                     3.1.11               hfc55251_0    conda-forge
ipopt                     3.14.14              h04b96a2_1    conda-forge
irrlicht                  1.8.5                h2a6caf8_4    conda-forge
jasper                    4.2.3                he6dfbbe_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               2.4             py310hff52083_3    conda-forge
kernel-headers_linux-64   2.6.32              he073ed8_17    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.2               h659d440_0    conda-forge
lame                      3.100             h166bdaf_1003    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
lerc                      4.0.0                h27087fc_0    conda-forge
libabseil                 20240116.1      cxx17_h59595ed_2    conda-forge
libaec                    1.1.3                h59595ed_0    conda-forge
libarchive                3.7.2                h2aa1ff5_1    conda-forge
libasprintf               0.22.5               h661eb56_2    conda-forge
libasprintf-devel         0.22.5               h661eb56_2    conda-forge
libass                    0.17.1               h8fe9dca_1    conda-forge
libblas                   3.9.0           22_linux64_openblas    conda-forge
libboost                  1.84.0               h8013b2b_2    conda-forge
libcap                    2.69                 h0f662aa_0    conda-forge
libcblas                  3.9.0           22_linux64_openblas    conda-forge
libccd-double             2.1                  h59595ed_3    conda-forge
libclang-cpp15            15.0.7          default_h127d8a8_5    conda-forge
libclang13                18.1.3          default_h5d6823c_0    conda-forge
libcups                   2.3.3                h4637d8d_4    conda-forge
libcurl                   8.7.1                hca28451_0    conda-forge
libdc1394                 2.2.7                h59595ed_1    conda-forge
libdeflate                1.20                 hd590300_0    conda-forge
libdrm                    2.4.120              hd590300_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libevent                  2.1.12               hf998b51_1    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libflac                   1.4.3                h59595ed_0    conda-forge
libgcc-devel_linux-64     12.3.0             h2af2641_106    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    conda-forge
libgcrypt                 1.10.3               hd590300_0    conda-forge
libgettextpo              0.22.5               h59595ed_2    conda-forge
libgettextpo-devel        0.22.5               h59595ed_2    conda-forge
libgfortran-ng            13.2.0               h69a702a_6    conda-forge
libgfortran5              13.2.0               h43f5ff8_6    conda-forge
libglib                   2.80.0               hf2295e7_6    conda-forge
libglu                    9.0.0             hac7e632_1003    conda-forge
libgomp                   13.2.0               h807b86a_5    conda-forge
libgpg-error              1.48                 h71f35ed_0    conda-forge
libhwloc                  2.9.3           default_h554bfaf_1009    conda-forge
libi2c                    4.3                  hcb278e6_2    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libidn2                   2.3.7                hd590300_0    conda-forge
libjpeg-turbo             3.0.0                hd590300_1    conda-forge
liblapack                 3.9.0           22_linux64_openblas    conda-forge
liblapacke                3.9.0           22_linux64_openblas    conda-forge
libllvm15                 15.0.7               hb3ce162_4    conda-forge
libllvm18                 18.1.3               h2448989_0    conda-forge
libmamba                  1.5.8                had39da4_0    conda-forge
libmambapy                1.5.8           py310h39ff949_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libode                    0.16.2              hc6cd4ac_14    conda-forge
libogg                    1.3.4                h7f98852_1    conda-forge
libopenblas               0.3.27          pthreads_h413a1c8_0    conda-forge
libopencv                 4.9.0           qt5_py38h03d32d8_512    conda-forge
libopenvino               2024.0.0             h2da1b83_5    conda-forge
libopenvino-auto-batch-plugin 2024.0.0             hb045406_5    conda-forge
libopenvino-auto-plugin   2024.0.0             hb045406_5    conda-forge
libopenvino-hetero-plugin 2024.0.0             h5c03a75_5    conda-forge
libopenvino-intel-cpu-plugin 2024.0.0             h2da1b83_5    conda-forge
libopenvino-intel-gpu-plugin 2024.0.0             h2da1b83_5    conda-forge
libopenvino-ir-frontend   2024.0.0             h5c03a75_5    conda-forge
libopenvino-onnx-frontend 2024.0.0             h07e8aee_5    conda-forge
libopenvino-paddle-frontend 2024.0.0             h07e8aee_5    conda-forge
libopenvino-pytorch-frontend 2024.0.0             he02047a_5    conda-forge
libopenvino-tensorflow-frontend 2024.0.0             h39126c6_5    conda-forge
libopenvino-tensorflow-lite-frontend 2024.0.0             he02047a_5    conda-forge
libopus                   1.3.1                h7f98852_1    conda-forge
libosqp                   0.6.3                h59595ed_0    conda-forge
libpciaccess              0.18                 hd590300_0    conda-forge
libpng                    1.6.43               h2797004_0    conda-forge
libpq                     16.2                 h33b98f1_1    conda-forge
libprotobuf               4.25.3               h08a7969_0    conda-forge
libqdldl                  0.1.5                h27087fc_1    conda-forge
libsanitizer              12.3.0               h2af2641_6    conda-forge
libscotch                 7.0.4                h91e35bf_1    conda-forge
libsndfile                1.2.2                hc60ed4a_1    conda-forge
libsolv                   0.7.28               hfc55251_2    conda-forge
libspral                  2023.09.07           h6aa6db2_2    conda-forge
libsqlite                 3.45.2               h2797004_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx-devel_linux-64  12.3.0             h2af2641_106    conda-forge
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libsystemd0               255                  h3516f8a_1    conda-forge
libtasn1                  4.19.0               h166bdaf_0    conda-forge
libtiff                   4.6.0                h1dd3fc0_3    conda-forge
libudev1                  255                  h3f72095_1    conda-forge
libunistring              0.9.10               h7f98852_0    conda-forge
libusb                    1.0.27             h520f47e_100    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libuv                     1.48.0               hd590300_0    conda-forge
libva                     2.21.0               hd590300_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libvpx                    1.14.0               h59595ed_0    conda-forge
libwebp-base              1.4.0                hd590300_0    conda-forge
libxcb                    1.15                 h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxkbcommon              1.7.0                h662e7e4_0    conda-forge
libxml2                   2.12.6               h232c23b_1    conda-forge
libyarp                   3.9.0                ha614a09_2    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
make                      4.3                  hd18ef5c_1    conda-forge
mamba                     1.5.8           py310h51d5547_0    conda-forge
matlab-whole-body-simulator 3.3.0              h59595ed_120    robotology
menuinst                  2.0.2           py310hff52083_0    conda-forge
metis                     5.1.0             h59595ed_1007    conda-forge
mpg123                    1.32.6               h59595ed_0    conda-forge
mumps-include             5.6.2                ha770c72_4    conda-forge
mumps-seq                 5.6.2                hfef103a_4    conda-forge
mysql-common              8.3.0                hf1915f5_4    conda-forge
mysql-libs                8.3.0                hca2cd23_4    conda-forge
ncurses                   6.4.20240210         h59595ed_0    conda-forge
nettle                    3.9.1                h7ab15ed_0    conda-forge
ninja                     1.12.0               h00ab1b0_0    conda-forge
nspr                      4.35                 h27087fc_0    conda-forge
nss                       3.98                 h1d7d5a4_0    conda-forge
numpy                     1.26.4          py310hb13e2d6_0    conda-forge
ocl-icd                   2.3.2                hd590300_1    conda-forge
openexr                   3.2.2                haf962dd_1    conda-forge
openh264                  2.4.1                h59595ed_0    conda-forge
openssl                   3.2.1                hd590300_1    conda-forge
osqp-eigen                0.8.1                hdd734ac_1    conda-forge
osqp-matlab               0.6.2.4            hdd734ac_120    robotology
p11-kit                   0.24.1               hc5aa10d_0    conda-forge
packaging                 24.0               pyhd8ed1ab_0    conda-forge
pcre2                     10.43                hcad00b1_0    conda-forge
pip                       24.0               pyhd8ed1ab_0    conda-forge
pixman                    0.43.2               h59595ed_0    conda-forge
pkg-config                0.29.2            h36c2ea0_1008    conda-forge
platformdirs              4.2.0              pyhd8ed1ab_0    conda-forge
pluggy                    1.4.0              pyhd8ed1ab_0    conda-forge
portaudio                 19.6.0               h7c63dc7_9    conda-forge
proxsuite                 0.6.4           py310hd41b1e2_1    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
pugixml                   1.14                 h59595ed_0    conda-forge
pulseaudio-client         17.0                 hb77b528_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py310h2372a71_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.10.14         hd12c33a_0_cpython    conda-forge
python_abi                3.10                    4_cp310    conda-forge
qpoases                   3.2.1           py310h22287dc_2    conda-forge
qt-main                   5.15.8              hc9dc06e_21    conda-forge
readline                  8.2                  h8228510_1    conda-forge
reproc                    14.2.4.post0         hd590300_1    conda-forge
reproc-cpp                14.2.4.post0         h59595ed_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
rhash                     1.4.4                hd590300_0    conda-forge
robot-testing-framework   2.0.1                hcb278e6_1    conda-forge
ruamel.yaml               0.18.6          py310h2372a71_0    conda-forge
ruamel.yaml.clib          0.2.8           py310h2372a71_0    conda-forge
scipy                     1.13.0          py310hb13e2d6_0    conda-forge
scotch                    7.0.4                h23d43cc_1    conda-forge
sdl                       1.2.68               h293081c_0    conda-forge
sdl2                      2.30.2               hdbcbe63_0    conda-forge
setuptools                69.5.1             pyhd8ed1ab_0    conda-forge
simde                     0.8.0                h00ab1b0_0    conda-forge
snappy                    1.2.0                hdb0a2a9_1    conda-forge
soxr                      0.1.3                h0b41bf4_3    conda-forge
svt-av1                   2.0.0                h59595ed_0    conda-forge
sysroot_linux-64          2.12                he073ed8_17    conda-forge
tbb                       2021.11.0            h00ab1b0_1    conda-forge
tinyxml                   2.6.2                h4bd325d_2    conda-forge
tinyxml2                  10.0.0               h59595ed_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tqdm                      4.66.2             pyhd8ed1ab_0    conda-forge
truststore                0.8.0              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
unixodbc                  2.3.12               h661eb56_0    conda-forge
urllib3                   2.2.1              pyhd8ed1ab_0    conda-forge
wayland                   1.22.0               h8c25dac_1    conda-forge
wb-toolbox                5.6.1              h9f71af4_120    robotology
wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
whole-body-controllers    2.5.6              h59595ed_120    robotology
x264                      1!164.3095           h166bdaf_2    conda-forge
x265                      3.5                  h924138e_3    conda-forge
xcb-util                  0.4.0                hd590300_1    conda-forge
xcb-util-image            0.4.0                h8ee46fc_1    conda-forge
xcb-util-keysyms          0.4.0                h8ee46fc_1    conda-forge
xcb-util-renderutil       0.3.9                hd590300_1    conda-forge
xcb-util-wm               0.4.1                h8ee46fc_1    conda-forge
xkeyboard-config          2.41                 hd590300_0    conda-forge
xorg-fixesproto           5.0               h7f98852_1002    conda-forge
xorg-inputproto           2.3.2             h7f98852_1002    conda-forge
xorg-kbproto              1.0.7             h7f98852_1002    conda-forge
xorg-libice               1.1.1                hd590300_0    conda-forge
xorg-libsm                1.2.4                h7391055_0    conda-forge
xorg-libx11               1.8.9                h8ee46fc_0    conda-forge
xorg-libxau               1.0.11               hd590300_0    conda-forge
xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
xorg-libxext              1.3.4                h0b41bf4_2    conda-forge
xorg-libxfixes            5.0.3             h7f98852_1004    conda-forge
xorg-libxi                1.7.10               h7f98852_0    conda-forge
xorg-libxinerama          1.1.5                h27087fc_0    conda-forge
xorg-libxrender           0.9.11               hd590300_0    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h0b41bf4_1003    conda-forge
xorg-xf86vidmodeproto     2.3.1             h7f98852_1002    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
yarp-matlab-bindings      3.9.1              h59595ed_120    robotology
ycm-cmake-modules         0.16.2               h59595ed_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstandard                 0.22.0          py310h1275a96_0    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge
rcone11 commented 2 months ago

Please read https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax on how to correctly format github comments (in particular use ~~~ blocks to contains the conda list output, thanks.

I'm sorry to bother you again sir, but could you help me to check my problems in your free time

traversaro commented 2 months ago

If compiling BlockFactory.mexa64 did not succeeded, can you report which commands did you used to try to compile it and what are the errors you encountered?

rcone11 commented 2 months ago

If compiling BlockFactory.mexa64 did not succeeded, can you report which commands did you used to try to compile it and what are the errors you encountered?

sir, I compiled the BlockFactory.mexa64 file by Matlab and the error is "MEX level2 S-function "BlockFactory" must be called with at least 4 input arguments." when I run the model.mdl here is the error displayed.

Error while obtaining sizes from MEX S-function 'BlockFactory in "odel/w// mask'Caused by:
MEX file "/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBlockFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory
Component:Simulink | Category:Model error
Error while obtaining sizes from MEX S-function 'BlockFacto!y in 'Model/w//o mask'.Caused by:
MEX file '/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBleckFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory.
traversaro commented 2 months ago

If compiling BlockFactory.mexa64 did not succeeded, can you report which commands did you used to try to compile it and what are the errors you encountered?

sir, I compiled the BlockFactory.mexa64 file by Matlab and the error is "MEX level2 S-function "BlockFactory" must be called with at least 4 input arguments."

Which command(s) did you use to compile the BlockFactory.mexa64 file?

rcone11 commented 2 months ago

If compiling BlockFactory.mexa64 did not succeeded, can you report which commands did you used to try to compile it and what are the errors you encountered?

sir, I compiled the BlockFactory.mexa64 file by Matlab and the error is "MEX level2 S-function "BlockFactory" must be called with at least 4 input arguments."

Which command(s) did you use to compile the BlockFactory.mexa64 file?

I run files by right-clicking with the mouse and then selecting "Run".

traversaro commented 2 months ago

Sorry, I am not sure what which files you mean and in which program are you right-clicking them. Sorry for the direct question, are you familiar with what "compilation" means in C/C++?

rcone11 commented 2 months ago

Sorry, I am not sure what which files you mean and in which program are you right-clicking them. Sorry for the direct question, are you familiar with what "compilation" means in C/C++?

I run BlockFactory.mexa64 files by right-clicking with the mouse and then selecting "Run" in Matlab. Then,error occured

 "MEX level2 S-function "BlockFactory" must be called with at least 4 input arguments."
traversaro commented 2 months ago

You can't run BlockFactory.mexa64 by itself, the BlockFactory.mexa64 is meant to be insert in an existing Simulink model and run that one. However, I am still confused with the "I didn't compiled the BlockFactory.mexa64 succeed" sentence.

Can you answer to the question:

Sorry for the direct question, are you familiar with what "compilation" means in C/C++?

Thanks!

rcone11 commented 2 months ago

You can't run by itself, the is meant to be insert in an existing Simulink model and run that one. However, I am still confused with the "I didn't compiled the BlockFactory.mexa64 succeed" sentence.BlockFactory.mexa64``BlockFactory.mexa64

Can you answer to the question:

Sorry for the direct question, are you familiar with what "compilation" means in C/C++?

Thanks!

Sir according to my understanding, "compiling" refers to the process of translating source code written in C or C++ into machine-readable binary code.

traversaro commented 2 months ago

Ok, so if you have have the BlockFactory.mexa64 file, you indeed compiled it, is that correct? How did you compiled it?

rcone11 commented 2 months ago

Ok, so if you have have the BlockFactory.mexa64 file, you indeed compiled it, is that correct? How did you compiled it?

I tried to run the model.mdl which located in the example folder but, some errors occurred here is the error displayed.

Error while obtaining sizes from MEX S-function 'BlockFactory in "odel/w// mask'Caused by:
MEX file "/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBlockFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory
Component:Simulink | Category:Model error
Error while obtaining sizes from MEX S-function 'BlockFacto!y in 'Model/w//o mask'.Caused by:
MEX file '/home/han/blockfactory/example/matlab/BlockFactory.mexa64' invalid:libBleckFactoryCore.so.0.8.5: cannot open shared object file : No such file or directory.
traversaro commented 2 months ago

Running the model.mdl is something that needs to bedone after you compiled the BlockFactory.mexa64 file. I am asking how you compiled (i.e. created) the BlockFactory.mexa64 file.

rcone11 commented 2 months ago

Running the model.mdl is something that needs to bedone after you compiled the BlockFactory.mexa64 file. I am asking how you compiled (i.e. created) the BlockFactory.mexa64 file.

sorry sir, I found BlockFactory.mexa64 in /home/han/miniforge3/mex/BlockFactory.mexa64, I'm now very confused about how should I do to compile a block correctly.

traversaro commented 2 months ago

Running the model.mdl is something that needs to bedone after you compiled the BlockFactory.mexa64 file. I am asking how you compiled (i.e. created) the BlockFactory.mexa64 file.

sorry sir, I found BlockFactory.mexa64 in /home/han/miniforge3/mex/BlockFactory.mexa64, I'm now very confused about how should I do to compile a block correctly.

Ah, so you found that file in /home/han/miniforge3/mex/ and copied it in /home/han/blockfactory/example/matlab/ ? Why did you did that? Please delete it from /home/han/blockfactory/example/matlab/ and do not manually touch, move or copy the files in /home/han/miniforge3.

To clarify, that file was not compiled by you, but are compiled by the Continuous Integration systems when they prepare the conda blockfactory package.

traversaro commented 2 months ago

Sorry, I just read that you wrote that in the original comment:

my BlockFactory.mexa64 file address is /home/han/miniforge3/mex/BlockFactory.mexa64.But my model.mdl file address is /home/han/blockfactory/example/matlab/model.mdl.To ensure that these two files are in the same folder,I copied the BlockFactory.mexa64 file to the /home/han/blockfactory/example/matlab/BlockFactory.mexa64

My bad, I did not read it correctly. Anyhow, please delete the BlockFactory.mexa64 file from /home/han/blockfactory/example/matlab/ and follow the instructions in https://robotology.github.io/blockfactory/mkdocs/create_new_library/ to compile the example. Note that if you are on Windows, you will need to:

rcone11 commented 2 months ago

I have deleted the BlockFactory.mexa64 file from /home/han/blockfactory/example/matlab/,then I run the model.mdl but now but I got the following errors in Simulink:

Error:Error reported by S-function 'BlockFactory' in 'Model/w// mask': Failed to create factory Factory error (2): ExampleToolbox: cannot open shared object file: No such file or directory Failed to get factory object (className=SignalMath,libName=ExampleToolbox) Failed to get the factory 

Error:Error reported by S-function 'BlockFactory' in 'Model/w//o mask': Failed to create factory Factory error (2): ExampleToolbox: cannot open shared object file: No such file or directory Failed to get factory object (className=SignalMath,libName=ExampleToolbox) Failed to get the factory 

then I followed this command in #70 blockfactory-exists ExampleToolbox SignalMath to check, and the output:

SUCCESS: Block "SignalMath" found and loaded from plugin "ExampleToolbox".

In addition, I'm on Ubuntu 20.04.6 and my current path in Matlab is /home/han/miniforge3/mex, and the model.mdl is in /home/han/blockfactory/example/matlab, what should I do to solve the problem? thanks

traversaro commented 2 months ago

As I mentioned before:

follow the instructions in the "Compiling instructions" section https://robotology.github.io/blockfactory/mkdocs/create_new_library/ to compile the example

as you are in linux, the compilers can be installed via conda:

conda install cmake pkg-config ninja make compilers
rcone11 commented 2 months ago

As I mentioned before:

follow the instructions in the "Compiling instructions" section https://robotology.github.io/blockfactory/mkdocs/create_new_library/ to compile the example

as you are in linux, the compilers can be installed via conda:

conda install cmake pkg-config ninja make compilers

yes professor,I follow the steps and I have executed this command.conda install cmake pkg-config ninja make compilers,but errors still exist

rcone11 commented 2 months ago

dear professor,I still encounter this problem:

Error reported by S-function 'BlockFactory' in 'Model/w// mask':
Failed to create factory
Factory error (2): ExampleToolbox: cannot open shared object file: No such file or directory
Failed to get factory object (className=SignalMath,libName=ExampleToolbox)
Failed to get the factory
Component:Simulink | Category:Model error
Error reported by S-function 'BlockFactory' in 'Model/w//o mask':
Failed to create factory
Factory error (2): ExampleToolbox: cannot open shared object file: No such file or directory
Failed to get factory object (className=SignalMath,libName=ExampleToolbox)
Failed to get the factory

I read #70 try to solve my problem and I set export BLOCKFACTORY_PLUGIN_PATH=$BLOCKFACTORY_PLUGIN_PATH:/home/han/miniforge3/mex I enter the following code blockfactory-exists ExampleToolbox SignalMath and the output is ERROR: Failed to get factory object (blockName=SignalMath,pluginName=ExampleTool I read #61 to check my WB-Toolbox is installed correctly and BLOCKFACTORY_PLUGIN_PATH is set correctly. this are the output

(base) han@han-System-Product-Name:~$ blockfactory-exists WBToolbox ForwardKinematics
SUCCESS: Block "ForwardKinematics" found and loaded from plugin "WBToolbox".
(base) han@han-System-Product-Name:~$ echo $?
0
(base) han@han-System-Product-Name:~$  blockfactory-exists WBToolbox BlockThatDoesNotExists
ERROR: Failed to get factory object (blockName=BlockThatDoesNotExists,pluginName=WBToolbox)(base) han@han-System-Product-Name:~$ echo $?
1

so, now I want to know how should I do to run the model.mdl successful @traversaro thanks