編輯:好的,我已經將這個問題推廣到希望能夠得到答案。我最後關心的是以某種方式將openCV安裝到Mac電腦上的Enthought python發行版中。任何幫助都將不勝感激,腳本並不在我身後,但我對計算機編程缺乏足夠的瞭解,無法確定這些參數的含義以及Linux與Mac之間的差異。如何在mac上安裝opencv到Enthought python發行版
提示:我一直在關注這個網站上找到的準則,但它是Linux和失敗95%進入 「make」 命令: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
其次:
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
構建日誌說什麼?您確定導出的路徑指向正確的位置嗎? – Saucier