toolchain problem

Hi all,

I just installed orocos-toolchain to look into the lua dependency
issue and ran into the following error:

Building component orocos-ocl-common in library
orocos-ocl-common-gnulinux
Building typekit library ocl
Building plugin library print
Building plugin library os
-- Found RTT_PLUGIN_rtt-scripting
Building library orocos-taskbrowser
Building component orocos-timer in library orocos-timer-gnulinux
Building component orocos-helloworld in library
orocos-helloworld-gnulinux
-- Found RTT_PLUGIN_rtt-marshalling
Building component orocos-reporting in library
orocos-reporting-gnulinux
-- Found RTT_PLUGIN_rtt-marshalling
-- Found RTT_PLUGIN_rtt-scripting
Building library orocos-deployment
CMake Error at logging/CMakeLists.txt:5 (message):
Can't build real-time logging service since log4cpp was not found.

CMake Error at logging/CMakeLists.txt:13 (INCLUDE_DIRECTORIES):
include_directories given empty-string as include directory.

CMake Warning (dev) at logging/CMakeLists.txt:14 (LINK_DIRECTORIES):
This command specifies the relative path

as a link directory.

Policy CMP0015 is not set: link_directories() treats paths relative
to the
source dir. Run "cmake --help-policy CMP0015" for policy details.
Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

Building component orocos-logging in library orocos-logging-gnulinux
Building library orocos-log4cpp
-- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so
Building component orocos-lua in library orocos-lua-gnulinux
Building plugin library rttlua-plugin
Selected Libraries:
-- Configuring incomplete, errors occurred!

I have liblog4cpp5 and liblog4cpp5-dev version 1.0-4 installed.

Secondly in orocos.osdeps libreadline5 is added as an dependency,
while debian testing switched dependencies (incl liblua) to
libreadline-dev, which in turn installs libreadline6-dev. So
installing libreadline5 removes libreadline6 incl. liblua...

So the following patch should solve the issue, but might cause havoc
elsewhere.

Markus

diff --git a/orocos.osdeps b/orocos.osdeps
index e7e0fff..629b54f 100644
--- a/orocos.osdeps
+++ b/orocos.osdeps
@@ -18,10 +18,10 @@ tao:
debian,ubuntu: [libtao-orbsvcs-dev, tao-idl, tao-naming, gperf-ace]

readline:
- debian,ubuntu: [libreadline5-dev]
+ debian,ubuntu: [libreadline-dev]
gentoo: sys-libs/readline
libreadline:
- debian,ubuntu: [libreadline5-dev]
+ debian,ubuntu: [libreadline-dev]
gentoo: sys-libs/readline

ncurses:

toolchain problem

On Tuesday 14 December 2010 11:52:36 Markus Klotzbuecher wrote:
> Hi all,
>
> I just installed orocos-toolchain to look into the lua dependency
> issue and ran into the following error:
>
> Building component orocos-ocl-common in library
> orocos-ocl-common-gnulinux
> Building typekit library ocl
> Building plugin library print
> Building plugin library os
> -- Found RTT_PLUGIN_rtt-scripting
> Building library orocos-taskbrowser
> Building component orocos-timer in library orocos-timer-gnulinux
> Building component orocos-helloworld in library
> orocos-helloworld-gnulinux
> -- Found RTT_PLUGIN_rtt-marshalling
> Building component orocos-reporting in library
> orocos-reporting-gnulinux
> -- Found RTT_PLUGIN_rtt-marshalling
> -- Found RTT_PLUGIN_rtt-scripting
> Building library orocos-deployment
> CMake Error at logging/CMakeLists.txt:5 (message):
> Can't build real-time logging service since log4cpp was not found.
>
> CMake Error at logging/CMakeLists.txt:13 (INCLUDE_DIRECTORIES):
> include_directories given empty-string as include directory.
>
> CMake Warning (dev) at logging/CMakeLists.txt:14 (LINK_DIRECTORIES):
> This command specifies the relative path
>
> as a link directory.
>
> Policy CMP0015 is not set: link_directories() treats paths relative
> to the
> source dir. Run "cmake --help-policy CMP0015" for policy details.
> Use the
> cmake_policy command to set the policy and suppress this warning.
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> Building component orocos-logging in library orocos-logging-gnulinux
> Building library orocos-log4cpp
> -- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so
> Building component orocos-lua in library orocos-lua-gnulinux
> Building plugin library rttlua-plugin
> Selected Libraries:
> -- Configuring incomplete, errors occurred!
>
>
> I have liblog4cpp5 and liblog4cpp5-dev version 1.0-4 installed.

You need to install our version of log4cpp, which is patched.

>
>
> Secondly in orocos.osdeps libreadline5 is added as an dependency,
> while debian testing switched dependencies (incl liblua) to
> libreadline-dev, which in turn installs libreadline6-dev. So
> installing libreadline5 removes libreadline6 incl. liblua...
>
> So the following patch should solve the issue, but might cause havoc
> elsewhere.

I think the proposed solution is correct. But Sylvain needs to confirm.

Peter

>
> Markus
>
> diff --git a/orocos.osdeps b/orocos.osdeps
> index e7e0fff..629b54f 100644
> --- a/orocos.osdeps
> +++ b/orocos.osdeps
> @@ -18,10 +18,10 @@ tao:
> debian,ubuntu: [libtao-orbsvcs-dev, tao-idl, tao-naming, gperf-ace]
>
> readline:
> - debian,ubuntu: [libreadline5-dev]
> + debian,ubuntu: [libreadline-dev]
> gentoo: sys-libs/readline
> libreadline:
> - debian,ubuntu: [libreadline5-dev]
> + debian,ubuntu: [libreadline-dev]
> gentoo: sys-libs/readline
>
> ncurses:

toolchain problem

On 12/14/2010 12:07 PM, Peter Soetens wrote:
>> Secondly in orocos.osdeps libreadline5 is added as an dependency,
>> while debian testing switched dependencies (incl liblua) to
>> libreadline-dev, which in turn installs libreadline6-dev. So
>> installing libreadline5 removes libreadline6 incl. liblua...
>>
>> So the following patch should solve the issue, but might cause havoc
>> elsewhere.
>
> I think the proposed solution is correct. But Sylvain needs to confirm.
Seems to be fine since Lenny also has a libreadline-dev package

toolchain problem

2010/12/14 Markus Klotzbuecher <markus [dot] klotzbuecher [..] ...>:
> Hi all,
>
> I just installed orocos-toolchain to look into the lua dependency
> issue and ran into the following error:
>
> Building component orocos-ocl-common in library
> orocos-ocl-common-gnulinux
> Building typekit library ocl
> Building plugin library print
> Building plugin library os
> -- Found RTT_PLUGIN_rtt-scripting
> Building library orocos-taskbrowser
> Building component orocos-timer in library orocos-timer-gnulinux
> Building component orocos-helloworld in library
> orocos-helloworld-gnulinux
> -- Found RTT_PLUGIN_rtt-marshalling
> Building component orocos-reporting in library
> orocos-reporting-gnulinux
> -- Found RTT_PLUGIN_rtt-marshalling
> -- Found RTT_PLUGIN_rtt-scripting
> Building library orocos-deployment
> CMake Error at logging/CMakeLists.txt:5 (message):
>  Can't build real-time logging service since log4cpp was not found.
>
> CMake Error at logging/CMakeLists.txt:13 (INCLUDE_DIRECTORIES):
>  include_directories given empty-string as include directory.
>
> CMake Warning (dev) at logging/CMakeLists.txt:14 (LINK_DIRECTORIES):
>  This command specifies the relative path
>
>  as a link directory.
>
>  Policy CMP0015 is not set: link_directories() treats paths relative
>  to the
>  source dir.  Run "cmake --help-policy CMP0015" for policy details.
>  Use the
>  cmake_policy command to set the policy and suppress this warning.
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> Building component orocos-logging in library orocos-logging-gnulinux
> Building library orocos-log4cpp
> -- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so
> Building component orocos-lua in library orocos-lua-gnulinux
> Building plugin library rttlua-plugin
> Selected Libraries:
> -- Configuring incomplete, errors occurred!
>
>
> I have liblog4cpp5 and liblog4cpp5-dev version 1.0-4 installed.

I noticed the ocl manifest file mentions

"<depend package="log4cpp" /> "

which I think should be:

"<rosdep name="log4cpp" /> "

Steven

>
>
> Secondly in orocos.osdeps libreadline5 is added as an dependency,
> while debian testing switched dependencies (incl liblua) to
> libreadline-dev, which in turn installs libreadline6-dev. So
> installing libreadline5 removes libreadline6 incl. liblua...
>
> So the following patch should solve the issue, but might cause havoc
> elsewhere.
>
> Markus
>
> diff --git a/orocos.osdeps b/orocos.osdeps
> index e7e0fff..629b54f 100644
> --- a/orocos.osdeps
> +++ b/orocos.osdeps
> @@ -18,10 +18,10 @@ tao:
>     debian,ubuntu: [libtao-orbsvcs-dev, tao-idl, tao-naming, gperf-ace]
>
>  readline:
> -    debian,ubuntu: [libreadline5-dev]
> +    debian,ubuntu: [libreadline-dev]
>     gentoo: sys-libs/readline
>  libreadline:
> -    debian,ubuntu: [libreadline5-dev]
> +    debian,ubuntu: [libreadline-dev]
>     gentoo: sys-libs/readline
>
>  ncurses:
>
>
> --
> Orocos-Dev mailing list
> Orocos-Dev [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
>

toolchain problem

On Tuesday 14 December 2010 12:02:14 Steven Bellens wrote:
> 2010/12/14 Markus Klotzbuecher <markus [dot] klotzbuecher [..] ...>:
> > Hi all,
> >
> > I just installed orocos-toolchain to look into the lua dependency
> > issue and ran into the following error:
> >
> > Building component orocos-ocl-common in library
> > orocos-ocl-common-gnulinux
> > Building typekit library ocl
> > Building plugin library print
> > Building plugin library os
> > -- Found RTT_PLUGIN_rtt-scripting
> > Building library orocos-taskbrowser
> > Building component orocos-timer in library orocos-timer-gnulinux
> > Building component orocos-helloworld in library
> > orocos-helloworld-gnulinux
> > -- Found RTT_PLUGIN_rtt-marshalling
> > Building component orocos-reporting in library
> > orocos-reporting-gnulinux
> > -- Found RTT_PLUGIN_rtt-marshalling
> > -- Found RTT_PLUGIN_rtt-scripting
> > Building library orocos-deployment
> > CMake Error at logging/CMakeLists.txt:5 (message):
> > Can't build real-time logging service since log4cpp was not found.
> >
> > CMake Error at logging/CMakeLists.txt:13 (INCLUDE_DIRECTORIES):
> > include_directories given empty-string as include directory.
> >
> > CMake Warning (dev) at logging/CMakeLists.txt:14 (LINK_DIRECTORIES):
> > This command specifies the relative path
> >
> > as a link directory.
> >
> > Policy CMP0015 is not set: link_directories() treats paths relative
> > to the
> > source dir. Run "cmake --help-policy CMP0015" for policy details.
> > Use the
> > cmake_policy command to set the policy and suppress this warning.
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > Building component orocos-logging in library orocos-logging-gnulinux
> > Building library orocos-log4cpp
> > -- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so
> > Building component orocos-lua in library orocos-lua-gnulinux
> > Building plugin library rttlua-plugin
> > Selected Libraries:
> > -- Configuring incomplete, errors occurred!
> >
> >
> > I have liblog4cpp5 and liblog4cpp5-dev version 1.0-4 installed.
>
> I noticed the ocl manifest file mentions
>
> "<depend package="log4cpp" /> "
>
> which I think should be:
>
> "<rosdep name="log4cpp" /> "

Nope. log4cpp is a package we build ourselves.

Peter

toolchain problem

On 15/12/2010, at 00:33 , Peter Soetens wrote:

> On Tuesday 14 December 2010 12:02:14 Steven Bellens wrote:
>> 2010/12/14 Markus Klotzbuecher <markus [dot] klotzbuecher [..] ...>:
>>> Hi all,
>>>
>>> I just installed orocos-toolchain to look into the lua dependency
>>> issue and ran into the following error:
>>>
>>> Building component orocos-ocl-common in library
>>> orocos-ocl-common-gnulinux
>>> Building typekit library ocl
>>> Building plugin library print
>>> Building plugin library os
>>> -- Found RTT_PLUGIN_rtt-scripting
>>> Building library orocos-taskbrowser
>>> Building component orocos-timer in library orocos-timer-gnulinux
>>> Building component orocos-helloworld in library
>>> orocos-helloworld-gnulinux
>>> -- Found RTT_PLUGIN_rtt-marshalling
>>> Building component orocos-reporting in library
>>> orocos-reporting-gnulinux
>>> -- Found RTT_PLUGIN_rtt-marshalling
>>> -- Found RTT_PLUGIN_rtt-scripting
>>> Building library orocos-deployment
>>> CMake Error at logging/CMakeLists.txt:5 (message):
>>> Can't build real-time logging service since log4cpp was not found.
>>>
>>> CMake Error at logging/CMakeLists.txt:13 (INCLUDE_DIRECTORIES):
>>> include_directories given empty-string as include directory.
>>>
>>> CMake Warning (dev) at logging/CMakeLists.txt:14 (LINK_DIRECTORIES):
>>> This command specifies the relative path
>>>
>>> as a link directory.
>>>
>>> Policy CMP0015 is not set: link_directories() treats paths relative
>>> to the
>>> source dir. Run "cmake --help-policy CMP0015" for policy details.
>>> Use the
>>> cmake_policy command to set the policy and suppress this warning.
>>> This warning is for project developers. Use -Wno-dev to suppress it.
>>>
>>> Building component orocos-logging in library orocos-logging-gnulinux
>>> Building library orocos-log4cpp
>>> -- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so
>>> Building component orocos-lua in library orocos-lua-gnulinux
>>> Building plugin library rttlua-plugin
>>> Selected Libraries:
>>> -- Configuring incomplete, errors occurred!
>>>
>>>
>>> I have liblog4cpp5 and liblog4cpp5-dev version 1.0-4 installed.
>>
>> I noticed the ocl manifest file mentions
>>
>> "<depend package="log4cpp" /> "
>>
>> which I think should be:
>>
>> "<rosdep name="log4cpp" /> "
>
> Nope. log4cpp is a package we build ourselves.

Yep, Orocos will _not_ link against the standard log4cpp.
S