rbgirshick / voc-dpm

Object detection system using deformable part models (DPMs) and latent SVM (voc-release5). You may want to use the latest tarball on my website. The github code may include code changes that have not been tested as thoroughly and will not necessarily reproduce the results on the website.
http://www.cs.berkeley.edu/~rbg/latent/
MIT License
577 stars 308 forks source link

failed to compile in mac os10.11, fv_cached compilation failed #11

Open yiwan-rl opened 8 years ago

yiwan-rl commented 8 years ago

When running your compile.m, I see this warning Warning: Maybe you need to call fv_cache('unlock') first?

In fv_compile (line 52) In compile (line 48) which means I can not successfully compile fv_cache.cc function. I saw your comment in this exception, but I don't know how to solve this problem. There is one guy in stack overflow suggested that he has met the same problem, and he solve it by installing gcc48. http://stackoverflow.com/questions/24150718/voc-release-5-demo-m-is-not-working/33789824#33789824 Is that the correct way?

ElaineJiang commented 8 years ago

Any idea on how to fix this? I tried gcc48/gcc47/gcc46 but none of them works for Mac.

misskanagi commented 7 years ago

I think it is because that osx's clang does not contain OpenMP library and mex needs OMP when compiling fv_cache. But I have not got any idea on how to fix this.