Quantcast
Channel: "mach-o, but wrong architecture" in OpenCv (Leopard) - Stack Overflow
Viewing all articles
Browse latest Browse all 2

"mach-o, but wrong architecture" in OpenCv (Leopard)

$
0
0

I have installed OpenCV from this doc with CMake .My ~/.profile file is :

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/export ARCHFLAGS="-arch i386 -arch x86_64"export ARCHFLAGS="-arch i386"export VERSIONER_PYTHON_PREFER_64_BIT=yesexport VERSIONER_PYTHON_PREFER_32_BIT=noexport PATH=/opt/local/bin:/opt/local/sbin:$PATHexport PYTHONPATH=/Library/Python/2.6/site-packages:$PYTHONPATH    export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib

With import cv I have this error:

Traceback (most recent call last):File "<stdin>", line 1, in <module>  File "/usr/local/lib/python2.6/site-packages/cv.py", line 1, in <module>    from cv2.cv import *ImportError: dlopen(/usr/local/lib/python2.6/site-packages/cv2.so, 2): no suitable image found.  Did find:    /usr/local/lib/python2.6/site-packages/cv2.so: mach-o, but wrong architecture

My python architecture:

file "$( "$(which python)" -c "import sys;print(sys.executable)" )"/usr/bin/python: Mach-O universal binary with 3 architectures/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable x86_64/usr/bin/python (for architecture i386):    Mach-O executable i386/usr/bin/python (for architecture ppc7400): Mach-O executable ppc

I have read and run all answers about OpenCV and Leopard in stackoverflow but still above error.Any help about this will be appreciated.

Thanks in advance


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>