robotology / yarp-devices-forcetorque

YARP Drivers for various commercial Force Torque sensors.
4 stars 4 forks source link

Compilation failure with ``yarp`` 3.10 #40

Closed S-Dafarra closed 9 months ago

S-Dafarra commented 9 months ago

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

Related issues: