icub compilation error (yarp::os::LogStream)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

icub compilation error (yarp::os::LogStream)

Konstantinos Theofilis
Hi list,

After updating and compiling YARP from HEAD in our icubsrv machine
(Debian Wheezy), i tried to compile the iCub software from HEAD and I
get the following compilation error:

[ 44%] Built target ICUB_tinyxml
[ 45%] Building CXX object
src/core/robotInterface/CMakeFiles/robotInterface.dir/CalibratorThread.cpp.o
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:102:0: warning:
"yTrace" redefined [enabled by default]
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:11:0:
/usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:193:0:
note: this is the location of the previous definition
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:103:0: warning:
"yDebug" redefined [enabled by default]
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:11:0:
/usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:194:0:
note: this is the location of the previous definition
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:105:0: warning:
"yWarning" redefined [enabled by default]
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:11:0:
/usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:195:0:
note: this is the location of the previous definition
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:106:0: warning:
"yError" redefined [enabled by default]
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:11:0:
/usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:196:0:
note: this is the location of the previous definition
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:107:0: warning:
"yFatal" redefined [enabled by default]
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:11:0:
/usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:197:0:
note: this is the location of the previous definition
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:
In member function ‘void RobotInterface::CalibratorThread::Private::run()’:
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:28:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:30:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:33:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:35:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:
In member function ‘void RobotInterface::CalibratorThread::Private::stop()’:
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:45:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:49:20:
error: invalid use of incomplete type ‘class yarp::os::LogStream’
In file included from
/usr/local/src/robot/icub/main/src/core/robotInterface/CalibratorThread.cpp:13:0:
/usr/local/src/robot/yarp/install/include/yarp/os/Log.h:33:39: error:
forward declaration of ‘class yarp::os::LogStream’
make[2]: ***
[src/core/robotInterface/CMakeFiles/robotInterface.dir/CalibratorThread.cpp.o]
Error 1
make[1]: *** [src/core/robotInterface/CMakeFiles/robotInterface.dir/all]
Error 2
make: *** [all] Error 2
[icub@icubsrv build]$

Any ideas of how to fix it?

Best regards,
Kostas Theofilis




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: icub compilation error (yarp::os::LogStream)

Daniele E. Domenichelli
Hello Kostas,

Sorry for the delay, but your mail was stopped by the antispam :(


On 25/11/14 12:16, Konstantinos Theofilis wrote:
> After updating and compiling YARP from HEAD in our icubsrv machine
> (Debian Wheezy), i tried to compile the iCub software from HEAD and I
> get the following compilation error:
>
[...]
> /usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:193:0:


The debugStream library no longer exists. It is now part of yarp. You
probably updated only yarp and not icub or something similar.
If updating does not help, try deleting the build directories both for
yarp and icub and build everything from scratch.
Let me know if you still cannot get it to build


Cheers,
 Daniele

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: icub compilation error (yarp::os::LogStream)

Konstantinos Theofilis
Hello Daniele,

Thank you for you advice. Indeed the error was partial updates, with
leftovers from the previous installation. In any case, I did the full
monty: Upgrading pc104 to image5.0 (the live one) and then upgrading the
cluster. Everything went smoothly. I especially like the simplified
/exports/code structure and the single /exports/local_yarp for the whole
cluster.

Also, a couple of corrections for the installation process of the live
image,

1) In the documentation page:
http://wiki.icub.org/wiki/The_Linux_on_the_pc104

In section "How to use the icub_isousb.sh" script:

- p7zip is also needed

- As the USB_TARGET_DEVICE argument in icub_iso2usb.sh script, giving -t
/dev/sdx results in error.
That has to do with the output of ls -la /dev/disk/by-id (inside the
script) which gives paths like "../../sdx"

Using

  -t sdx

allowed the script to continue normally.

2) The documentation regarding the compilation of the icub software on
pc104, in page http://wiki.icub.org/wiki/Compilation_on_the_pc104 is
outdated, regarding the emb* and the canBus* modules. It would be
helpful to know beforehand which parameters to turn on.

Best regards,
Kostas Theofilis

P.S. Can please someone in IIT contact the admins and make sure that
emails from the herts.ac.uk domain are not put in the spam folders all
the time? :D It happens to other people here.



On 27/11/14 23:49, Daniele E. Domenichelli wrote:

> Hello Kostas,
>
> Sorry for the delay, but your mail was stopped by the antispam :(
>
>
> On 25/11/14 12:16, Konstantinos Theofilis wrote:
>> After updating and compiling YARP from HEAD in our icubsrv machine
>> (Debian Wheezy), i tried to compile the iCub software from HEAD and I
>> get the following compilation error:
>>
> [...]
>> /usr/local/src/robot/icub/main/src/core/robotInterface/../../../src/libraries/icubmod/debugStream/Debug.h:193:0:
>
> The debugStream library no longer exists. It is now part of yarp. You
> probably updated only yarp and not icub or something similar.
> If updating does not help, try deleting the build directories both for
> yarp and icub and build everything from scratch.
> Let me know if you still cannot get it to build
>
>
> Cheers,
>   Daniele
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Robotcub-hackers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/robotcub-hackers


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers
Loading...