Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Richard 祝发兴 - -IT
opencv-python
提交
deafb670
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,体验更适合开发者的 AI 搜索 >>
提交
deafb670
编写于
7月 14, 2018
作者:
O
Olli-Pekka Heinisuo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove opencv patches for now
上级
bf58f7ab
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
138 deletion
+8
-138
config.sh
config.sh
+0
-1
docker/Dockerfile_i686
docker/Dockerfile_i686
+4
-4
docker/Dockerfile_x86_64
docker/Dockerfile_x86_64
+4
-4
patches/patch1.patch
patches/patch1.patch
+0
-85
patches/patch2.patch
patches/patch2.patch
+0
-41
setup.py
setup.py
+0
-3
未找到文件。
config.sh
浏览文件 @
deafb670
...
...
@@ -40,7 +40,6 @@ function pre_build {
echo
'-----------------'
else
echo
"Running for linux"
export
LDFLAGS
=
"-Wl,--no-as-needed -Wl,--no-undefined
${
LDFLAGS
}
"
fi
qmake
-query
}
...
...
docker/Dockerfile_i686
浏览文件 @
deafb670
FROM quay.io/pypa/manylinux1_i686:latest
RUN
wget --no-check-certificate https://download.qt.io/official_releases
/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz && \
RUN
curl -O -L https://download.qt.io/archive
/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz && \
tar -xf qt-everywhere-opensource-src-4.8.7.tar.gz && \
cd qt-everywhere* && \
./configure -prefix /opt/Qt4.8.7 -release -opensource -confirm-license
-qtnamespace Qt4
&& \
gmake && \
./configure -prefix /opt/Qt4.8.7 -release -opensource -confirm-license && \
gmake
-j5
&& \
gmake install && \
cd .. && \
rm -rf qt-everywhere-opensource-src-4.8.7 && \
...
...
@@ -13,7 +13,7 @@ RUN wget --no-check-certificate https://download.qt.io/official_releases/qt/4.8/
ENV QTDIR /opt/Qt4.8.7
ENV PATH "$QTDIR/bin:$PATH"
RUN
wget --no-check-certificate
https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \
RUN
curl -O -L
https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \
tar -zxf cmake-3.9.0.tar.gz && \
cd cmake-3.9.0 && \
yum -y install curl-devel zlib-devel && \
...
...
docker/Dockerfile_x86_64
浏览文件 @
deafb670
FROM quay.io/pypa/manylinux1_x86_64:latest
RUN
wget --no-check-certificate https://download.qt.io/official_releases
/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz && \
RUN
curl -O -L https://download.qt.io/archive
/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz && \
tar -xf qt-everywhere-opensource-src-4.8.7.tar.gz && \
cd qt-everywhere* && \
./configure -prefix /opt/Qt4.8.7 -release -opensource -confirm-license
-qtnamespace Qt4
&& \
gmake && \
./configure -prefix /opt/Qt4.8.7 -release -opensource -confirm-license && \
gmake
-j5
&& \
gmake install && \
cd .. && \
rm -rf qt-everywhere-opensource-src-4.8.7 && \
...
...
@@ -13,7 +13,7 @@ RUN wget --no-check-certificate https://download.qt.io/official_releases/qt/4.8/
ENV QTDIR /opt/Qt4.8.7
ENV PATH "$QTDIR/bin:$PATH"
RUN
wget --no-check-certificate
https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \
RUN
curl -O -L
https://cmake.org/files/v3.9/cmake-3.9.0.tar.gz && \
tar -zxf cmake-3.9.0.tar.gz && \
cd cmake-3.9.0 && \
yum -y install curl-devel zlib-devel && \
...
...
patches/patch1.patch
已删除
100644 → 0
浏览文件 @
bf58f7ab
--- opencv/modules/highgui/src/window_QT.h 2018-06-28 13:13:55.119434000 +0300
+++ opencv/modules/highgui/src/window_QT_patched.h 2018-06-30 17:35:55.145192900 +0300
@@ -46,43 +46,51 @@
#define QT_NO_DEBUG_OUTPUT
#endif
-#if defined( HAVE_QT_OPENGL )
-#include <QtOpenGL>
-#include <QGLWidget>
-#endif
-
-#include <QAbstractEventDispatcher>
#include <QApplication>
-#include <QFile>
#include <QPushButton>
-#include <QGraphicsView>
-#include <QSizePolicy>
-#include <QInputDialog>
-#include <QBoxLayout>
-#include <QSettings>
-#include <qtimer.h>
-#include <QtConcurrentRun>
-#include <QWaitCondition>
-#include <QKeyEvent>
-#include <QMetaObject>
#include <QPointer>
-#include <QSlider>
-#include <QLabel>
-#include <QIODevice>
-#include <QShortcut>
-#include <QStatusBar>
-#include <QVarLengthArray>
-#include <QFileInfo>
-#include <QDate>
-#include <QFileDialog>
-#include <QToolBar>
-
-#include <QAction>
#include <QCheckBox>
+#include <QSlider>
#include <QRadioButton>
-#include <QButtonGroup>
-#include <QMenu>
+#include <QWidget>
+#include <QGraphicsView>
#include <QTest>
+#include <QVarLengthArray>
+#include <QHBoxLayout>
+
+#if defined( HAVE_QT_OPENGL )
+#include <QtOpenGL>
+#include <QGLWidget>
+#endif
+
+QT_BEGIN_NAMESPACE
+
+class QAbstractEventDispatcher;
+class QFile;
+class QSizePolicy;
+class QInputDialog;
+class QBoxLayout;
+class QSettings;
+class QTimer;
+class QtConcurrentRun;
+class QWaitCondition;
+class QKeyEvent;
+class QMetaObject;
+class QLabel;
+class QIODevice;
+class QShortcut;
+class QStatusBar;
+class QFileInfo;
+class QDate;
+class QFileDialog;
+class QToolBar;
+class QHBoxLayout;
+
+class QAction;
+class QButtonGroup;
+class QMenu;
+
+QT_END_NAMESPACE
//start private enum
enum { CV_MODE_NORMAL = 0, CV_MODE_OPENGL = 1 };
patches/patch2.patch
已删除
100644 → 0
浏览文件 @
bf58f7ab
--- opencv/modules/highgui/src/window_QT.cpp 2018-06-30 01:04:51.649121800 +0300
+++ opencv/modules/highgui/src/window_QT_patched.cpp 2018-06-30 17:09:28.697256300 +0300
@@ -46,6 +46,30 @@
#include <window_QT.h>
+#include <QAbstractEventDispatcher>
+#include <QFile>
+#include <QSizePolicy>
+#include <QInputDialog>
+#include <QBoxLayout>
+#include <QSettings>
+#include <QTimer>
+#include <QtConcurrentRun>
+#include <QWaitCondition>
+#include <QKeyEvent>
+#include <QMetaObject>
+#include <QLabel>
+#include <QIODevice>
+#include <QShortcut>
+#include <QStatusBar>
+#include <QFileInfo>
+#include <QDate>
+#include <QFileDialog>
+#include <QToolBar>
+
+#include <QAction>
+#include <QButtonGroup>
+#include <QMenu>
+
#include <math.h>
#ifdef _WIN32
@@ -60,7 +84,6 @@
#endif
#endif
-
//Static and global first
static GuiReceiver *guiMainThread = NULL;
static int parameterSystemC = 1;
setup.py
浏览文件 @
deafb670
...
...
@@ -109,9 +109,6 @@ def main():
# OS-specific components
if
(
sys
.
platform
==
'darwin'
or
sys
.
platform
.
startswith
(
'linux'
))
and
not
build_headless
:
cmake_args
.
append
(
"-DWITH_QT=4"
)
# Apply Qt namespace patches to OpenCV GUI code
subprocess
.
check_call
(
"patch -p0 < patches/patch1.patch"
,
shell
=
True
)
subprocess
.
check_call
(
"patch -p0 < patches/patch2.patch"
,
shell
=
True
)
if
build_headless
:
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录