[ros-users] compile problem nodelet in OSX

Kevin Walchko kevin.walchko at gmail.com
Sun Sep 4 15:28:55 UTC 2011


Brian,

I finally got Homebrew working with only OpenCV 2.3.1 in it. The rest of my needs are satisfied with Macports. I changed William's opencv.rb formula so that it doesn't have any depends in it, shown below:

require 'formula'

class Opencv < Formula
  url 'http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.3.1/OpenCV-2.3.1.tar.bz2'
  version "2.3.1"
  homepage 'http://opencv.willowgarage.com/wiki/'
  md5 '827c9f8aa14384c531c73aa165f9b777'

  def install
    makefiles = "cmake . "
    system makefiles
    system "make"
    system "make install"
  end

  def caveats; <<-EOS.undent
    The OpenCV Python module will not work until you edit your PYTHONPATH like so:
      export PYTHONPATH="#{HOMEBREW_PREFIX}/lib/python2.7/site-packages/:$PYTHONPATH"

    To make this permanent, put it in your shell's profile (e.g. ~/.profile).
    EOS
  end
end

It compiles and installs fine. Later I will play with changing options (tbb, eigen, ffmpeg, etc), but this appears to compile most of what I need (python 2.7, QT, etc).

My problem now is, when I run some of my code that uses OpenCV, it crashes with "terminate called throwing an exceptionAbort trap: 6" and I have no idea what is going on. The really weird thing is when I switch back to my Diamondback ROS, using this same code (just recompiling to ensure it is using this Homebrew OpenCV) no crash, so I am thinking it is not Homebrew OpenCV but something else.


On Sep 2, 2011, at 2:44 PM, Brian Gerkey wrote:

> On Fri, Sep 2, 2011 at 10:37 AM, Kevin Walchko <kevin.walchko at gmail.com> wrote:
>> I don't like installing source code I can't easily remove. That is why I put up with macports.
> 
> hi Kevin,
> 
> That's a fair point.  But it's also an indictment of entire source
> rosdep approach to pulling in third-party stuff.  Can you suggest an
> alternative?
> 
> We need a way to install code that isn't available (or at least isn't
> available at the needed version, or in the needed configuration) from
> an OS's package manager.
> 
> 	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/20110904/f4625664/attachment-0002.html>


More information about the ros-users mailing list