Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ffmpeg osx #25

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions travis/build-wheels-osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ echo 'PYTHON_VERSION: '$PYTHON_VERSION
echo 'PIP and brew installs'

pip install -r requirements.txt
brew install ffmpeg
ffmpeg -L

echo 'Config make'

Expand All @@ -18,13 +20,8 @@ cd build

if [[ $PYTHON_VERSION == 2* ]]; then
echo 'Config for Py2'
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_opencv_python3=OFF -D BUILD_opencv_java=OFF -D BUILD_SHARED_LIBS=OFF -D WITH_LAPACK=OFF \
-D PYTHON2_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-D PYTHON2_LIBRARY=/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/bin \
-D PYTHON2_INCLUDE_DIR=/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 \
-D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF ..
brew tap homebrew/science
brew install --force opencv3 --with-static
fi

if [[ $PYTHON_VERSION == 34 ]]; then
Expand Down Expand Up @@ -69,7 +66,7 @@ cd ../..

if [[ $PYTHON_VERSION == 2* ]]; then
echo 'Copying *.so for Py2'
cp opencv/build/lib/cv2.so cv2/
cp /usr/local/opt/opencv3/lib/python2.7/site-packages/cv2.so cv2/
fi

if [[ $PYTHON_VERSION == 3* ]]; then
Expand Down