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 (<a href="https://github.com/wjwwood/ros-osx/wiki">https://github.com/wjwwood/ros-osx/wiki</a>).  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).<div>

<br></div><div>--</div><div><br clear="all">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>William Woodall<br>Graduate Software Engineering<br>Auburn University<br><a href="mailto:w@auburn.edu" target="_blank">w@auburn.edu</a><br><a href="mailto:wjwwood@gmail.com" target="_blank">wjwwood@gmail.com</a><div>

<a href="http://williamjwoodall.com" target="_blank">williamjwoodall.com</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><br>
<br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 7:13 PM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Mon, Aug 15, 2011 at 3:43 PM, William Woodall <<a href="mailto:wjwwood@gmail.com">wjwwood@gmail.com</a>> wrote:<br>
> On my setup I had to add this:<br>
><br>
>  find_package(PythonInterp REQUIRED)<br>
><br>
> +find_package(PythonLibs REQUIRED)<br>
><br>
>  list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)<br>
><br>
>  find_package(SIP REQUIRED)<br>
><br>
>  include(SIPMacros)<br>
><br>
><br>
> -include_directories(${SIP_INCLUDE_DIR})<br>
><br>
> +include_directories(${SIP_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})<br>
<br>
> Does this seem like it should be necessary?<br>
<br>
</div>What did that change do?  Last time I tried to build on 10.6, I ran<br>
into trouble with sip because orocos's build was consistently finding<br>
MacPorts Python 2.7, instead of either of the 2.6 installations.<br>
Maybe your patch addresses that problem...<br>
<font color="#888888"><br>
        brian.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br></div>