Closed iron76 closed 9 years ago
Recent gtkmm versions require c++11 enabled.
Can you try recompiling using cmake -DCMAKE_CXX_FLAGS=-std=c++11
?
Then I get another error :laughing:
[omissis]/yarp/src/libYARP_OS/src/BottleImpl.cpp:645:28: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ACE_OS::sprintf(buf,"%"YARP_INT64_FMT,x);
Can you update and try again? I just fixed this and a few other issues with c++11 enabled...
Also instead of changing CMAKE_CXX_FLAGS
you can try enabling the YARP_EXPERIMENTAL_CXX1
option
New error:
[omissis]/yarp/src/libYARP_sig/src/IplImage.cpp:258:14: error: case value
evaluates to 2147483656, which cannot be narrowed to type 'int'
[-Wc++11-narrowing]
case IPL_DEPTH_8S:
Ok, this one should also be fixed now... what's next? :stuck_out_tongue_closed_eyes: Perhaps it would be faster if we do it together...
No need to do it together because it finally works :+1: Thanks!
Cool :sunglasses:
I'm not closing this yet, because we should have a check on the gtk/sigc++ version and eventually enable c++11 only when required and only for the guis that actually require it.
New remainder : revert robotology/codyco-superbuild@66ffa56 when this bug is fixed .
Hi guys, I've just joined the group of OsX friends, and it seems to me that I have I similar problem, probably the same. The output of the compilation is the following:
Sorry guys, I did not enable the flag YARP_EXPERIMENTAL_CXX1
. It works now!
@DanielePucci @traversaro @iron76 @francesco-romano enabling YARP_EXPERIMENTAL_CXX11
and/or c++11 should no longer be required, please reopen if for some reason it is still broken.
I am getting the following error.
The error can be removed by setting
YARP_USE_GTK2
,YARP_USE_GTKDATABOX
andYARP_USE_GTKDATABOXMM
toOFF
.