Geeks making the world a bit better.

Making CVtypes work on the Mac

I’m writing this down because I don’t see complete working (for me at least) directions anywhere else.

  1. Install xcode from the Mac OS X install CD
  2. MacPorts (everyone calls it DarwinPorts)
  3. Get and unpack the opencv source tarball
  4. cd opencv; mkdir build; cd build
  5. ../configure CPPFLAGS=”-I/opt/local/include” LDFLAGS=”-L/opt/local/lib” –without-python
  6. make
  7. sudo make install

I also needed the macam webcam driver to use my Logitech webcam. I believe the notebooks have a camera built in so you should be good to go on one of those.

I’m getting tons of error messages like these as my app is running and I’m only getting about 5 frames per second. What’s up with that?

2008-02-14 09:00:23.983 Python[85901:6d37] *** Break on _NSLockError() to debug.
2008-02-14 09:00:24.179 Python[85901:880f] *** -[NSLock unlock]: lock ( '(null)') unlocked from thread which did not lock it

Also, I note that video doesn’t start until I move the mouse. Are these macam bugs?

4 comments

#1 Stephen Emslie on 02.14.08 at 10:12 am

Thanks for keeping into python and OpenCV working together!

#2 Tanner Lovelace on 02.14.08 at 12:32 pm

FYI, it’s not called Darwin Ports anymore. Darwin Ports has been superseded by MacPorts.

#3 gb on 02.14.08 at 1:49 pm

The error message above is apparently related to the 10.5 release of OS X. I see lots of questions about it in various contexts.

#4 Peter Parente on 04.11.08 at 9:04 am

macam bug

http://sourceforge.net/tracker/index.php?func=detail&aid=1864618&group_id=44375&atid=439342

Leave a Comment