Skip to content

Commit 731e0d4

Browse files
techdragonskvark
authored andcommitted
MacOS FFMpeg builds. (#56)
* Build LGPL FFmpeg shared libraries. OpenCV should automatically use them. * Also disable the x264 encoder. * Also disable xvid * Confirm FFmpeg is being built correctly. * Make log easier to read. * Travis-CI Mac environment only has 2 cores.
1 parent 228b6ab commit 731e0d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

travis/build-wheels-osx.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ echo 'PIP and brew installs'
1010

1111
pip install "$BUILD_DEPENDS"
1212

13+
echo 'Installing QT4'
1314
brew tap cartr/qt4
1415
brew tap-pin cartr/qt4
1516
brew install qt@4
17+
echo '-----------------'
18+
echo 'Installing FFmpeg'
19+
brew install ffmpeg --without-x264 --without-xvid --without-gpl
20+
brew info ffmpeg
21+
echo '-----------------'
1622

1723
qmake -query
1824

@@ -113,13 +119,13 @@ echo 'Begin build'
113119

114120
if [[ $PYTHON_VERSION == 2* ]]; then
115121
echo 'Build for Py2'
116-
make -j8 opencv_python2
122+
make -j2 opencv_python2
117123

118124
fi
119125

120126
if [[ $PYTHON_VERSION == 3* ]]; then
121127
echo 'Build for Py3'
122-
make -j8 opencv_python3
128+
make -j2 opencv_python3
123129

124130
fi
125131

0 commit comments

Comments
 (0)