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

Compilation error in ImageData2CameraImage #1284

Open
stephane-caron opened this issue Nov 23, 2019 · 0 comments
Open

Compilation error in ImageData2CameraImage #1284

stephane-caron opened this issue Nov 23, 2019 · 0 comments

Comments

@stephane-caron
Copy link

On a fresh Ubuntu 16.04 install with OpenRTM-aist installed from:

There is the following compilation error for the ImageData2CameraImage component:

[ 42%] Building CXX object rtc/ImageData2CameraImage/CMakeFiles/ImageData2CameraImage.dir/ImageData2CameraImage.o
In file included from /usr/include/openrtm-1.2/rtm/InPort.h:39:0,
                 from /usr/include/openrtm-1.2/rtm/DataInPort.h:23,
                 from /home/ayumi/Software/hrpsys-base/rtc/ImageData2CameraImage/ImageData2CameraImage.h:18,
                 from /home/ayumi/Software/hrpsys-base/rtc/ImageData2CameraImage/ImageData2CameraImage.cpp:10:
/usr/include/openrtm-1.2/rtm/Timestamp.h: In instantiation of 'RTC::Timestamp<DataType>::ReturnCode RTC::Timestamp<DataType>::operator()(RTC::ConnectorInfo&, DataType&) [with DataType = Img::ImageData; RTC::Timestamp<DataType>::ReturnCode = RTC::ConnectorListenerStatus::Enum]':
/home/ayumi/Software/hrpsys-base/rtc/ImageData2CameraImage/ImageData2CameraImage.cpp:168:2:   required from here
/usr/include/openrtm-1.2/rtm/Timestamp.h:40:20: error: 'struct Img::ImageData' has no member named 'tm'
       data.tm.sec  = tm.sec();

A quick fix is to comment out the line

add_subdirectory(ImageData2CameraImage)

in hrpsys-base/rtc/CMakeLists.txt. The rest of hrpsys-base compiles fine.

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

1 participant