The NULL pointer segfault you got there is related to using the gtk and there for X11 version of wx.  See <a href="https://code.ros.org/trac/ros-pkg/ticket/4788#comment:8">https://code.ros.org/trac/ros-pkg/ticket/4788#comment:8</a>:<br>

<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

I haven't investigated this thoroughly but I think it's because Ogre is expecting an NSView or an OgreView but gets something GTK/X11 related. According to the wxWidgets documentation Cocoa is not well supported yet so I didn't go further down this path.</blockquote>

<br>He ends up building it i386 and native carbon to make things work, which is the point at which we went +no_x11 -carbon +cocoa on macports and all i386 in ROS.<div><br></div><div><a href="https://github.com/wjwwood/ros-osx/wiki">https://github.com/wjwwood/ros-osx/wiki</a><div>

<br></div><div>Hope that helps,<br><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 Sat, Aug 6, 2011 at 2:27 PM, Mark Moll <span dir="ltr"><<a href="mailto:mmoll@rice.edu" target="_blank">mmoll@rice.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I followed the instructions to install electric turtle (<a href="http://www.ros.org/wiki/electric/Installation/OSX" target="_blank">http://www.ros.org/wiki/electric/Installation/OSX</a>) on OS X 10.7. It turns out that wxWidgets/wxPython wasn’t really a problem, because the MacPorts version defaults to using gtk rather than Carbon. I also tried the 2.9 development version of wxPython and compile everything with the Cocoa backend rather than Carbon or gtk, but that seemed very unstable: many of the wxPython sample programs crashed.<br>



<br>
I compiled all ports as 64-bit. Below are some more detailed notes. In the end rviz compiles, but crashes when I try to run it. I see the start-up window and then it dies with this trace:<br>
<br>
        [ INFO] [1312658033.261777000]: Loading general config from [/Users/mmoll/.rviz/config]<br>
        [ INFO] [1312658033.261972000]: Loading display config from [/Users/mmoll/.rviz/display_config]<br>
        Reading symbols for shared libraries . done<br>
        Reading symbols for shared libraries . done<br>
<br>
        Program received signal EXC_BAD_ACCESS, Could not access memory.<br>
        Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000<br>
        0x000000010249e7a7 in Ogre::RenderSystem::attachRenderTarget ()<br>
<br>
Maybe there is still something wrong in the way Ogre is built/installed/linked?<br>
<br>
<br>
<br>
* Installed Cg framework from NVIDIA in /Library/Frameworks, used install_name_tool to set rpath to /Library/Frameworks/Cg.framework<br>
<br>
<br>
* MacPorts<br>
<br>
  Applied patch to gtk2 port: <a href="https://trac.macports.org/ticket/30281" target="_blank">https://trac.macports.org/ticket/30281</a><br>
  Added ports for ogre and tinyxml. The ogre port does *not* include libOIS, which depends on Carbon.<br>
  Fixed collada-dom port<br>
  Removed assimp, eigen3, collada-dom from manifest files and installed corresponding ports.<br>
<br>
<br>
* ROS<br>
  rosconsole:  used g++-4.2 rather than c++ (= llvm-g++-4.2) to avoid internal compiler error<br>
<br>
  urdf, urdf_parser, rviz:<br>
  add "add_definitions(-DTIXML_USE_STL)" to CMakeLists.txt<br>
<br>
  rviz:<br>
--- src/rviz/visualizer_app.cpp (revision 37704)<br>
+++ src/rviz/visualizer_app.cpp (working copy)<br>
@@ -292,7 +292,7 @@<br>
       // Wait for any signals<br>
       sigfillset(&signal_set);<br>
<br>
-#if defined(__WXMAC__)<br>
+#if 1 //defined(__WXMAC__)<br>
       int sig;<br>
       sigwait(&signal_set, &sig);<br>
 #else<br>
<br>
<br>
added this to .bash_profile:<br>
export DYLD_FALLBACK_FRAMEWORK_PATH=$DYLD_FALLBACK_FRAMEWORK_PATH:/opt/local/Library/Frameworks<br>
<div><div></div><div><br>
<br>
--<br>
Mark Moll<br>
<br>
<br>
<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">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></div></div>