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

Errors related to the inverse kinematics (iDynTree) while compiling the superbuild in Win 32 #136

Closed
AngeloRendiniello opened this issue Nov 19, 2018 · 2 comments
Assignees

Comments

@AngeloRendiniello
Copy link

AngeloRendiniello commented Nov 19, 2018

I encountered this errors on Visual Studio while trying to build the superbuild with the 32 bit versions of the dependencies for windows

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	1231	

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	89	

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	303	

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	1209	

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	1239	

Error	C2397	conversion from 'unsigned int' to 'ptrdiff_t' requires a narrowing conversion [C:\Users\arendiniello\robotology-superbuild\build\robotology\iDynTree\src\inverse-kinematics\idyntree-inverse-kinematics.vcxproj]	iDynTree (ExternalProjectTargets\iDynTree\iDynTree)	c:\users\arendiniello\robotology-superbuild\robotology\idyntree\src\inverse-kinematics\src\inversekinematicsnlp.cpp	1307	
@traversaro
Copy link
Member

This seems to be a legit compilation error when compiling for 32-bit. Our workaround was to disable the compilation of Inverse Kinematics component by setting IDYNTREE_USES_IPOPT to FALSE, but this should be properly addressed. Even better, we should have a CI checking that the superbuild compiles correctly on Win32 (i.e. Windows 32-bit).

While support for Windows 32-bit compilation may seems something useless, it is important to note that several proprietary software are just distributed as 32-bit binaries, and some Windows API only work for 32-bit binaries.

@traversaro
Copy link
Member

Fixed by robotology/idyntree#506 .

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

No branches or pull requests

2 participants