Skip to content

Commit

Permalink
remove opencv patches for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skvark committed Jul 14, 2018
1 parent bf58f7a commit deafb67
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 138 deletions.
1 change: 0 additions & 1 deletion config.sh
Expand Up @@ -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
}
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile_i686
@@ -1,10 +1,10 @@
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 && \
Expand All @@ -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 && \
Expand Down
8 changes: 4 additions & 4 deletions docker/Dockerfile_x86_64
@@ -1,10 +1,10 @@
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 && \
Expand All @@ -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 && \
Expand Down
85 changes: 0 additions & 85 deletions patches/patch1.patch

This file was deleted.

41 changes: 0 additions & 41 deletions patches/patch2.patch

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py
Expand Up @@ -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
Expand Down

0 comments on commit deafb67

Please sign in to comment.