[ros-users] python_orocos_kdl eigen2 dependency

William Woodall wjwwood at gmail.com
Tue Aug 16 01:17:35 UTC 2011


Without the find_package on PythonLibs and adding them to the includes my
build failed not being able to find Python.h, so I added those and it fixed
it, honestly I don't know how it worked without that.  Though, I do remember
that there was an issue with how FindPython* from cmake found python, in
that no matter what you did with python_select it would always find Python
2.7 instead of 2.6 if it was installed.  This was on 10.6 and is why we
advised the global `+universal -python27 +python26` variants in our old
instructions (https://github.com/wjwwood/ros-osx/wiki).  The way we worked
around that was to build everything for py26 and made sure Macports never
installed 2.7.  But since I am now using the built in python and have no
others installed that hasn't been an issue.  My friend John also initially
worked around that problem by modifying the FindPython*.cmake to make it
find the one he wanted.  We had the problem that things like tf would build
against the wrong python.  Hopefully, this isn't going to be an issue
anymore because there are only three python instances with my homebrew setup
(apple's 2.5, 2.6, and 2.7).

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William Woodall
Graduate Software Engineering
Auburn University
w at auburn.edu
wjwwood at gmail.com
williamjwoodall.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



On Mon, Aug 15, 2011 at 7:13 PM, Brian Gerkey <gerkey at willowgarage.com>wrote:

> On Mon, Aug 15, 2011 at 3:43 PM, William Woodall <wjwwood at gmail.com>
> wrote:
> > On my setup I had to add this:
> >
> >  find_package(PythonInterp REQUIRED)
> >
> > +find_package(PythonLibs REQUIRED)
> >
> >  list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
> >
> >  find_package(SIP REQUIRED)
> >
> >  include(SIPMacros)
> >
> >
> > -include_directories(${SIP_INCLUDE_DIR})
> >
> > +include_directories(${SIP_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
>
> > Does this seem like it should be necessary?
>
> What did that change do?  Last time I tried to build on 10.6, I ran
> into trouble with sip because orocos's build was consistently finding
> MacPorts Python 2.7, instead of either of the 2.6 installations.
> Maybe your patch addresses that problem...
>
>        brian.
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110815/9a6415ba/attachment-0002.html>


More information about the ros-users mailing list