Hi
I tried to play around with corba, following the example from the Wiki, but failed at the very beginning !
Background: I have compiled and installed the toolchain 2.3.1 with corba(TAO/ACE) enabled on Kubuntu 10.10 32Bit. The Hello-World example from the RTT-Exercises are working. I got also a connection with QT running, where a interface class is derived from TaskContext / QWidget and calls Operations in a worker TaskContext. That all works fine and was pretty straight forward.
Now I tried to play around with corba and followed the example given in "http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-transports-corba.html"
First run: The code compiles fine, but the linker complains about unknown references to "InitOrb", "RunOrb", "DestroyOrb" and "Create" . ..
Second run: I extended find_package to: "find_package(Orocos-RTT REQUIRED rtt-transport-corba ${RTT_HINTS})" and got the same fault. . .
Third to XXXX'th run: I tried all Cmake include, find and SET(whatever=on) that had anything to do with corba but the result was always the same. The generated link.txt contains always "liborocos-rtt-gnulinux.so" instead of "liborocos-rtt-corba-gnulinux.so" I searched the forum up and down and went through all the manual in the Wiki but could not get the slightest hint about how to tel cmake to link the corba enabled liborocos-rtt. I spend a whole night on it and was absolute sure that I overlooked a simple sing, but could not find it.
When I change the entry in the link.txt manually my progi links happily, but I guess that's not what is intended by introducing cmake . .. .
PLEASE, could any one give me an idea how to set the CMakeList.txt right to use corab as explained in the examples on the Wiki.
And also PLEASE include the missing bit of information into the Wiki. I miss desperately a an overview about the cmake configuration options, my intention was to learn about Orocos and not about cmake in the first place.
Regards Joerg
Computer are like air conditioner, they stop working properly when you open windows . . .
Enabling corba via cmake ???
On Sun, Apr 24, 2011 at 10:25 AM, <joerg [..] ...> wrote:
> Hi
>
> I tried to play around with corba, following the example from the Wiki, but failed at the very beginning !
>
> Background:
> I have compiled and installed the toolchain 2.3.1 with corba(TAO/ACE) enabled on Kubuntu 10.10 32Bit. The Hello-World example from the RTT-Exercises are working. I got also a connection with QT running, where a interface class is derived from TaskContext / QWidget and calls Operations in a worker TaskContext. That all works fine and was pretty straight forward.
>
> Now I tried to play around with corba and followed the example given in
> "http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-transports-corba.html"
Thanks for pointing out. Did you try to add the
'orocos_use_package("orocos-rtt-corba") macro before defining your
components in cmake etc ?
>
> First run:
> The code compiles fine, but the linker complains about unknown references to
> "InitOrb", "RunOrb", "DestroyOrb" and "Create" . ..
>
> Second run:
> I extended find_package to:
> "find_package(Orocos-RTT REQUIRED rtt-transport-corba ${RTT_HINTS})"
> and got the same fault. . .
The documentation of what the result of this call is is found here:
http://www.orocos.org/wiki/orocos/toolchain/getting-started/cmake-and-bu...
I have updated it with examples, which were lacking when you looked at it.
>
> Third to XXXX'th run:
> I tried all Cmake include, find and SET(whatever=on) that had anything to do with corba but the result was always the same. The generated link.txt contains always "liborocos-rtt-gnulinux.so" instead of "liborocos-rtt-corba-gnulinux.so" I searched the forum up and down and went through all the manual in the Wiki but could not get the slightest hint about how to tel cmake to link the corba enabled liborocos-rtt. I spend a whole night on it and was absolute sure that I overlooked a simple sing, but could not find it.
>
> When I change the entry in the link.txt manually my progi links happily, but I guess that's not what is intended by introducing cmake . .. .
>
>
> PLEASE, could any one give me an idea how to set the CMakeList.txt right to use corab as explained in the examples on the Wiki.
>
> And also PLEASE include the missing bit of information into the Wiki.
> I miss desperately a an overview about the cmake configuration options, my intention was to learn about Orocos and not about cmake in the first place.
The cmake macros are documented in the UseOrocos-RTT.cmake file as
well. I don't know of a way yet to automatically get that
documentation online.
Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
Enabling corba via cmake ???
On Tuesday 26 April 2011 11:54:29 Peter Soetens wrote:
> On Sun, Apr 24, 2011 at 10:25 AM, <joerg [..] ...> wrote:
> > Hi
> >
> > I tried to play around with corba, following the example from the Wiki,
> > but failed at the very beginning !
> >
> > Background:
> > I have compiled and installed the toolchain 2.3.1 with corba(TAO/ACE)
> > enabled on Kubuntu 10.10 32Bit. The Hello-World example from the
> > RTT-Exercises are working. I got also a connection with QT running,
> > where a interface class is derived from TaskContext / QWidget and calls
> > Operations in a worker TaskContext. That all works fine and was pretty
> > straight forward.
> >
> > Now I tried to play around with corba and followed the example given in
> > "http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-tran
> > sports-corba.html"
>
> Thanks for pointing out. Did you try to add the
> 'orocos_use_package("orocos-rtt-corba") macro before defining your
> components in cmake etc ?
>
> > First run:
> > The code compiles fine, but the linker complains about unknown
> > references to "InitOrb", "RunOrb", "DestroyOrb" and "Create" . ..
> >
> > Second run:
> > I extended find_package to:
> > "find_package(Orocos-RTT REQUIRED rtt-transport-corba ${RTT_HINTS})"
> > and got the same fault. . .
>
> The documentation of what the result of this call is is found here:
>
> http://www.orocos.org/wiki/orocos/toolchain/getting-started/cmake-and-bu...
> ng
>
> I have updated it with examples, which were lacking when you looked at it.
>
> > Third to XXXX'th run:
> > I tried all Cmake include, find and SET(whatever=on) that had anything
> > to do with corba but the result was always the same. The generated
> > link.txt contains always "liborocos-rtt-gnulinux.so" instead of
> > "liborocos-rtt-corba-gnulinux.so" I searched the forum up and down and
> > went through all the manual in the Wiki but could not get the slightest
> > hint about how to tel cmake to link the corba enabled liborocos-rtt. I
> > spend a whole night on it and was absolute sure that I overlooked a
> > simple sing, but could not find it.
> >
> > When I change the entry in the link.txt manually my progi links happily,
> > but I guess that's not what is intended by introducing cmake . .. .
> >
> >
> > PLEASE, could any one give me an idea how to set the CMakeList.txt right
> > to use corab as explained in the examples on the Wiki.
> >
> > And also PLEASE include the missing bit of information into the Wiki.
> > I miss desperately a an overview about the cmake configuration options,
> > my intention was to learn about Orocos and not about cmake in the first
> > place.
>
> The cmake macros are documented in the UseOrocos-RTT.cmake file as
> well. I don't know of a way yet to automatically get that
> documentation online.
cmake -DCMAKE_MODULE_PATH=<rtt-path> --help-custom-modules output.html
--Ruben
> Peter
Enabling corba via cmake ???
On Tuesday 26 April 2011 13:16:38 Ruben Smits wrote:
> On Tuesday 26 April 2011 11:54:29 Peter Soetens wrote:
> > On Sun, Apr 24, 2011 at 10:25 AM, <joerg [..] ...> wrote:
> > > Hi
> > >
> > > I tried to play around with corba, following the example from the Wiki,
> > > but failed at the very beginning !
> > >
> > > Background:
> > > I have compiled and installed the toolchain 2.3.1 with corba(TAO/ACE)
> > > enabled on Kubuntu 10.10 32Bit. The Hello-World example from the
> > > RTT-Exercises are working. I got also a connection with QT running,
> > > where a interface class is derived from TaskContext / QWidget and calls
> > > Operations in a worker TaskContext. That all works fine and was pretty
> > > straight forward.
> > >
> > > Now I tried to play around with corba and followed the example given in
> > > "http://www.orocos.org/stable/documentation/rtt/v2.x/doc-xml/orocos-tra
> > > n sports-corba.html"
> >
> > Thanks for pointing out. Did you try to add the
> > 'orocos_use_package("orocos-rtt-corba") macro before defining your
> > components in cmake etc ?
> >
> > > First run:
> > > The code compiles fine, but the linker complains about unknown
> > > references to "InitOrb", "RunOrb", "DestroyOrb" and "Create" . ..
> > >
> > > Second run:
> > > I extended find_package to:
> > > "find_package(Orocos-RTT REQUIRED rtt-transport-corba ${RTT_HINTS})"
> > > and got the same fault. . .
> >
> > The documentation of what the result of this call is is found here:
> >
> > http://www.orocos.org/wiki/orocos/toolchain/getting-started/cmake-and-bui
> > ldi ng
> >
> > I have updated it with examples, which were lacking when you looked at
> > it.
> >
> > > Third to XXXX'th run:
> > > I tried all Cmake include, find and SET(whatever=on) that had anything
> > > to do with corba but the result was always the same. The generated
> > > link.txt contains always "liborocos-rtt-gnulinux.so" instead of
> > > "liborocos-rtt-corba-gnulinux.so" I searched the forum up and down and
> > > went through all the manual in the Wiki but could not get the slightest
> > > hint about how to tel cmake to link the corba enabled liborocos-rtt. I
> > > spend a whole night on it and was absolute sure that I overlooked a
> > > simple sing, but could not find it.
> > >
> > > When I change the entry in the link.txt manually my progi links
> > > happily, but I guess that's not what is intended by introducing cmake
> > > . .. .
> > >
> > >
> > > PLEASE, could any one give me an idea how to set the CMakeList.txt
> > > right to use corab as explained in the examples on the Wiki.
> > >
> > > And also PLEASE include the missing bit of information into the Wiki.
> > > I miss desperately a an overview about the cmake configuration options,
> > > my intention was to learn about Orocos and not about cmake in the first
> > > place.
> >
> > The cmake macros are documented in the UseOrocos-RTT.cmake file as
> > well. I don't know of a way yet to automatically get that
> > documentation online.
>
> cmake -DCMAKE_MODULE_PATH=<rtt-path> --help-custom-modules output.html
>
Nice, but it doesn't catch the documentation for each macro/function. It only
takes the top documentation strings of each .cmake file.
Peter
Hi Peter,thanks a lot for
Hi Peter,
thanks a lot for your help . .. .
Including "orocos_use_package(orocos-rtt-corba)" did the trick.
I had a good look at the UseOrorcos-RTT.cmake before but could not really figure out what to put into the CMakeLists.txt. However the example you put in the Wiki makes things clear, many thanks for that . . .
Joerg
Computer are like air conditioner, they stop working properly when opening windows
Hi Petermy be an Idea for
Hi Peter
my be an Idea for further improvements of the cmake handling:
If the orocos_use_package was not able to find the requested package it is not complaining. It will simply not print out the message "found . .." If possible I would prefer to get a warning/error that the requested package could not be found.
I find it always hard to look for missing messages instead for warnings/error messages.
Joerg
Computer are like air conditioner, they stop working properly when opening windows