installieren Edit: Okay, ich habe die Frage mehr in der Hoffnung, dass ich eine Antwort bekomme verallgemeinert. Am Ende interessiert mich schließlich irgendwie, openCV in die Enthought-Python-Distribution auf einem Mac-Computer zu installieren. Jede Hilfe würde sehr geschätzt werden, das Scripting ist nicht über mich hinaus, aber ich habe nicht genug Verständnis von Computerprogrammierung, um herauszufinden, was diese Parameter bedeuten und was anders als Linux vs Mac sein muss.Wie OpenCV in Enthought Python-Distribution auf dem Mac
Hinweis: Ich habe im Anschluss an den auf dieser Website Richtlinien, aber es ist für Linux und es nicht 95% in den "make" Befehl: http://pyetc.wordpress.com/2013/01/09/installing-the-enthought-python-distribution-with-opencv/
export EPDPATH=$HOME/.local/epd-7.3-2-rh5-x86_64
# prepend the EPD bin dir to your path to make your shell prefer the EPD python interpreter to the system python interpreter
export PATH=$EPDPATH/bin:$PATH
# also the python packages should be searched in the correct location
export PYTHONPATH=$EPDPATH/lib/python2.7/site-packages
Gefolgt von:
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX:PATH=$HOME/.local -D PYTHON_EXECUTABLE:FILEPATH=$EPDPATH/bin/python -D PYTHON_INCLUDE_DIR:PATH=$EPDPATH/include/python2.7 -D PYTHON_LIBRARY:FILEPATH=$EPDPATH/lib/libpython2.7.so -D PYTHON_LIBRARY_PATH:UNINITIALIZED=$EPDPATH/lib/libpython2.7.so -D PYTHON_NUMPY_INCLUDE_DIR:PATH=$EPDPATH/lib/python2.7/site-packages/numpy/core/include -D PYTHON_PACKAGES_PATH:PATH=$EPDPATH/lib/python2.7/site-packages -D SPHINX_BUILD:FILEPATH=$EPDPATH/bin/sphinx-build -D PYTHONINTERP_FOUND=1 -D BUILD_PYTHON_SUPPORT=ON -D INSTALL_PYTHON_EXAMPLES:BOOL=ON ..
make
make install
Was sagt das Buildprotokoll? Sind Sie sicher, dass die exportierten Pfade auf die richtigen Positionen zeigen? – Saucier