Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile Python bindings #947

Closed
S-Dafarra opened this issue Feb 29, 2024 · 13 comments
Closed

Failed to compile Python bindings #947

S-Dafarra opened this issue Feb 29, 2024 · 13 comments
Assignees

Comments

@S-Dafarra
Copy link
Contributor

Bug description

I am trying to compile ICUB with the Python bindings but I get the following error

(robsub) C:\Software\robotology-superbuild\build\src\ICUB>cmake --build . --config Release --target INSTALL
MSBuild version 17.8.5+b5265ef37 for .NET Framework

  1>Checking Build System
  Automatic MOC for target QtICubSkinGuiPlugin
  Fingertip4Left.cpp
  Fingertip4Right.cpp
  FingertipMID.cpp
  fakePalm.cpp
  qticubskinguiplugin.cpp
  qticubskinguiplugin_plugin.cpp
  SkinMeshThreadCan.cpp
  SkinMeshThreadPort.cpp
  mocs_compilation_Release.cpp
  Generating Code...
     Creating library C:/Software/robotology-superbuild/build/src/ICUB/lib/qt5/qml/Release/robotology/icub/skingui/QtICubSkinGuiPlugin.lib and object C:/Software/robotology-superbuild/build/src/ICUB/lib/qt5/qml/Releas
  e/robotology/icub/skingui/QtICubSkinGuiPlugin.exp
  QtICubSkinGuiPlugin.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\qt5\qml\Release\robotology\icub\skingui\QtICubSkinGuiPlugin.dll
  ctrlLib.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\Release\ctrlLib.lib
  iKin.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\Release\iKin.lib
  Taxel.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/Taxel.cpp')

  common.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/common.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\common.cpp(83,27): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\build\s
rc\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
  dynContact.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/dynContact.cpp')

  dynContactList.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/dynContactList.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\dynContactList.cpp(58,32): warning C4267: 'argument': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Software\robotology-superb
uild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
  iCubSkin.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/iCubSkin.cpp')

  skinContact.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/skinContact.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinContact.cpp(41,59): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-
superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinContact.cpp(46,59): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-
superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinContact.cpp(52,60): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-
superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinContact.cpp(94,29): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbuild\
build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
  skinContactList.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/skinContactList.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinContactList.cpp(85,32): warning C4267: 'argument': conversion from 'size_t' to 'int32_t', possible loss of data [C:\Software\robotology-super
build\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
  skinPart.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skin
DynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\skinDynLib\skinDyn
Lib.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/skinDynLib/src/skinPart.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinPart.cpp(193,35): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\buil
d\src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\src\skinPart.cpp(332,28): warning C4267: 'return': conversion from 'size_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\build\
src\ICUB\src\libraries\skinDynLib\skinDynLib.vcxproj]
  Generating Code...
  skinDynLib.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\Release\skinDynLib.lib
  iDyn.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxpr
oj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/iDyn/src/iDyn.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(539,11): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\build\src\
ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(1920,44): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology-superbuild\build\src\ICU
B\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(1920,44): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(1920,44): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(1920,44): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDyn.cpp(1920,44): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  iDynBody.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxpr
oj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/iDyn/src/iDynBody.cpp')

C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(904,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbui
ld\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(905,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbui
ld\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(976,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbui
ld\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(977,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbui
ld\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(1258,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbu
ild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\iDyn\src\iDynBody.cpp(1259,25): warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data [C:\Software\robotology-superbu
ild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  iDynContact.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxpr
oj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/iDyn/src/iDynContact.cpp')

  iDynInv.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxpr
oj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/iDyn/src/iDynInv.cpp')

  iDynTransform.cpp
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxpr
oj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries
\iDyn\iDyn.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\src\libraries\iDyn\iDyn.vcxproj]
  (compiling source file '../../../../../../src/ICUB/src/libraries/iDyn/src/iDynTransform.cpp')

  Generating Code...
  iDyn.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\Release\iDyn.lib
  optimization.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\Release\optimization.lib
  icubPYTHON_wrap.cxx
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data [C:\Software\robotology
-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         with [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj
]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         [ [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:             _Ty=unsigned int [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icu
b_python.vcxproj]
C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\common.h(272,27): warning C4267:         ] [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  (compiling source file 'CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx')

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53624,98): error C2039: 'LEFT_LEG_UPPER': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superbu
ild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53624,98): error C2065: 'LEFT_LEG_UPPER': undeclared identifier [C:\Software\robotology-superbuild\build\src\IC
UB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53624,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53624,3):
  while trying to match the argument list '(PyObject *, const char [15])'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53625,98): error C2039: 'LEFT_LEG_LOWER': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superbu
ild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53625,98): error C2065: 'LEFT_LEG_LOWER': undeclared identifier [C:\Software\robotology-superbuild\build\src\IC
UB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53625,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53625,3):
  while trying to match the argument list '(PyObject *, const char [15])'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53626,93): error C2039: 'LEFT_FOOT': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superbuild\b
uild\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53626,93): error C2065: 'LEFT_FOOT': undeclared identifier [C:\Software\robotology-superbuild\build\src\ICUB\bi
ndings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53626,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53626,3):
  while trying to match the argument list '(PyObject *, const char [10])'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53627,99): error C2039: 'RIGHT_LEG_UPPER': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superb
uild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53627,99): error C2065: 'RIGHT_LEG_UPPER': undeclared identifier [C:\Software\robotology-superbuild\build\src\I
CUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53627,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53627,3):
  while trying to match the argument list '(PyObject *, const char [16])'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53628,99): error C2039: 'RIGHT_LEG_LOWER': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superb
uild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53628,99): error C2065: 'RIGHT_LEG_LOWER': undeclared identifier [C:\Software\robotology-superbuild\build\src\I
CUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53628,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53628,3):
  while trying to match the argument list '(PyObject *, const char [16])'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53629,94): error C2039: 'RIGHT_FOOT': is not a member of 'iCub::skinDynLib' [C:\Software\robotology-superbuild\
build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\src\ICUB\src\libraries\skinDynLib\include\iCub\skinDynLib\skinContactList.h(36,11):
  see declaration of 'iCub::skinDynLib'

C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53629,94): error C2065: 'RIGHT_FOOT': undeclared identifier [C:\Software\robotology-superbuild\build\src\ICUB\b
indings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53629,3): error C2660: 'SWIG_Python_SetConstant': function does not take 2 arguments [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(1168,1):
  see declaration of 'SWIG_Python_SetConstant'
  C:\Software\robotology-superbuild\build\src\ICUB\bindings\CMakeFiles\_icub_python.dir\icubPYTHON_wrap.cxx(53629,3):
  while trying to match the argument list '(PyObject *, const char [11])'

  cartesiancontrollerclient.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\cartesiancontrollerclient.dll
  cartesiancontrollerserver.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\cartesiancontrollerserver.dll
  gazecontrollerclient.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\gazecontrollerclient.dll
  imuFilter.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\imuFilter.dll

I am on Windows using the current master version (4595c48)

Steps to reproduce

Enable CREATE_PYTHON and compile

Expected behavior

No response

Example repository

No response

Additional context

No response

@pattacini
Copy link
Member

Thanks @S-Dafarra for reporting 👍🏻

@traversaro
Copy link
Member

Which swig version are you using @S-Dafarra ?

@pattacini
Copy link
Member

Build errors seem to be related to the introduction of the body part ids done in:

@traversaro
Copy link
Member

Can you try to modify the https://github.com/robotology/icub-main/blob/master/bindings/icub.i file and try to re-compile? Swig is not able to understand when it needs to re-genereate the bindings file, so perhaps we need to force it to do it.

@S-Dafarra
Copy link
Contributor Author

Which swig version are you using @S-Dafarra ?

4.1.0

Can you try to modify the https://github.com/robotology/icub-main/blob/master/bindings/icub.i file and try to re-compile? Swig is not able to understand when it needs to re-genereate the bindings file, so perhaps we need to force it to do it.

I tried again with a clean build, but I had the same error

@S-Dafarra
Copy link
Contributor Author

I updated swig to 4.2.0, touched the icub.i file, and now I have a different error

(robsub) C:\Software\robotology-superbuild\build\src\ICUB>cmake --build . --config Release --target INSTALL
MSBuild version 17.8.5+b5265ef37 for .NET Framework

  Automatic MOC for target QtICubSkinGuiPlugin
  QtICubSkinGuiPlugin.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\qt5\qml\Release\robotology\icub\skingui\QtICubSkinGuiPlugin.dll
  ctrlLib.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\Release\ctrlLib.lib
  iKin.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\Release\iKin.lib
  skinDynLib.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\Release\skinDynLib.lib
  iDyn.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\Release\iDyn.lib
  optimization.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\Release\optimization.lib
  Swig compile icub.i for python
C:/Software/robotology-superbuild/build/install/share/yarp/bindings\yarp.i(438): warning 206: Unexpected tokens after #endif directive. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Contactable.h(46): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Contactable.h(59): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Contactable.h(59): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\AbstractContactable.h(38): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\AbstractContactable.h(41): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\AbstractContactable.h(41): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Log.h(158): warning 325: Nested struct not currently supported (NoLog ignored) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vc
xproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(42): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(43): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(44): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(45): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(46): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(47): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(48): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(49): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(50): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(51): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(52): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(53): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(54): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(55): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(56): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(57): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(58): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(59): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(60): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(61): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(62): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(63): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(64): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(65): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(66): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Image.h(68): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Sound.h(86): warning 321: 'set' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj
]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Sound.h(86): warning 321: 'set' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj
]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Matrix.h(111): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Matrix.h(120): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Vector.h(290): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\sig\Vector.h(300): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\DeviceDriver.h(52): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python
.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\DeviceDriver.h(70): warning 321: 'id' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\PolyDriver.h(72): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\Drivers.h(193): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcx
proj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\Drivers.h(208): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcx
proj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IFrameGrabberImage.h(89): warning 327: Extern template ignored. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IFrameGrabberImage.h(90): warning 327: Extern template ignored. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IFrameGrabberImage.h(91): warning 327: Extern template ignored. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IFrameGrabberImage.h(92): warning 327: Extern template ignored. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IAxisInfo.h(24): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IAxisInfo.h(25): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IAxisInfo.h(27): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IInteractionMode.h(18): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IInteractionMode.h(19): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\IInteractionMode.h(21): error : Type error. Expecting an integral type [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\share\yarp\bindings\yarp.i(1589): warning 322: Redundant redeclaration of identifier 'ask' as yarp::dev::ILLM::ask(std::string const &,yarp::dev::LLM_Message &) ignored,
 [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\dev\ILLM.h(52): warning 322: previous declaration of 'ask' as yarp::dev::ILLM::ask(std::string const &,yarp::dev::LLM_Message &). [C:\Software\robotology-su
perbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\share\yarp\bindings\yarp.i(1629): warning 321: 'set' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcx
proj]
C:\Software\robotology-superbuild\build\install\share\yarp\bindings\yarp.i(1669): warning 321: 'set' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcx
proj]
C:\Software\robotology-superbuild\build\install\share\yarp\bindings\yarp.i(1698): warning 321: 'set' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcx
proj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinFwd.h(412): warning 384: operator-- ignored [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinFwd.h(419): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxpro
j]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinFwd.h(892): warning 384: operator-- ignored [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinFwd.h(893): warning 389: operator[] ignored (consider using %extend) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxpro
j]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinIpOpt.h(59): warning 314: 'exec' is a python keyword, renaming to '_exec' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.v
cxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinSlv.h(324): warning 314: 'exec' is a python keyword, renaming to '_exec' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vc
xproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinSlv.h(345): warning 309: protected inheritance from base 'CartesianHelper' (ignored). [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_i
cub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinSlv.h(531): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vc
xproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinSlv.h(600): warning 321: 'open' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vc
xproj]
C:\Software\robotology-superbuild\build\install\include\iCub\ctrl\adaptWinPolyEstimator.h(105): warning 321: 'eval' conflicts with a built-in name in python [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_
icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\ctrl\neuralNetworks.h(54): warning 325: Nested struct not currently supported (minmax ignored) [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_i
cub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\Taxel.h(182): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_pyt
hon.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\Taxel.h(182): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_pyt
hon.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinPart.h(129): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinPart.h(129): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinPart.h(247): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinPart.h(247): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_
python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\iCubSkin.h(87): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_p
ython.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\iCubSkin.h(87): warning 314: 'print' is a python keyword, renaming to '_print' [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_p
ython.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\dynContactList.h(42): warning 401: Nothing known about base class 'std::vector< dynContact >'. Ignored. [C:\Software\robotology-superbuild\build\
src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\dynContactList.h(42): warning 401: Maybe you forgot to instantiate 'std::vector< dynContact >' using %template. [C:\Software\robotology-superbuil
d\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinContactList.h(44): warning 401: Nothing known about base class 'std::vector< skinContact >'. Ignored. [C:\Software\robotology-superbuild\buil
d\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\skinDynLib\skinContactList.h(44): warning 401: Maybe you forgot to instantiate 'std::vector< skinContact >' using %template. [C:\Software\robotology-superbu
ild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\PortablePair.h(16): warning 403: Class 'yarp::os::PortablePairBase' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\buil
d\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Portable.h(29): warning 403: Method yarp::os::Portable::read(yarp::os::ConnectionReader &) might not be implemented. [C:\Software\robotology-superbuild\b
uild\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Wire.h(18): warning 403: Class 'yarp::os::Wire' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\src\ICUB\bindings\
_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\PortReader.h(39): warning 403: Method yarp::os::PortReader::read(yarp::os::ConnectionReader &) might not be implemented. [C:\Software\robotology-superbui
ld\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(412): warning 403: Class 'iCub::iKin::SteepCtrl' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\src\I
CUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(158): warning 403: Method iCub::iKin::iKinCtrl::printIter() might not be implemented. [C:\Software\robotology-superbuild\build\src\ICUB\bindi
ngs\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(513): warning 403: Class 'iCub::iKin::VarKpSteepCtrl' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\
src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(158): warning 403: Method iCub::iKin::iKinCtrl::printIter() might not be implemented. [C:\Software\robotology-superbuild\build\src\ICUB\bindi
ngs\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(577): warning 403: Class 'iCub::iKin::LMCtrl' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\src\ICUB
\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(158): warning 403: Method iCub::iKin::iKinCtrl::printIter() might not be implemented. [C:\Software\robotology-superbuild\build\src\ICUB\bindi
ngs\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(696): warning 403: Class 'iCub::iKin::LMCtrl_GPM' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\src\
ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(158): warning 403: Method iCub::iKin::iKinCtrl::printIter() might not be implemented. [C:\Software\robotology-superbuild\build\src\ICUB\bindi
ngs\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(760): warning 403: Class 'iCub::iKin::MultiRefMinJerkCtrl' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\b
uild\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinInv.h(158): warning 403: Method iCub::iKin::iKinCtrl::printIter() might not be implemented. [C:\Software\robotology-superbuild\build\src\ICUB\bindi
ngs\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\iKin\iKinSlv.h(278): warning 403: Class 'iCub::iKin::InputPort' might be abstract, no constructors generated, [C:\Software\robotology-superbuild\build\src\I
CUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\yarp\os\Contactable.h(324): warning 403: Method yarp::os::Contactable::setCallbackLock() might not be implemented. [C:\Software\robotology-superbuild\build\src\I
CUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\optimization\neuralNetworks.h(54): warning 403: Class 'iCub::optimization::ff2LayNNTrain' might be abstract, no constructors generated, [C:\Software\robotol
ogy-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\ctrl\neuralNetworks.h(230): warning 403: Method iCub::ctrl::ff2LayNN::hiddenLayerFcn(yarp::sig::Vector const &) const might not be implemented. [C:\Software
\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Software\robotology-superbuild\build\install\include\iCub\ctrl\functionEncoder.h(126): warning 503: Can't wrap 'iCub::ctrl::waveletIntegrand' unless renamed to a valid identifier. [C:\Software\robotology-superbuild
\build\src\ICUB\bindings\_icub_python.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Software\robotology-superbuild\src\ICUB\bindings\icub.i' exite
d with code 1. [C:\Software\robotology-superbuild\build\src\ICUB\bindings\_icub_python.vcxproj]
  cartesiancontrollerclient.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\cartesiancontrollerclient.dll
  cartesiancontrollerserver.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\cartesiancontrollerserver.dll
  gazecontrollerclient.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\gazecontrollerclient.dll
  imuFilter.vcxproj -> C:\Software\robotology-superbuild\build\src\ICUB\lib\iCub\Release\imuFilter.dll

@Nicogene Nicogene self-assigned this Feb 29, 2024
@traversaro
Copy link
Member

The second error is a known problem with swig 4.2.0 that has been solved in 4.2.1, see robotology/robotology-superbuild#1607 and linked builds. Instead I am surprised 4.1.0 does not work, we are testing that in the robotology-superbuild CI.

@S-Dafarra
Copy link
Contributor Author

To be sure, I pinned swig to 4.1.0 and touched again the icub.i file but it still fails with the same error of the OP

@traversaro
Copy link
Member

To be sure, I pinned swig to 4.1.0 and touched again the icub.i file but it still fails with the same error of the OP

Just to be sure, have you tried directly a clean build?

@Nicogene
Copy link
Member

On my WSL i managed to compile the bindings on latest master

[100%] Built target icub_python_swig_compilation
Consolidate compiler generated dependencies of target _icub_python
[100%] Building CXX object bindings/CMakeFiles/_icub_python.dir/CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx.o
/home/ngenesio/robotology/robotology-superbuild/build/src/ICUB/bindings/CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx: In function ‘PyObject* PyInit__icub()’:
/home/ngenesio/robotology/robotology-superbuild/build/src/ICUB/bindings/CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx:982:64: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
  982 | #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
      |                                              ~~~~~~~~~~~~~~~~~~^~
/home/ngenesio/robotology/robotology-superbuild/build/src/ICUB/bindings/CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx:53632:3: note: in expansion of macro ‘SWIG_PYTHON_INITIALIZE_THREADS’
53632 |   SWIG_PYTHON_INITIALIZE_THREADS;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.10/Python.h:130,
                 from /home/ngenesio/robotology/robotology-superbuild/build/src/ICUB/bindings/CMakeFiles/_icub_python.dir/icubPYTHON_wrap.cxx:180:
/usr/include/python3.10/ceval.h:122:37: note: declared here
  122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      |                                     ^~~~~~~~~~~~~~~~~~
[100%] Linking CXX shared module ../lib/_icub.so
[100%] Built target _icub_python

@S-Dafarra I had to first do make uninstall of icub-main because swig it was taking the old headers installed

cc @pattacini

@pattacini
Copy link
Member

pattacini commented Feb 29, 2024

Thanks!

Feel free to open it again if required.

@S-Dafarra
Copy link
Contributor Author

To be sure, I pinned swig to 4.1.0 and touched again the icub.i file but it still fails with the same error of the OP

Just to be sure, have you tried directly a clean build?

Actually, I deleted the ICUB build in the superbuild, but not the install.

@S-Dafarra I had to first do make uninstall of icub-main because swig it was taking the old headers installed

Thanks for the hint! I managed to get it working too. I had to:

  • Disable the compilation of the bindings
  • Compile and install
  • Touch again the icub.i file
  • Reenable the compilation of the bindings
  • Compile and install
  • Profit

@traversaro
Copy link
Member

An alternative strategy could be to just delete the install folder of the superbuild, and then run again make (of the superbuild, not of ICUB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants