Hi.
When i compile RTT 2.2.0 i have this warning :
Quote:
sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp: In static member function 'static RTT::base::ChannelElementBase::shared_ptr RTT::internal::ConnFactory::createRemoteConnection(RTT::base::OutputPortInterface&, RTT::base::InputPortInterface&, const RTT::ConnPolicy&)': sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp:83:16: warning: converting 'false' to pointer type for argument 1 of 'boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T = RTT::base::ChannelElementBase]' sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp:89:16: warning: converting 'false' to pointer type for argument 1 of 'boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T = RTT::base::ChannelElementBase]'
When i compile OCL 2.2.0 i have these error (it's a cross compilation case see below) :
Quote:
-- Optional library RTT_PLUGIN_rtt-scripting NOT FOUND. If the library is already installed, use the RTT_PLUGIN_rtt-scripting_ROOT_DIR environment variable or ccmake to set the missing variables manually. -- Optional library RTT_PLUGIN_rtt-marshalling NOT FOUND. If the library is already installed, use the RTT_PLUGIN_rtt-marshalling_ROOT_DIR environment variable or ccmake to set the missing variables manually.
and later
Quote:
TaskBrowser.cpp:(.text+0x4a22): undefined reference to `RTT::scripting::Parser::Parser(RTT::TaskContext*)' ...
Would it be possible to compile without manually defining RTT_PLUGIN_rtt-scripting_ROOT_DIR ? As i cross compile i use a CMAKE_INSTALL_PREFIX that refer to a target path and an OROCOS_INSTALL that refer to an host path. Is there any mistake ?
Thank for your help.
Paul.
OCL cross compil problem and RTT compil warning
On Tuesday 14 December 2010 16:50:23 paul [dot] chavent [..] ... wrote:
> Hi.
>
> When i compile RTT 2.2.0 i have this warning :
>
>
> sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp: In static member
> function 'static RTT::base::ChannelElementBase::shared_ptr
> RTT::internal::ConnFactory::createRemoteConnection(RTT::base::OutputPortIn
> terface&, RTT::base::InputPortInterface&, const RTT::ConnPolicy&)':
> sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp:83:16: warning:
> converting 'false' to pointer type for argument 1 of
> 'boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T =
> RTT::base::ChannelElementBase]'
> sources/orocos-rtt-2.2.0/rtt/internal/ConnFactory.cpp:89:16: warning:
> converting 'false' to pointer type for argument 1 of
> 'boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T =
> RTT::base::ChannelElementBase]'
Thanks for reporting. I've pushed the fix.
>
> When i compile OCL 2.2.0 i have these error (it's a cross compilation case
> see below) :
>
>
> -- Optional library RTT_PLUGIN_rtt-scripting NOT FOUND. If the library is
> already installed, use the RTT_PLUGIN_rtt-scripting_ROOT_DIR environment
> variable or ccmake to set the missing variables manually. -- Optional
> library RTT_PLUGIN_rtt-marshalling NOT FOUND. If the library is already
> installed, use the RTT_PLUGIN_rtt-marshalling_ROOT_DIR environment
> variable or ccmake to set the missing variables manually.
The error message is not correct. It searches in the ${OROCOS-RTT_PLUGIN_PATH}
which has been set by the find_package(OROCOS-RTT) macro. So if OROCOS-RTT has
been found, this path should be set and the plugins should be found.
>
> and later
>
>
> TaskBrowser.cpp:(.text+0x4a22): undefined reference to
> `RTT::scripting::Parser::Parser(RTT::TaskContext*)' ...
>
>
> Would it be possible to compile without manually defining
> RTT_PLUGIN_rtt-scripting_ROOT_DIR ? As i cross compile i use a
> CMAKE_INSTALL_PREFIX that refer to a target path and an OROCOS_INSTALL
> that refer to an host path. Is there any mistake ?
I don't think you made a mistake. All paths are derived (relative to) from the
location of the orocos-rtt-config.cmake file. So if this file is found,
everything else should be ok, regardless of where you actually installed or
*how* it was installed. We don't hard-code the install path in our cmake files.
We deduce it from the actual location of orocos-rtt-config.cmake. This is the
whole logic of setting the paths:
So it's still a bit of a mystery to me...
Peter