Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Richard 祝发兴 - -IT
opencv-python
提交
5de8d66d
O
opencv-python
项目概览
Richard 祝发兴 - -IT
/
opencv-python
与 Fork 源项目一致
Fork自
OpenCV / opencv-python
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv-python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5de8d66d
编写于
4月 12, 2022
作者:
A
Alexander Smorkalov
提交者:
GitHub
4月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #644 from nsait-linaro/windows-arm64
add support for building windows/arm64 package
上级
8f2049e3
7419f582
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
12 addition
and
6 deletion
+12
-6
setup.py
setup.py
+12
-6
未找到文件。
setup.py
浏览文件 @
5de8d66d
...
...
@@ -60,7 +60,7 @@ def main():
)
# https://stackoverflow.com/questions/1405913/python-32bit-or-64bit-mode
x
64
=
sys
.
maxsize
>
2
**
32
is
64
=
sys
.
maxsize
>
2
**
32
package_name
=
"opencv-python"
...
...
@@ -88,7 +88,7 @@ def main():
# Path regexes with forward slashes relative to CMake install dir.
rearrange_cmake_output_data
=
{
"cv2"
:
(
[
r
"bin/opencv_videoio_ffmpeg\d{3}%s\.dll"
%
(
"_64"
if
x
64
else
""
)]
[
r
"bin/opencv_videoio_ffmpeg\d{3}%s\.dll"
%
(
"_64"
if
is
64
else
""
)]
if
os
.
name
==
"nt"
else
[]
)
...
...
@@ -130,7 +130,7 @@ def main():
files_outside_package_dir
=
{
"cv2"
:
[
"LICENSE.txt"
,
"LICENSE-3RD-PARTY.txt"
]}
ci_cmake_generator
=
(
[
"-G"
,
"Visual Studio 14"
+
(
" Win64"
if
x
64
else
""
)]
[
"-G"
,
"Visual Studio 14"
+
(
" Win64"
if
is
64
else
""
)]
if
os
.
name
==
"nt"
else
[
"-G"
,
"Unix Makefiles"
]
)
...
...
@@ -164,9 +164,15 @@ def main():
"-DBUILD_PNG=ON"
,
]
+
(
# CMake flags for windows/arm64 build
[
"-DCMAKE_GENERATOR_PLATFORM=ARM64"
,
# Emulated cmake requires following flags to correctly detect
# target architecture for windows/arm64 build
"-DOPENCV_WORKAROUND_CMAKE_20989=ON"
,
"-DCMAKE_SYSTEM_PROCESSOR=ARM64"
]
if
platform
.
machine
()
==
"ARM64"
and
sys
.
platform
==
"win32"
# If it is not defined 'linker flags: /machine:X86' on Windows x64
[
"-DCMAKE_GENERATOR_PLATFORM=x64"
]
if
x64
and
sys
.
platform
==
"win32"
else
[
"-DCMAKE_GENERATOR_PLATFORM=x64"
]
if
is64
and
sys
.
platform
==
"win32"
else
[]
)
+
(
...
...
@@ -186,7 +192,7 @@ def main():
"-DWITH_MSMF=OFF"
)
# see: https://github.com/skvark/opencv-python/issues/263
if
sys
.
platform
.
startswith
(
"linux"
)
and
not
x
64
and
"bdist_wheel"
in
sys
.
argv
:
if
sys
.
platform
.
startswith
(
"linux"
)
and
not
is
64
and
"bdist_wheel"
in
sys
.
argv
:
subprocess
.
check_call
(
"patch -p0 < patches/patchOpenEXR"
,
shell
=
True
)
# OS-specific components during CI builds
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录