Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv-python
提交
363e0e65
O
opencv-python
项目概览
OpenCV
/
opencv-python
8 个月 前同步成功
通知
228
Star
3706
Fork
754
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv-python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
363e0e65
编写于
3月 04, 2022
作者:
A
Andrey Senyaev
提交者:
GitHub
3月 04, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #628 from asenyaev/3.4
Update 3.4 branch with latest updates in master
上级
dd73e24e
658b0b21
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
96 addition
and
92 deletion
+96
-92
.github/workflows/build_wheels_macos.yml
.github/workflows/build_wheels_macos.yml
+1
-0
.github/workflows/build_wheels_windows.yml
.github/workflows/build_wheels_windows.yml
+3
-3
docker/manylinux2014/Dockerfile_aarch64
docker/manylinux2014/Dockerfile_aarch64
+27
-20
docker/manylinux2014/Dockerfile_i686
docker/manylinux2014/Dockerfile_i686
+32
-24
docker/manylinux2014/Dockerfile_x86_64
docker/manylinux2014/Dockerfile_x86_64
+23
-17
setup.py
setup.py
+1
-0
travis_config.sh
travis_config.sh
+9
-28
未找到文件。
.github/workflows/build_wheels_macos.yml
浏览文件 @
363e0e65
...
...
@@ -55,6 +55,7 @@ jobs:
USE_CCACHE
:
1
UNICODE_WIDTH
:
32
PLAT
:
x86_64
FFMPEG_FORMULA_VERSION
:
'
@4'
SDIST
:
${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS
:
${{ matrix.without_gui }}
ENABLE_CONTRIB
:
${{ matrix.with_contrib }}
...
...
.github/workflows/build_wheels_windows.yml
浏览文件 @
363e0e65
...
...
@@ -21,7 +21,7 @@ jobs:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
windows-
latest
]
os
:
[
windows-
2019
]
python-version
:
[
'
3.6'
]
platform
:
[
x86
,
x64
]
with_contrib
:
[
0
,
1
]
...
...
@@ -53,7 +53,7 @@ jobs:
architecture
:
${{ matrix.platform }}
-
name
:
Setup MSBuild.exe
uses
:
warrenbuckley/Setup-MSBuild@v
1
uses
:
microsoft/setup-msbuild@v1.
1
-
name
:
Build a package
run
:
|
...
...
@@ -86,7 +86,7 @@ jobs:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
windows-
latest
]
os
:
[
windows-
2019
]
python-version
:
[
'
3.6'
,
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
platform
:
[
x86
,
x64
]
with_contrib
:
[
0
,
1
]
...
...
docker/manylinux2014/Dockerfile_aarch64
浏览文件 @
363e0e65
FROM quay.io/pypa/manylinux2014_aarch64:latest
ARG CCACHE_VERSION=3.7.9
ARG FFMPEG_VERSION=4.4.1
ARG NASM_VERSION=2.15.04
ARG OPENSSL_VERSION=1_1_1m
ARG QT_VERSION=5.15.0
ARG YASM_VERSION=1.3.0
RUN yum install bzip2-devel curl-devel zlib-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel freetype-devel -y
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
5.15.0/single/qt-everywhere-src-5.15.0
.tar.xz && \
tar -xf qt-everywhere-src-
5.15.0
.tar.xz && \
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
${QT_VERSION}/single/qt-everywhere-src-${QT_VERSION}
.tar.xz && \
tar -xf qt-everywhere-src-
${QT_VERSION}
.tar.xz && \
cd qt-everywhere* && \
export MAKEFLAGS=-j$(nproc) && \
./configure -prefix /opt/Qt
5.15.0
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
./configure -prefix /opt/Qt
${QT_VERSION}
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
make && \
make install && \
cd .. && \
rm -rf qt-everywhere-src-
5.15.0
&& \
rm qt-everywhere-src-
5.15.0
.tar.xz
rm -rf qt-everywhere-src-
${QT_VERSION}
&& \
rm qt-everywhere-src-
${QT_VERSION}
.tar.xz
ENV QTDIR /opt/Qt
5.15.0
ENV QTDIR /opt/Qt
${QT_VERSION}
ENV PATH "$QTDIR/bin:$PATH"
RUN mkdir ~/ffmpeg_sources && \
cd ~/ffmpeg_sources && \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
1_1_1g
.tar.gz && \
tar -xf OpenSSL_
1_1_1g
.tar.gz && \
cd openssl-OpenSSL_
1_1_1g
&& \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
tar -xf OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
cd openssl-OpenSSL_
${OPENSSL_VERSION}
&& \
./config --prefix="$HOME/ffmpeg_build" --openssldir="$HOME/ffmpeg_build" no-pinshared shared zlib && \
make -j$(getconf _NPROCESSORS_ONLN) && \
# skip installing documentation
...
...
@@ -28,16 +35,16 @@ RUN mkdir ~/ffmpeg_sources && \
rm -rf ~/openssl_build
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
2.15.04/nasm-2.15.04
.tar.bz2 && \
tar -xf nasm-
2.15.04.tar.bz2 && cd nasm-2.15.04
&& ./autogen.sh && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
${NASM_VERSION}/nasm-${NASM_VERSION}
.tar.bz2 && \
tar -xf nasm-
${NASM_VERSION}.tar.bz2 && cd nasm-${NASM_VERSION}
&& ./autogen.sh && \
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
1.3.0
.tar.gz && \
tar -xf yasm-
1.3.0
.tar.gz && \
cd yasm-
1.3.0
&& \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
${YASM_VERSION}
.tar.gz && \
tar -xf yasm-
${YASM_VERSION}
.tar.gz && \
cd yasm-
${YASM_VERSION}
&& \
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
...
...
@@ -50,9 +57,9 @@ RUN cd ~/ffmpeg_sources && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
4.3.2
.tar.bz2 && \
tar -xf ffmpeg-
4.3.2
.tar.bz2 && \
cd ffmpeg-
4.3.2
&& \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
tar -xf ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
cd ffmpeg-
${FFMPEG_VERSION}
&& \
PATH=~/bin:$PATH && \
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --enable-openssl --enable-libvpx --enable-shared --enable-pic --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
...
...
@@ -61,9 +68,9 @@ RUN cd ~/ffmpeg_sources && \
ldconfig && \
rm -rf ~/ffmpeg_sources
RUN curl -O -L https://github.com/ccache/ccache/releases/download/v
3.7.9/ccache-3.7.9
.tar.gz && \
tar -xf ccache-
3.7.9
.tar.gz && \
cd ccache-
3.7.9
&& \
RUN curl -O -L https://github.com/ccache/ccache/releases/download/v
${CCACHE_VERSION}/ccache-${CCACHE_VERSION}
.tar.gz && \
tar -xf ccache-
${CCACHE_VERSION}
.tar.gz && \
cd ccache-
${CCACHE_VERSION}
&& \
linux32 ./configure && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
...
...
docker/manylinux2014/Dockerfile_i686
浏览文件 @
363e0e65
FROM quay.io/pypa/manylinux2014_i686:latest
ARG CCACHE_VERSION=3.7.9
ARG CMAKE_VERSION=3.17.0
ARG FFMPEG_VERSION=4.4.1
ARG NASM_VERSION=2.15.04
ARG OPENSSL_VERSION=1_1_1m
ARG QT_VERSION=5.15.0
ARG YASM_VERSION=1.3.0
RUN yum install bzip2-devel curl-devel zlib-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel freetype-devel -y
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
5.15.0/single/qt-everywhere-src-5.15.0
.tar.xz && \
tar -xf qt-everywhere-src-
5.15.0
.tar.xz && \
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
${QT_VERSION}/single/qt-everywhere-src-${QT_VERSION}
.tar.xz && \
tar -xf qt-everywhere-src-
${QT_VERSION}
.tar.xz && \
cd qt-everywhere* && \
export MAKEFLAGS=-j$(nproc) && \
./configure -prefix /opt/Qt
5.15.0
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
./configure -prefix /opt/Qt
${QT_VERSION}
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
make && \
make install && \
cd .. && \
rm -rf qt-everywhere-src-
5.15.0
&& \
rm qt-everywhere-src-
5.15.0
.tar.xz
rm -rf qt-everywhere-src-
${QT_VERSION}
&& \
rm qt-everywhere-src-
${QT_VERSION}
.tar.xz
ENV QTDIR /opt/Qt
5.15.0
ENV QTDIR /opt/Qt
${QT_VERSION}
ENV PATH "$QTDIR/bin:$PATH"
RUN mkdir ~/ffmpeg_sources && \
cd ~/ffmpeg_sources && \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
1_1_1g
.tar.gz && \
tar -xf OpenSSL_
1_1_1g
.tar.gz && \
cd openssl-OpenSSL_
1_1_1g
&& \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
tar -xf OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
cd openssl-OpenSSL_
${OPENSSL_VERSION}
&& \
# in i686, ./config detects x64 in i686 container without linux32
# when run from "docker build"
linux32 ./config --prefix="$HOME/ffmpeg_build" no-pinshared shared zlib && \
...
...
@@ -30,16 +38,16 @@ RUN mkdir ~/ffmpeg_sources && \
rm -rf ~/openssl_build
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
2.15.04/nasm-2.15.04
.tar.bz2 && \
tar -xf nasm-
2.15.04.tar.bz2 && cd nasm-2.15.04
&& ./autogen.sh && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
${NASM_VERSION}/nasm-${NASM_VERSION}
.tar.bz2 && \
tar -xf nasm-
${NASM_VERSION}.tar.bz2 && cd nasm-${NASM_VERSION}
&& ./autogen.sh && \
linux32 ./configure && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
1.3.0
.tar.gz && \
tar -xf yasm-
1.3.0
.tar.gz && \
cd yasm-
1.3.0
&& \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
${YASM_VERSION}
.tar.gz && \
tar -xf yasm-
${YASM_VERSION}
.tar.gz && \
cd yasm-
${YASM_VERSION}
&& \
linux32 ./configure && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
...
...
@@ -52,9 +60,9 @@ RUN cd ~/ffmpeg_sources && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
4.3.2
.tar.bz2 && \
tar -xf ffmpeg-
4.3.2
.tar.bz2 && \
cd ffmpeg-
4.3.2
&& \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
tar -xf ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
cd ffmpeg-
${FFMPEG_VERSION}
&& \
PATH=~/bin:$PATH && \
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" linux32 ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --enable-openssl --enable-libvpx --enable-shared --enable-pic --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
...
...
@@ -63,22 +71,22 @@ RUN cd ~/ffmpeg_sources && \
ldconfig && \
rm -rf ~/ffmpeg_sources
RUN curl -O -L https://github.com/ccache/ccache/releases/download/v
3.7.9/ccache-3.7.9
.tar.gz && \
tar -xf ccache-
3.7.9
.tar.gz && \
cd ccache-
3.7.9
&& \
RUN curl -O -L https://github.com/ccache/ccache/releases/download/v
${CCACHE_VERSION}/ccache-${CCACHE_VERSION}
.tar.gz && \
tar -xf ccache-
${CCACHE_VERSION}
.tar.gz && \
cd ccache-
${CCACHE_VERSION}
&& \
linux32 ./configure && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
RUN curl -O -L https://github.com/Kitware/CMake/releases/download/v
3.17.0/cmake-3.17.0
.tar.gz && \
tar -xf cmake-
3.17.0
.tar.gz && \
cd cmake-
3.17.0
&& \
RUN curl -O -L https://github.com/Kitware/CMake/releases/download/v
${CMAKE_VERSION}/cmake-${CMAKE_VERSION}
.tar.gz && \
tar -xf cmake-
${CMAKE_VERSION}
.tar.gz && \
cd cmake-
${CMAKE_VERSION}
&& \
export MAKEFLAGS=-j$(getconf _NPROCESSORS_ONLN) && \
./configure --system-curl && \
make && \
make install && \
cd .. && \
rm -rf cmake-
3.17.0
*
rm -rf cmake-
${CMAKE_VERSION}
*
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/root/ffmpeg_build/lib/pkgconfig
ENV LDFLAGS -L/root/ffmpeg_build/lib
...
...
docker/manylinux2014/Dockerfile_x86_64
浏览文件 @
363e0e65
FROM quay.io/pypa/manylinux2014_x86_64:latest
ARG FFMPEG_VERSION=4.4.1
ARG NASM_VERSION=2.15.04
ARG OPENSSL_VERSION=1_1_1m
ARG QT_VERSION=5.15.0
ARG YASM_VERSION=1.3.0
RUN yum install bzip2-devel curl-devel zlib-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel freetype-devel -y
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
5.15.0/single/qt-everywhere-src-5.15.0
.tar.xz && \
tar -xf qt-everywhere-src-
5.15.0
.tar.xz && \
RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/
${QT_VERSION}/single/qt-everywhere-src-${QT_VERSION}
.tar.xz && \
tar -xf qt-everywhere-src-
${QT_VERSION}
.tar.xz && \
cd qt-everywhere* && \
export MAKEFLAGS=-j$(nproc) && \
./configure -prefix /opt/Qt
5.15.0
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
./configure -prefix /opt/Qt
${QT_VERSION}
-release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \
make && \
make install && \
cd .. && \
rm -rf qt-everywhere-src-
5.15.0
&& \
rm qt-everywhere-src-
5.15.0
.tar.xz
rm -rf qt-everywhere-src-
${QT_VERSION}
&& \
rm qt-everywhere-src-
${QT_VERSION}
.tar.xz
ENV QTDIR /opt/Qt
5.15.0
ENV QTDIR /opt/Qt
${QT_VERSION}
ENV PATH "$QTDIR/bin:$PATH"
RUN mkdir ~/ffmpeg_sources && \
cd ~/ffmpeg_sources && \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
1_1_1g
.tar.gz && \
tar -xf OpenSSL_
1_1_1g
.tar.gz && \
cd openssl-OpenSSL_
1_1_1g
&& \
curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
tar -xf OpenSSL_
${OPENSSL_VERSION}
.tar.gz && \
cd openssl-OpenSSL_
${OPENSSL_VERSION}
&& \
./config --prefix="$HOME/ffmpeg_build" --openssldir="$HOME/ffmpeg_build" no-pinshared shared zlib && \
make -j$(getconf _NPROCESSORS_ONLN) && \
# skip installing documentation
...
...
@@ -28,16 +34,16 @@ RUN mkdir ~/ffmpeg_sources && \
rm -rf ~/openssl_build
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
2.15.04/nasm-2.15.04
.tar.bz2 && \
tar -xf nasm-
2.15.04.tar.bz2 && cd nasm-2.15.04
&& ./autogen.sh && \
curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/
${NASM_VERSION}/nasm-${NASM_VERSION}
.tar.bz2 && \
tar -xf nasm-
${NASM_VERSION}.tar.bz2 && cd nasm-${NASM_VERSION}
&& ./autogen.sh && \
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
1.3.0
.tar.gz && \
tar -xf yasm-
1.3.0
.tar.gz && \
cd yasm-
1.3.0
&& \
curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-
${YASM_VERSION}
.tar.gz && \
tar -xf yasm-
${YASM_VERSION}
.tar.gz && \
cd yasm-
${YASM_VERSION}
&& \
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
make install
...
...
@@ -50,9 +56,9 @@ RUN cd ~/ffmpeg_sources && \
make install
RUN cd ~/ffmpeg_sources && \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
4.3.2
.tar.bz2 && \
tar -xf ffmpeg-
4.3.2
.tar.bz2 && \
cd ffmpeg-
4.3.2
&& \
curl -O -L https://ffmpeg.org/releases/ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
tar -xf ffmpeg-
${FFMPEG_VERSION}
.tar.bz2 && \
cd ffmpeg-
${FFMPEG_VERSION}
&& \
PATH=~/bin:$PATH && \
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --enable-openssl --enable-libvpx --enable-shared --enable-pic --bindir="$HOME/bin" && \
make -j$(getconf _NPROCESSORS_ONLN) && \
...
...
setup.py
浏览文件 @
363e0e65
...
...
@@ -149,6 +149,7 @@ def main():
"-DBUILD_DOCS=OFF"
,
"-DPYTHON3_LIMITED_API=ON"
,
"-DBUILD_OPENEXR=ON"
,
"-DBUILD_PNG=ON"
,
]
+
(
# If it is not defined 'linker flags: /machine:X86' on Windows x64
...
...
travis_config.sh
浏览文件 @
363e0e65
...
...
@@ -50,7 +50,7 @@ if [ -n "$IS_OSX" ]; then
function
generate_ffmpeg_formula
{
local
FF
=
"ffmpeg"
local
LFF
=
"ffmpeg_opencv"
local
FF_FORMULA
;
FF_FORMULA
=
$(
brew formula
"
$
FF
"
)
local
FF_FORMULA
;
FF_FORMULA
=
$(
brew formula
"
$
{
FF
}${
FFMPEG_FORMULA_VERSION
}
"
)
local
LFF_FORMULA
;
LFF_FORMULA
=
"
$(
dirname
"
$FF_FORMULA
"
)
/
${
LFF
}
.rb"
local
REGENERATE
...
...
@@ -70,8 +70,9 @@ if [ -n "$IS_OSX" ]; then
if
[
-n
"
$REGENERATE
"
]
;
then
echo
"Regenerating custom ffmpeg formula"
# Bottle block syntax: https://docs.brew.sh/Bottles#bottle-dsl-domain-specific-language
# FfmpegAT4 is a class in ffmpeg@4 formula
perl
-wpe
'BEGIN {our ($found_blank, $bottle_block);}
if (/(^class )(Ffmpeg
)(\s.*)/) {$_=$1.$2."
Opencv".$3."\n"; next;}
if (/(^class )(Ffmpeg
AT4)(\s.*)/) {$_=$1."Ffmpeg
Opencv".$3."\n"; next;}
if (!$found_blank && /^$/) {$_.="conflicts_with \"ffmpeg\"\n\n"; $found_blank=1; next;}
if (!$bottle_block && /^\s*bottle do$/) { $bottle_block=1; next; }
if ($bottle_block) { if (/^\s*end\s*$/) { $bottle_block=0} elsif (/^\s*sha256\s/) {$_=""} next; }
...
...
@@ -111,34 +112,14 @@ function pre_build {
CACHE_STAGE
=
export
HOMEBREW_NO_AUTO_UPDATE
=
1
#after the cache stage, all bottles and Homebrew metadata should be already cached locally
# if [ -n "$CACHE_STAGE" ]; then
# brew update
# generate_ffmpeg_formula
# brew_add_local_bottles
# fi
echo
'Installing FFmpeg'
# if [ -n "$CACHE_STAGE" ]; then
# brew_install_and_cache_within_time_limit ffmpeg_opencv || { [ $? -gt 1 ] && return 2 || return 0; }
# else
brew update
generate_ffmpeg_formula
brew_add_local_bottles
# brew unlink python@2
brew
install
--build-bottle
ffmpeg_opencv
# fi
# echo 'Installing qt5'
# if [ -n "$CACHE_STAGE" ]; then
# echo "Qt5 has bottle, no caching needed"
# else
# brew switch qt 5.13.2
# brew pin qt
# export PATH="/usr/local/opt/qt/bin:$PATH"
# fi
brew update
generate_ffmpeg_formula
brew_add_local_bottles
brew
install
--build-bottle
ffmpeg_opencv
# It needs when we use not the latest ffmpeg formula
brew
link
ffmpeg_opencv
if
[
-n
"
$CACHE_STAGE
"
]
;
then
brew_go_bootstrap_mode 0
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录