Powered by Blogger.

Tuesday, September 8, 2009

Compile Opencv with Mac os Snow Leopard 10.6

Today i try install OpenCv in my MacOs Snow Leopard 10.6 and have this error:

error: CPU you selected does not support x86-64 instruction set

The searching in google have the solution

go to opencv folder and edit configure file, searchi prescott and replace the line

DEFAULT_CXXFLAGS="-g -march=prescott -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"

with this:

DEFAULT_CXXFLAGS="-g -march=i686 -m32 -ffast-math -fomit-frame-pointer $DEFAULT_CXXFLAGS"

But when i try to compile i have other error i now looking for how to resolve it

Now i can install opencv lib with macport!!!
Published: By: David Millán Escrivá - 5:47 PM