[The Orocos Project] Python Bindings

Ruben Smits wrote:
> The python bindings are not working in the 1.0.0 release, a patch is
> applied on trunk to make this work. You can use trunk instead or apply
> the patch yourself, its in the attachment.
>
> Let me know if it works.
>
> Ruben
>
> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>
>> Ruben Smits,
>>
>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>> Project.
>>
>> If you don't want to receive such e-mails, you can change your settings at
>> http://www.orocos.org/user/7.
>>
>> Message:
>>
>> Hi Ruben, sorry contact you directly but I saw on this mailinglist that
>> someone had tha same problem that a I've been through now.
>>
>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>> last command make I got the error described below:
>>
>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>> unused parameter ‘q_init’
>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>> unused parameter ‘v_in’
>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>> unused parameter ‘q_out’
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>> PyObject*)’:
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>> ‘ublas’ has not been declared
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>> expected primary-expression before ‘double’
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>> expected `;' before ‘double’
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>> ‘Wts’ was not declared in this scope
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>> PyObject*)’:
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>> ‘ublas’ has not been declared
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>> expected primary-expression before ‘double’
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>> expected `;' before ‘double’
>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>> ‘Wts’ was not declared in this scope
>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>> make: *** [all] Error 2
>>
>>
>> If you have any suggestion for me would be great!!!
>>
>> Thanks,
>>
>> Breno
>>
>>
Hi Ruben, the patch seems to work out, thanks. But then I execute make
command again and I got stuck in :

[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos-kdl
[ 96%] Generating PyKDL.so
[ 96%] Built target orocos
....
repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
I set *ENABLE_TESTS OFF* on my ccmake file!

Thanks for your support!

Breno

Ruben Smits's picture

[The Orocos Project] Python Bindings

I still haven't found a way to solve this problem. It occurs when the
python bindings are already build, and nothing has to be done. The
easiest way out of this is to do a complete clean build.

ruben

On Tue, Aug 4, 2009 at 2:21 PM, Breno<breno [..] ...> wrote:
> Ruben Smits wrote:
>> The python bindings are not working in the 1.0.0 release, a patch is
>> applied on trunk to make this work. You can use trunk instead or apply
>> the patch yourself, its in the attachment.
>>
>> Let me know if it works.
>>
>> Ruben
>>
>> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>>
>>> Ruben Smits,
>>>
>>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>>> Project.
>>>
>>> If you don't want to receive such e-mails, you can change your settings at
>>> http://www.orocos.org/user/7.
>>>
>>> Message:
>>>
>>> Hi Ruben, sorry  contact you directly but I saw on this mailinglist that
>>> someone had tha same problem that a I've been through now.
>>>
>>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>>> last command make I got the error described below:
>>>
>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>> unused parameter ‘q_init’
>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>> unused parameter ‘v_in’
>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>> unused parameter ‘q_out’
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>>> PyObject*)’:
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>> ‘ublas’ has not been declared
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>> expected primary-expression before ‘double’
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>> expected `;' before ‘double’
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>>> ‘Wts’ was not declared in this scope
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>>> PyObject*)’:
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>> ‘ublas’ has not been declared
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>> expected primary-expression before ‘double’
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>> expected `;' before ‘double’
>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>>> ‘Wts’ was not declared in this scope
>>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> If you have any suggestion for me would  be great!!!
>>>
>>> Thanks,
>>>
>>> Breno
>>>
>>>
> Hi Ruben, the patch seems to work out, thanks. But then I execute make
> command again and I got stuck in :
>
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos-kdl
> [ 96%] Generating PyKDL.so
> [ 96%] Built target orocos
> ....
> repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
> I set *ENABLE_TESTS   OFF* on my ccmake file!
>
> Thanks for your support!
>
> Breno
>

[The Orocos Project] Python Bindings

Ruben Smits wrote:
> I still haven't found a way to solve this problem. It occurs when the
> python bindings are already build, and nothing has to be done. The
> easiest way out of this is to do a complete clean build.
>
> ruben
>
> On Tue, Aug 4, 2009 at 2:21 PM, Breno<breno [..] ...> wrote:
>
>> Ruben Smits wrote:
>>
>>> The python bindings are not working in the 1.0.0 release, a patch is
>>> applied on trunk to make this work. You can use trunk instead or apply
>>> the patch yourself, its in the attachment.
>>>
>>> Let me know if it works.
>>>
>>> Ruben
>>>
>>> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>>>
>>>
>>>> Ruben Smits,
>>>>
>>>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>>>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>>>> Project.
>>>>
>>>> If you don't want to receive such e-mails, you can change your settings at
>>>> http://www.orocos.org/user/7.
>>>>
>>>> Message:
>>>>
>>>> Hi Ruben, sorry contact you directly but I saw on this mailinglist that
>>>> someone had tha same problem that a I've been through now.
>>>>
>>>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>>>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>>>> last command make I got the error described below:
>>>>
>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>> unused parameter ‘q_init’
>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>> unused parameter ‘v_in’
>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>> unused parameter ‘q_out’
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>>>> PyObject*)’:
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>> ‘ublas’ has not been declared
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>> expected primary-expression before ‘double’
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>> expected `;' before ‘double’
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>>>> ‘Wts’ was not declared in this scope
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>>>> PyObject*)’:
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>> ‘ublas’ has not been declared
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>> expected primary-expression before ‘double’
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>> expected `;' before ‘double’
>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>>>> ‘Wts’ was not declared in this scope
>>>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>>>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>>>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>> If you have any suggestion for me would be great!!!
>>>>
>>>> Thanks,
>>>>
>>>> Breno
>>>>
>>>>
>>>>
>> Hi Ruben, the patch seems to work out, thanks. But then I execute make
>> command again and I got stuck in :
>>
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos-kdl
>> [ 96%] Generating PyKDL.so
>> [ 96%] Built target orocos
>> ....
>> repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
>> I set *ENABLE_TESTS OFF* on my ccmake file!
>>
>> Thanks for your support!
>>
>> Breno
>>
>>
Hi Ruben, I also tried to execute make inside ../build/tests but it
returned a lot of erros that seems to be a linkage errors with CPPUnit
lib or something alike. See below the extract from my screen:

framestest.cpp:(.text+0x7de2): undefined reference to
`CppUnit::SourceLine::~SourceLine()'
framestest.cpp:(.text+0x7e46): undefined reference to
`CppUnit::SourceLine::SourceLine(std::basic_string<char,
std::char_traits framestest.cpp:(.text+0x7e98): undefined reference to
`CppUnit::assertDoubleEquals(double, double, double,
CppUnit::SourceLine, std::basic_string<char, std::char_traits std::allocator<char> > const&)'
framestest.cpp:(.text+0x7ea0): undefined reference to
`CppUnit::SourceLine::~SourceLine()'
framestest.cpp:(.text+0x7f04): undefined reference to
`CppUnit::SourceLine::SourceLine(std::basic_string<char,
std::char_traits framestest.cpp:(.text+0x7f56): undefined reference to
`CppUnit::assertDoubleEquals(double, double, double,
CppUnit::SourceLine, std::basic_string<char, std::char_traits std::allocator<char> > const&)'
framestest.cpp:(.text+0x7f5e): undefined reference to
`CppUnit::SourceLine::~SourceLine()'
framestest.cpp:(.text+0x7fdd): undefined reference to
`CppUnit::SourceLine::SourceLine(std::basic_string<char,
std::char_traits framestest.cpp:(.text+0x8005): undefined reference to
`CppUnit::SourceLine::~SourceLine()'
framestest.cpp:(.text+0x8069): undefined reference to
`CppUnit::SourceLine::SourceLine(std::basic_string<char,
std::char_traits framestest.cpp:(.text+0x812d): undefined reference to
`CppUnit::assertDoubleEquals(double, double, double,
CppUnit::SourceLine, std::basic_string<char, std::char_traits std::allocator<char> > const&)'
framestest.cpp:(.text+0x8135): undefined reference to
`CppUnit::SourceLine::~SourceLine()'
framestest.cpp:(.text+0x8199): undefined reference to
`CppUnit::SourceLine::SourceLine(std::basic_string<char,
std::char_traits

and goes on...

What u think?

Thnaks again!

Breno

Ruben Smits's picture

[The Orocos Project] Python Bindings

On Tue, Aug 4, 2009 at 3:39 PM, Breno<breno [..] ...> wrote:
> Ruben Smits wrote:
>> I still haven't found a way to solve this problem. It occurs when the
>> python bindings are already build, and nothing has to be done. The
>> easiest way out of this is to do a complete clean build.
>>
>> ruben
>>
>> On Tue, Aug 4, 2009 at 2:21 PM, Breno<breno [..] ...> wrote:
>>
>>> Ruben Smits wrote:
>>>
>>>> The python bindings are not working in the 1.0.0 release, a patch is
>>>> applied on trunk to make this work. You can use trunk instead or apply
>>>> the patch yourself, its in the attachment.
>>>>
>>>> Let me know if it works.
>>>>
>>>> Ruben
>>>>
>>>> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>>>>
>>>>
>>>>> Ruben Smits,
>>>>>
>>>>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>>>>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>>>>> Project.
>>>>>
>>>>> If you don't want to receive such e-mails, you can change your settings at
>>>>> http://www.orocos.org/user/7.
>>>>>
>>>>> Message:
>>>>>
>>>>> Hi Ruben, sorry  contact you directly but I saw on this mailinglist that
>>>>> someone had tha same problem that a I've been through now.
>>>>>
>>>>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>>>>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>>>>> last command make I got the error described below:
>>>>>
>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>> unused parameter ‘q_init’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>> unused parameter ‘v_in’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>> unused parameter ‘q_out’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>>>>> PyObject*)’:
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>> ‘ublas’ has not been declared
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>> expected primary-expression before ‘double’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>> expected `;' before ‘double’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>>>>> ‘Wts’ was not declared in this scope
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>>>>> PyObject*)’:
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>> ‘ublas’ has not been declared
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>> expected primary-expression before ‘double’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>> expected `;' before ‘double’
>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>>>>> ‘Wts’ was not declared in this scope
>>>>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>>>>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>>>>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> If you have any suggestion for me would  be great!!!
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Breno
>>>>>
>>>>>
>>>>>
>>> Hi Ruben, the patch seems to work out, thanks. But then I execute make
>>> command again and I got stuck in :
>>>
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos-kdl
>>> [ 96%] Generating PyKDL.so
>>> [ 96%] Built target orocos
>>> ....
>>> repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
>>> I set *ENABLE_TESTS   OFF* on my ccmake file!
>>>
>>> Thanks for your support!
>>>
>>> Breno
>>>
>>>
> Hi Ruben, I also tried to execute make inside ../build/tests but it
> returned a lot of erros that seems to be a linkage errors with CPPUnit
> lib or something alike. See below the extract from my screen:
>
> framestest.cpp:(.text+0x7de2): undefined reference to
> `CppUnit::SourceLine::~SourceLine()'
> framestest.cpp:(.text+0x7e46): undefined reference to
> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int)'
> framestest.cpp:(.text+0x7e98): undefined reference to
> `CppUnit::assertDoubleEquals(double, double, double,
> CppUnit::SourceLine, std::basic_string<char, std::char_traits > std::allocator<char> > const&)'
> framestest.cpp:(.text+0x7ea0): undefined reference to
> `CppUnit::SourceLine::~SourceLine()'
> framestest.cpp:(.text+0x7f04): undefined reference to
> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int)'
> framestest.cpp:(.text+0x7f56): undefined reference to
> `CppUnit::assertDoubleEquals(double, double, double,
> CppUnit::SourceLine, std::basic_string<char, std::char_traits > std::allocator<char> > const&)'
> framestest.cpp:(.text+0x7f5e): undefined reference to
> `CppUnit::SourceLine::~SourceLine()'
> framestest.cpp:(.text+0x7fdd): undefined reference to
> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int)'
> framestest.cpp:(.text+0x8005): undefined reference to
> `CppUnit::SourceLine::~SourceLine()'
> framestest.cpp:(.text+0x8069): undefined reference to
> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int)'
> framestest.cpp:(.text+0x812d): undefined reference to
> `CppUnit::assertDoubleEquals(double, double, double,
> CppUnit::SourceLine, std::basic_string<char, std::char_traits > std::allocator<char> > const&)'
> framestest.cpp:(.text+0x8135): undefined reference to
> `CppUnit::SourceLine::~SourceLine()'
> framestest.cpp:(.text+0x8199): undefined reference to
> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, int)'
>
>
> and goes on...
>
>
> What u think?

Did you start from a completely clean build directory and disabled the
tests? You should not be getting this if you disable the tests.

Ruben

> Thnaks again!
>
> Breno
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

[The Orocos Project] Python Bindings

Ruben Smits wrote:
> On Tue, Aug 4, 2009 at 3:39 PM, Breno<breno [..] ...> wrote:
>
>> Ruben Smits wrote:
>>
>>> I still haven't found a way to solve this problem. It occurs when the
>>> python bindings are already build, and nothing has to be done. The
>>> easiest way out of this is to do a complete clean build.
>>>
>>> ruben
>>>
>>> On Tue, Aug 4, 2009 at 2:21 PM, Breno<breno [..] ...> wrote:
>>>
>>>
>>>> Ruben Smits wrote:
>>>>
>>>>
>>>>> The python bindings are not working in the 1.0.0 release, a patch is
>>>>> applied on trunk to make this work. You can use trunk instead or apply
>>>>> the patch yourself, its in the attachment.
>>>>>
>>>>> Let me know if it works.
>>>>>
>>>>> Ruben
>>>>>
>>>>> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Ruben Smits,
>>>>>>
>>>>>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>>>>>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>>>>>> Project.
>>>>>>
>>>>>> If you don't want to receive such e-mails, you can change your settings at
>>>>>> http://www.orocos.org/user/7.
>>>>>>
>>>>>> Message:
>>>>>>
>>>>>> Hi Ruben, sorry contact you directly but I saw on this mailinglist that
>>>>>> someone had tha same problem that a I've been through now.
>>>>>>
>>>>>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>>>>>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>>>>>> last command make I got the error described below:
>>>>>>
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>> unused parameter ‘q_init’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>> unused parameter ‘v_in’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>> unused parameter ‘q_out’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>>>>>> PyObject*)’:
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>> ‘ublas’ has not been declared
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>> expected primary-expression before ‘double’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>> expected `;' before ‘double’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>>>>>> ‘Wts’ was not declared in this scope
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>>>>>> PyObject*)’:
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>> ‘ublas’ has not been declared
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>> expected primary-expression before ‘double’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>> expected `;' before ‘double’
>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>>>>>> ‘Wts’ was not declared in this scope
>>>>>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>>>>>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>>>>>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>>>>>> make: *** [all] Error 2
>>>>>>
>>>>>>
>>>>>> If you have any suggestion for me would be great!!!
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Breno
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> Hi Ruben, the patch seems to work out, thanks. But then I execute make
>>>> command again and I got stuck in :
>>>>
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos-kdl
>>>> [ 96%] Generating PyKDL.so
>>>> [ 96%] Built target orocos
>>>> ....
>>>> repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
>>>> I set *ENABLE_TESTS OFF* on my ccmake file!
>>>>
>>>> Thanks for your support!
>>>>
>>>> Breno
>>>>
>>>>
>>>>
>> Hi Ruben, I also tried to execute make inside ../build/tests but it
>> returned a lot of erros that seems to be a linkage errors with CPPUnit
>> lib or something alike. See below the extract from my screen:
>>
>> framestest.cpp:(.text+0x7de2): undefined reference to
>> `CppUnit::SourceLine::~SourceLine()'
>> framestest.cpp:(.text+0x7e46): undefined reference to
>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, int)'
>> framestest.cpp:(.text+0x7e98): undefined reference to
>> `CppUnit::assertDoubleEquals(double, double, double,
>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >> std::allocator<char> > const&)'
>> framestest.cpp:(.text+0x7ea0): undefined reference to
>> `CppUnit::SourceLine::~SourceLine()'
>> framestest.cpp:(.text+0x7f04): undefined reference to
>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, int)'
>> framestest.cpp:(.text+0x7f56): undefined reference to
>> `CppUnit::assertDoubleEquals(double, double, double,
>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >> std::allocator<char> > const&)'
>> framestest.cpp:(.text+0x7f5e): undefined reference to
>> `CppUnit::SourceLine::~SourceLine()'
>> framestest.cpp:(.text+0x7fdd): undefined reference to
>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, int)'
>> framestest.cpp:(.text+0x8005): undefined reference to
>> `CppUnit::SourceLine::~SourceLine()'
>> framestest.cpp:(.text+0x8069): undefined reference to
>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, int)'
>> framestest.cpp:(.text+0x812d): undefined reference to
>> `CppUnit::assertDoubleEquals(double, double, double,
>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >> std::allocator<char> > const&)'
>> framestest.cpp:(.text+0x8135): undefined reference to
>> `CppUnit::SourceLine::~SourceLine()'
>> framestest.cpp:(.text+0x8199): undefined reference to
>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>
>>
>> and goes on...
>>
>>
>> What u think?
>>
>
> Did you start from a completely clean build directory and disabled the
> tests? You should not be getting this if you disable the tests.
>
> Ruben
>
>
>> Thnaks again!
>>
>> Breno
>> --
>> Orocos-Users mailing list
>> Orocos-Users [..] ...
>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>
>>
Sorry, I did a make clean but forgot to disable tests...now the process
seems to be good!!! Having tests disable does not compromise the
operation, is'n it?

Thanks again!!!

Breno

Ruben Smits's picture

[The Orocos Project] Python Bindings

On Tue, Aug 4, 2009 at 4:44 PM, Breno<breno [..] ...> wrote:
> Ruben Smits wrote:
>> On Tue, Aug 4, 2009 at 3:39 PM, Breno<breno [..] ...> wrote:
>>
>>> Ruben Smits wrote:
>>>
>>>> I still haven't found a way to solve this problem. It occurs when the
>>>> python bindings are already build, and nothing has to be done. The
>>>> easiest way out of this is to do a complete clean build.
>>>>
>>>> ruben
>>>>
>>>> On Tue, Aug 4, 2009 at 2:21 PM, Breno<breno [..] ...> wrote:
>>>>
>>>>
>>>>> Ruben Smits wrote:
>>>>>
>>>>>
>>>>>> The python bindings are not working in the 1.0.0 release, a patch is
>>>>>> applied on trunk to make this work. You can use trunk instead or apply
>>>>>> the patch yourself, its in the attachment.
>>>>>>
>>>>>> Let me know if it works.
>>>>>>
>>>>>> Ruben
>>>>>>
>>>>>> On Tue, Aug 4, 2009 at 5:11 AM, breno [..] ...<breno [..] ...> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Ruben Smits,
>>>>>>>
>>>>>>> brenodee (http://www.orocos.org/users/brenodee) has sent you a message via
>>>>>>> your contact form (http://www.orocos.org/user/7/contact) at The Orocos
>>>>>>> Project.
>>>>>>>
>>>>>>> If you don't want to receive such e-mails, you can change your settings at
>>>>>>> http://www.orocos.org/user/7.
>>>>>>>
>>>>>>> Message:
>>>>>>>
>>>>>>> Hi Ruben, sorry  contact you directly but I saw on this mailinglist that
>>>>>>> someone had tha same problem that a I've been through now.
>>>>>>>
>>>>>>> I'trying to compile the kdl-1.0.0 with python bindings. I followed the
>>>>>>> instruction on http://www.orocos.org/kdl/Installation_Manual, but at the
>>>>>>> last command make I got the error described below:
>>>>>>>
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>>> unused parameter ‘q_init’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>>> unused parameter ‘v_in’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/chainiksolvervel_wdls.hpp:81: warning:
>>>>>>> unused parameter ‘q_out’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightTS(PyObject*,
>>>>>>> PyObject*)’:
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>>> ‘ublas’ has not been declared
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>>> expected primary-expression before ‘double’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:338: error:
>>>>>>> expected `;' before ‘double’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:339: error:
>>>>>>> ‘Wts’ was not declared in this scope
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip: In function
>>>>>>> ‘PyObject* meth_ChainIkSolverVel_wdls_setWeightJS(PyObject*,
>>>>>>> PyObject*)’:
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>>> ‘ublas’ has not been declared
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>>> expected primary-expression before ‘double’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:356: error:
>>>>>>> expected `;' before ‘double’
>>>>>>> /home/breno/Desktop/kdl-1.0.0/src/bindings/python/kinfam.sip:357: error:
>>>>>>> ‘Wts’ was not declared in this scope
>>>>>>> make[3]: *** [sipPyKDLChainIkSolverVel_wdls.o] Error 1
>>>>>>> make[2]: *** [src/bindings/python/PyKDL.so] Error 2
>>>>>>> make[1]: *** [src/bindings/python/CMakeFiles/python.dir/all] Error 2
>>>>>>> make: *** [all] Error 2
>>>>>>>
>>>>>>>
>>>>>>> If you have any suggestion for me would  be great!!!
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Breno
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>> Hi Ruben, the patch seems to work out, thanks. But then I execute make
>>>>> command again and I got stuck in :
>>>>>
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos-kdl
>>>>> [ 96%] Generating PyKDL.so
>>>>> [ 96%] Built target orocos
>>>>> ....
>>>>> repeatedly for a long time. Is it normal? Is it gonna stop? By the way,
>>>>> I set *ENABLE_TESTS   OFF* on my ccmake file!
>>>>>
>>>>> Thanks for your support!
>>>>>
>>>>> Breno
>>>>>
>>>>>
>>>>>
>>> Hi Ruben, I also tried to execute make inside ../build/tests but it
>>> returned a lot of erros that seems to be a linkage errors with CPPUnit
>>> lib or something alike. See below the extract from my screen:
>>>
>>> framestest.cpp:(.text+0x7de2): undefined reference to
>>> `CppUnit::SourceLine::~SourceLine()'
>>> framestest.cpp:(.text+0x7e46): undefined reference to
>>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>> framestest.cpp:(.text+0x7e98): undefined reference to
>>> `CppUnit::assertDoubleEquals(double, double, double,
>>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >>> std::allocator<char> > const&)'
>>> framestest.cpp:(.text+0x7ea0): undefined reference to
>>> `CppUnit::SourceLine::~SourceLine()'
>>> framestest.cpp:(.text+0x7f04): undefined reference to
>>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>> framestest.cpp:(.text+0x7f56): undefined reference to
>>> `CppUnit::assertDoubleEquals(double, double, double,
>>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >>> std::allocator<char> > const&)'
>>> framestest.cpp:(.text+0x7f5e): undefined reference to
>>> `CppUnit::SourceLine::~SourceLine()'
>>> framestest.cpp:(.text+0x7fdd): undefined reference to
>>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>> framestest.cpp:(.text+0x8005): undefined reference to
>>> `CppUnit::SourceLine::~SourceLine()'
>>> framestest.cpp:(.text+0x8069): undefined reference to
>>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>> framestest.cpp:(.text+0x812d): undefined reference to
>>> `CppUnit::assertDoubleEquals(double, double, double,
>>> CppUnit::SourceLine, std::basic_string<char, std::char_traits >>> std::allocator<char> > const&)'
>>> framestest.cpp:(.text+0x8135): undefined reference to
>>> `CppUnit::SourceLine::~SourceLine()'
>>> framestest.cpp:(.text+0x8199): undefined reference to
>>> `CppUnit::SourceLine::SourceLine(std::basic_string<char,
>>> std::char_traits<char>, std::allocator<char> > const&, int)'
>>>
>>>
>>> and goes on...
>>>
>>>
>>> What u think?
>>>
>>
>> Did you start from a completely clean build directory and disabled the
>> tests? You should not be getting this if you disable the tests.
>>
>> Ruben
>>
>>
>>> Thnaks again!
>>>
>>> Breno
>>> --
>>> Orocos-Users mailing list
>>> Orocos-Users [..] ...
>>> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>>>
>>>
> Sorry, I did a make clean but forgot to disable tests...now the process
> seems to be good!!! Having tests disable does not compromise the
> operation, is'n it?

No it just checks if the code still works, it is not useful for external code.

Ruben