robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
177 stars 67 forks source link

Error - SDL_SetWindowResizable missing in SDL2 library #1052

Closed G-Cervettini closed 1 year ago

G-Cervettini commented 1 year ago

I'm trying to run these MATLAB lines of code on Windows:

robotName='iCubGenova09'; %% Name of the robot

meshFilePrefix = [getenv('ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX') '/share']; %% Path to the model meshes
modelPath = [getenv('ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX') '/share/iCub/robots/' robotName '/'];  %% Path to the robot model

fileName='model.urdf'; %% Name of the urdf file
gravityAcceleration = 9.80665;
% 
world_H_base = eye(4);
KinDynModel = iDynTreeWrappers.loadReducedModel(robot_logger_device.description_list, 'root_link', modelPath, fileName, false);

and i'm getting the following error:

image

This is the Command Window output:

[loadReducedModel]: loading the following model: C:\Users\gcervettini\robotology-superbuild\build\install/share/iCub/robots/iCubGenova09/model.urdf
Invalid MEX-file 'C:\Users\gcervettini\robotology-superbuild\build\install\mex\iDynTreeMEX.mexw64': A dynamic
link library (DLL) initialization routine failed.

Error in iDynTree.StringVector (line 57)
        tmp = iDynTreeMEX(36, varargin{:});

Error in iDynTreeWrappers.loadReducedModel (line 37)
    jointList_idyntree     = iDynTree.StringVector();

The dependencies have been installed with conda. The robotology-superbuild has been built again today.

this is my conda environment:

(robsub) C:\Users\gcervettini>mamba list
packages in environment at C:\Users\gcervettini\AppData\Local\mambaforge\envs\robsub:

Name                    Version                   Build  Channel
ace                       7.0.8                h0e60522_0    conda-forge
asio                      1.22.1               h0e60522_0    conda-forge
assimp                    5.2.4                hc2aa0de_0    conda-forge
blosc                     1.21.1               h74325e0_3    conda-forge
boost                     1.74.0          py310hc781a3c_5    conda-forge
boost-cpp                 1.74.0               h9f4b32c_8    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
c-compiler                1.4.2                h8ffe710_0    conda-forge
ca-certificates           2022.6.15            h5b45459_0    conda-forge
cairo                     1.16.0            h0ac17fb_1011    conda-forge
cfitsio                   4.1.0                h5a969a9_0    conda-forge
clangdev                  5.0.0                   flang_3    conda-forge
cmake                     3.23.2               h39d44d4_0    conda-forge
compilers                 1.4.2                h57928b3_0    conda-forge
console_bridge            1.0.2                h5362a0b_1    conda-forge
cppzmq                    4.8.1                h4324990_0    conda-forge
curl                      7.83.1               h789b8ee_0    conda-forge
cxx-compiler              1.4.2                h2d74725_0    conda-forge
dirent                    1.21                          0    conda-forge
dlfcn-win32               1.3.0                h0e60522_0    conda-forge
eigen                     3.4.0                h2d74725_0    conda-forge
expat                     2.4.8                h39d44d4_0    conda-forge
ffmpeg                    4.3.1                ha925a31_0    conda-forge
flang                     5.0.0           he025d50_20180525    conda-forge
flang_win-64              5.0.0           h13ae965_20180526    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                 hab24e00_0    conda-forge
fontconfig                2.14.0               hce3cb01_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fortran-compiler          1.4.2                h9655429_0    conda-forge
freeglut                  3.2.2                h0e60522_1    conda-forge
freeimage                 3.18.0               h6676e37_9    conda-forge
freetype                  2.10.4               h546665d_1    conda-forge
freexl                    1.0.6                ha8e266a_0    conda-forge
fribidi                   1.0.10               h8d14728_0    conda-forge
gazebo                    11.11.0              hfac46e6_7    conda-forge
geos                      3.11.0               h39d44d4_0    conda-forge
geotiff                   1.7.1                h714bc5f_3    conda-forge
getopt-win32              0.1                  h8ffe710_0    conda-forge
gettext                   0.19.8.1          ha2e2712_1008    conda-forge
glew                      2.1.0                h39d44d4_2    conda-forge
glfw                      3.3.7                h8ffe710_0    conda-forge
glib                      2.72.1               h7755175_0    conda-forge
glib-tools                2.72.1               h7755175_0    conda-forge
glm                       0.9.9.4              h5362a0b_2    conda-forge
graphite2                 1.3.13                     1000    conda-forge
graphviz                  2.50.0               had6c3a3_3    conda-forge
gsl                       2.7                  hdfb1a43_0    conda-forge
gst-plugins-base          1.20.3               he07aa86_0    conda-forge
gstreamer                 1.20.3               hdff456e_0    conda-forge
gts                       0.7.6                h7c369d9_2    conda-forge
harfbuzz                  4.4.1                h27de254_0    conda-forge
hdf4                      4.2.15               h0e5069d_3    conda-forge
hdf5                      1.12.1          nompi_h2a0e4a3_104    conda-forge
icu                       70.1                 h0e60522_0    conda-forge
imath                     3.1.5                h12d4b20_0    conda-forge
intel-openmp              2022.1.0          h57928b3_3787    conda-forge
ipopt                     3.14.7               h99cadeb_1    conda-forge
irrlicht                  1.8.5                h739eaf8_2    conda-forge
jasper                    2.0.33               h77af90b_0    conda-forge
jpeg                      9e                   h8ffe710_2    conda-forge
jsoncpp                   1.9.5                h2d74725_1    conda-forge
jxrlib                    1.1                  h8ffe710_2    conda-forge
kealib                    1.4.15               h8995ca9_0    conda-forge
krb5                      1.19.3               h1176d77_0    conda-forge
lcms2                     2.12                 h2a16943_0    conda-forge
lerc                      3.0                  h0e60522_0    conda-forge
libblas                   3.9.0              15_win64_mkl    conda-forge
libcblas                  3.9.0              15_win64_mkl    conda-forge
libccd-double             2.1                  h0e60522_3    conda-forge
libclang                  14.0.6          default_h77d9078_0    conda-forge
libclang13                14.0.6          default_h77d9078_0    conda-forge
libcurl                   7.83.1               h789b8ee_0    conda-forge
libdeflate                1.12                 h8ffe710_0    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libflang                  5.0.0           h6538335_20180525    conda-forge
libgd                     2.3.3                h891f43f_3    conda-forge
libgdal                   3.5.1                h7a56975_1    conda-forge
libglib                   2.72.1               h3be07f2_0    conda-forge
libiconv                  1.16                 he774522_0    conda-forge
libignition-cmake2        2.12.1               h0e60522_0    conda-forge
libignition-common3       3.13.2               h9bd54ec_2    conda-forge
libignition-fuel-tools4   4.4.0                h3fac903_7    conda-forge
libignition-math6         6.11.0          py310h62d8b2e_1    conda-forge
libignition-msgs5         5.9.0                hc835698_0    conda-forge
libignition-tools1        1.4.1                h0e60522_2    conda-forge
libignition-transport8    8.1.0               h819de12_11    conda-forge
libjpeg-turbo             2.1.3                h8ffe710_0    conda-forge
libkml                    1.3.0             h9859afa_1014    conda-forge
liblapack                 3.9.0              15_win64_mkl    conda-forge
liblapacke                3.9.0              15_win64_mkl    conda-forge
libmatio                  1.5.23               hc273f65_0    conda-forge
libnetcdf                 4.8.1           nompi_h1cc8e9d_102    conda-forge
libode                    0.16.2              h8a704f9_10    conda-forge
libogg                    1.3.4                h8ffe710_1    conda-forge
libopenblas               0.3.20          pthreads_hc469a61_0    conda-forge
libopencv                 4.5.5           py310he958ad5_13    conda-forge
libpng                    1.6.37               h1d00b33_3    conda-forge
libpq                     14.4                 hfcc5ef8_0    conda-forge
libprotobuf               3.20.1               h7755175_0    conda-forge
libraw                    0.20.2               hee1bdec_1    conda-forge
librttopo                 1.1.0               h2842628_11    conda-forge
libsdformat               9.8.0                h0e60522_1    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libspatialite             5.0.1               ha17912d_18    conda-forge
libssh2                   1.10.0               h680486a_2    conda-forge
libtiff                   4.4.0                h2ed3b44_1    conda-forge
libusb                    1.0.26             h8ffe710_100    conda-forge
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp                   1.2.2                h57928b3_0    conda-forge
libwebp-base              1.2.2                h8ffe710_1    conda-forge
libxcb                    1.13              hcd874cb_1004    conda-forge
libxml2                   2.9.14               hf5bbc77_3    conda-forge
libzip                    1.9.2                hfed4ece_0    conda-forge
libzlib                   1.2.12               h8ffe710_1    conda-forge
llvm-meta                 5.0.0                         0    conda-forge
lua                       5.4.4                h57928b3_0    conda-forge
lz4-c                     1.9.3                h8ffe710_1    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6    conda-forge
m2w64-gcc-libs            5.3.0                         7    conda-forge
m2w64-gcc-libs-core       5.3.0                         7    conda-forge
m2w64-gmp                 6.1.0                         2    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    conda-forge
make                      4.3                  h3d2af85_1    conda-forge
metis                     5.1.0             h0e60522_1006    conda-forge
mkl                       2022.1.0           h6a75c08_874    conda-forge
msys2-conda-epoch         20160418                      1    conda-forge
mumps-seq                 5.2.1               hb3f9cae_11    conda-forge
ninja                     1.11.0               h2d74725_0    conda-forge
nlohmann_json             3.10.5               h39d44d4_1    conda-forge
numpy                     1.23.1          py310h8a5b91a_0    conda-forge
ogre                      1.10.12              hab73eff_9    conda-forge
openal-soft               1.22.2               h2d74725_0    conda-forge
openblas                  0.3.20          pthreads_h543f93c_0    conda-forge
opencv                    4.5.5           py310h5588dad_13    conda-forge
openexr                   3.1.5                hab3b255_0    conda-forge
openjpeg                  2.4.0                hb211442_1    conda-forge
openmp                    5.0.0                    vc14_1    conda-forge
openssl                   1.1.1q               h8ffe710_0    conda-forge
pango                     1.50.8               h66df5b2_0    conda-forge
pcre                      8.45                 h0e60522_0    conda-forge
pip                       22.1.2             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               h8ffe710_0    conda-forge
pkg-config                0.29.2            h2bf4dc2_1008    conda-forge
poppler                   22.04.0              h24fffdf_1    conda-forge
poppler-data              0.4.11               hd8ed1ab_0    conda-forge
portaudio                 19.6.0               h0e60522_5    conda-forge
postgresql                14.4                 h1c22c4f_0    conda-forge
proj                      9.0.1                h1cfcee9_1    conda-forge
pthread-stubs             0.4               hcd874cb_1001    conda-forge
pugixml                   1.11.4               h0e60522_0    conda-forge
py-opencv                 4.5.5           py310hbbfc1a7_13    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
python                    3.10.5          h9a09f29_0_cpython    conda-forge
python_abi                3.10                    2_cp310    conda-forge
qt-main                   5.15.4               h467ea89_2    conda-forge
qwt                       6.2.0                h2db317d_4    conda-forge
ruby                      2.7.2                h1d9c0f5_8    conda-forge
sdl                       1.2.52               h0e60522_1    conda-forge
sdl2                      2.0.22               h0e60522_1    conda-forge
setuptools                63.1.0          py310h5588dad_0    conda-forge
simbody                   3.7                  hade3207_3    conda-forge
snappy                    1.1.9                h82413e6_1    conda-forge
soxr                      0.1.3                h8ffe710_2    conda-forge
spdlog                    1.10.0               h2d74725_0    conda-forge
sqlite                    3.39.0               h8ffe710_0    conda-forge
tbb                       2021.5.0             h2d74725_1    conda-forge
tbb-devel                 2021.5.0             h2d74725_1    conda-forge
tiledb                    2.9.5                h5689973_0    conda-forge
tiny-process-library      2.0.4                h0e60522_0    conda-forge
tinyxml                   2.6.2                h2d74725_2    conda-forge
tinyxml2                  9.0.0                h0e60522_2    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
tzdata                    2022a                h191b570_0    conda-forge
ucrt                      10.0.20348.0         h57928b3_0    conda-forge
urdfdom                   3.1.0                h0e60522_0    conda-forge
urdfdom_headers           1.1.0                h5362a0b_0    conda-forge
vc                        14.2                 hb210afc_6    conda-forge
vs2015_runtime            14.29.30037          h902a5da_6    conda-forge
vs2017_win-64             19.16.27033          hb90652a_6    conda-forge
vswhere                   3.0.3                h57928b3_0    conda-forge
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
xerces-c                  3.2.3                h0e60522_5    conda-forge
xorg-kbproto              1.0.7             hcd874cb_1002    conda-forge
xorg-libice               1.0.10               hcd874cb_0    conda-forge
xorg-libsm                1.2.3             hcd874cb_1000    conda-forge
xorg-libx11               1.7.2                hcd874cb_0    conda-forge
xorg-libxau               1.0.9                hcd874cb_0    conda-forge
xorg-libxdmcp             1.1.3                hcd874cb_0    conda-forge
xorg-libxext              1.3.4                hcd874cb_1    conda-forge
xorg-libxpm               3.5.13               hcd874cb_0    conda-forge
xorg-libxt                1.2.1                hcd874cb_2    conda-forge
xorg-xextproto            7.3.0             hcd874cb_1002    conda-forge
xorg-xproto               7.0.31            hcd874cb_1007    conda-forge
xz                        5.2.5                h62dcd97_1    conda-forge
yaml                      0.2.5                h8ffe710_2    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zlib                      1.2.12               h8ffe710_1    conda-forge
zstd                      1.5.2                h6255e5f_2    conda-forge
zziplib                   0.13.69              h1d00b33_1    conda-forge

sdl2 is present. What could be the problem?

traversaro commented 1 year ago

See https://github.com/robotology/idyntree/issues/985 for a debug of the issue and a workaround. Can you provide the output of ver command in your system?

G-Cervettini commented 1 year ago

@traversaro here the output:

>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.12.0.1975300 (R2022a) Update 3
MATLAB License Number: 40875934
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19042)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 9.12        (R2022a)
Simulink                                              Version 10.5        (R2022a)
5G Toolbox                                            Version 2.4         (R2022a)
AUTOSAR Blockset                                      Version 2.6         (R2022a)
Aerospace Blockset                                    Version 5.2         (R2022a)
Aerospace Toolbox                                     Version 4.2         (R2022a)
Antenna Toolbox                                       Version 5.2         (R2022a)
Audio Toolbox                                         Version 3.2         (R2022a)
Automated Driving Toolbox                             Version 3.5         (R2022a)
Bioinformatics Toolbox                                Version 4.16        (R2022a)
Bluetooth Toolbox                                     Version 1.0         (R2022a)
Communications Toolbox                                Version 7.7         (R2022a)
Computer Vision Toolbox                               Version 10.2        (R2022a)
Control System Toolbox                                Version 10.11.1     (R2022a)
Curve Fitting Toolbox                                 Version 3.7         (R2022a)
DDS Blockset                                          Version 1.2         (R2022a)
DSP HDL Toolbox                                       Version 1.0         (R2022a)
DSP System Toolbox                                    Version 9.14        (R2022a)
Data Acquisition Toolbox                              Version 4.5         (R2022a)
Database Toolbox                                      Version 10.3        (R2022a)
Datafeed Toolbox                                      Version 6.2         (R2022a)
Deep Learning HDL Toolbox                             Version 1.3         (R2022a)
Deep Learning Toolbox                                 Version 14.4        (R2022a)
Econometrics Toolbox                                  Version 6.0         (R2022a)
Embedded Coder                                        Version 7.8         (R2022a)
Filter Design HDL Coder                               Version 3.1.11      (R2022a)
Financial Instruments Toolbox                         Version 3.4         (R2022a)
Financial Toolbox                                     Version 6.3         (R2022a)
Fixed-Point Designer                                  Version 7.4         (R2022a)
Fuzzy Logic Toolbox                                   Version 2.9         (R2022a)
GPU Coder                                             Version 2.3         (R2022a)
Global Optimization Toolbox                           Version 4.7         (R2022a)
HDL Coder                                             Version 3.20        (R2022a)
HDL Verifier                                          Version 6.5         (R2022a)
Image Acquisition Toolbox                             Version 6.6         (R2022a)
Image Processing Toolbox                              Version 11.5        (R2022a)
Industrial Communication Toolbox                      Version 6.0         (R2022a)
Instrument Control Toolbox                            Version 4.6         (R2022a)
LTE Toolbox                                           Version 3.7         (R2022a)
Lidar Toolbox                                         Version 2.1         (R2022a)
MATLAB Coder                                          Version 5.4         (R2022a)
MATLAB Compiler                                       Version 8.4         (R2022a)
MATLAB Compiler SDK                                   Version 7.0         (R2022a)
MATLAB Report Generator                               Version 5.12        (R2022a)
Mapping Toolbox                                       Version 5.3         (R2022a)
Mixed-Signal Blockset                                 Version 2.2         (R2022a)
Model Predictive Control Toolbox                      Version 7.3         (R2022a)
Model-Based Calibration Toolbox                       Version 5.12        (R2022a)
Motor Control Blockset                                Version 1.4         (R2022a)
Navigation Toolbox                                    Version 2.2         (R2022a)
Optimization Toolbox                                  Version 9.3         (R2022a)
Parallel Computing Toolbox                            Version 7.6         (R2022a)
Partial Differential Equation Toolbox                 Version 3.8         (R2022a)
Phased Array System Toolbox                           Version 4.7         (R2022a)
Powertrain Blockset                                   Version 1.11        (R2022a)
Predictive Maintenance Toolbox                        Version 2.5         (R2022a)
RF Blockset                                           Version 8.3         (R2022a)
RF PCB Toolbox                                        Version 1.1         (R2022a)
RF Toolbox                                            Version 4.3         (R2022a)
ROS Toolbox                                           Version 1.5         (R2022a)
Radar Toolbox                                         Version 1.2         (R2022a)
Reinforcement Learning Toolbox                        Version 2.2         (R2022a)
Requirements Toolbox                                  Version 2.0         (R2022a)
Risk Management Toolbox                               Version 2.0         (R2022a)
Robotics System Toolbox                               Version 4.0         (R2022a)
Robust Control Toolbox                                Version 6.11.1      (R2022a)
Satellite Communications Toolbox                      Version 1.2         (R2022a)
Sensor Fusion and Tracking Toolbox                    Version 2.3         (R2022a)
SerDes Toolbox                                        Version 2.3         (R2022a)
Signal Integrity Toolbox                              Version 1.1         (R2022a)
Signal Processing Toolbox                             Version 9.0         (R2022a)
SimBiology                                            Version 6.3         (R2022a)
SimEvents                                             Version 5.11        (R2022a)
Simscape                                              Version 5.3         (R2022a)
Simscape Driveline                                    Version 3.5         (R2022a)
Simscape Electrical                                   Version 7.7         (R2022a)
Simscape Fluids                                       Version 3.4         (R2022a)
Simscape Multibody                                    Version 7.5         (R2022a)
Simulink 3D Animation                                 Version 9.4         (R2022a)
Simulink Check                                        Version 6.0         (R2022a)
Simulink Code Inspector                               Version 4.1         (R2022a)
Simulink Coder                                        Version 9.7         (R2022a)
Simulink Compiler                                     Version 1.4         (R2022a)
Simulink Control Design                               Version 6.1         (R2022a)
Simulink Coverage                                     Version 5.4         (R2022a)
Simulink Design Optimization                          Version 3.11        (R2022a)
Simulink Design Verifier                              Version 4.7         (R2022a)
Simulink Desktop Real-Time                            Version 5.14        (R2022a)
Simulink PLC Coder                                    Version 3.6         (R2022a)
Simulink Real-Time                                    Version 8.0         (R2022a)
Simulink Report Generator                             Version 5.12        (R2022a)
Simulink Test                                         Version 3.6         (R2022a)
SoC Blockset                                          Version 1.6         (R2022a)
Spreadsheet Link                                      Version 3.4.7       (R2022a)
Stateflow                                             Version 10.6        (R2022a)
Statistics and Machine Learning Toolbox               Version 12.3        (R2022a)
Symbolic Math Toolbox                                 Version 9.1         (R2022a)
System Composer                                       Version 2.2         (R2022a)
System Identification Toolbox                         Version 9.16        (R2022a)
Text Analytics Toolbox                                Version 1.8.1       (R2022a)
UAV Toolbox                                           Version 1.3         (R2022a)
Vehicle Dynamics Blockset                             Version 1.8         (R2022a)
Vehicle Network Toolbox                               Version 5.2         (R2022a)
Vision HDL Toolbox                                    Version 2.5         (R2022a)
WLAN Toolbox                                          Version 3.4         (R2022a)
Wavelet Toolbox                                       Version 6.1         (R2022a)
Wireless HDL Toolbox                                  Version 2.4         (R2022a)
Wireless Testbench                                    Version 1.0         (R2022a)
>> ersion 1.3         (R2022a)
Vehicle Dynamics Blockset                             Version 1.8         (R2022a)
Vehicle Network Toolbox                               Version 5.2         (R2022a)
Vision HDL Toolbox                                    Version 2.5         (R2022a)
WLAN Toolbox                                          Version 3.4         (R2022a)
Wavelet Toolbox                                       Version 6.1         (R2022a)
Wireless HDL Toolbox                                  Version 2.4         (R2022a)
Wireless Testbench                                    Version 1.0         (R2022a)
G-Cervettini commented 1 year ago

See #985 for a debug of the issue and a workaround. This solved the issue, thank you. Closing as completed.