robotology / wearables

Code moved to https://github.com/robotology/human-dynamics-estimation
https://github.com/robotology/human-dynamics-estimation
BSD 3-Clause "New" or "Revised" License
19 stars 11 forks source link

Compilation failure with ``yarp`` 3.10 #205

Closed S-Dafarra closed 8 months ago

S-Dafarra commented 8 months ago

Describe the bug After https://github.com/robotology/yarp/pull/3059, the compilation fails with the following error

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

  ftnodeDriver.cpp
C:\Software\robotology-superbuild\src\yarp-devices-forcetorque\ftNode\ftnodeDriver.cpp(233,40): warning C4244: 'initial
izing': conversion from 'yarp::conf::float64_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\buil
d\src\yarp-devices-forcetorque\ftNode\ftnode.vcxproj]
C:\Software\robotology-superbuild\src\yarp-devices-forcetorque\ftNode\ftnodeDriver.cpp(242,33): warning C4244: 'initial
izing': conversion from 'yarp::conf::float64_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\buil
d\src\yarp-devices-forcetorque\ftNode\ftnode.vcxproj]
C:\Software\robotology-superbuild\src\yarp-devices-forcetorque\ftNode\ftnodeDriver.cpp(320,38): error C2039: 'getValue'
: is not a member of 'yarp::dev::PolyDriver' [C:\Software\robotology-superbuild\build\src\yarp-devices-forcetorque\ftNo
de\ftnode.vcxproj]
  C:\Software\robotology-superbuild\build\install\include\yarp\dev\PolyDriver.h(21,20):
  see declaration of 'yarp::dev::PolyDriver'

C:\Software\robotology-superbuild\src\yarp-devices-forcetorque\ftNode\ftnodeDriver.cpp(407,35): warning C4267: 'return'
: conversion from 'size_t' to 'int', possible loss of data [C:\Software\robotology-superbuild\build\src\yarp-devices-fo
rcetorque\ftNode\ftnode.vcxproj]
  ftshoe.vcxproj -> C:\Software\robotology-superbuild\build\src\yarp-devices-forcetorque\lib\yarp\Release\ftshoe.dll

To Reproduce

  1. Use yarp master
  2. Compile

Expected behavior A clear and concise description of what you expected to happen.

Should compile

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Related issues: