File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
# this makes them available
10
10
globals ().update (importlib .import_module ('cv2.cv2' ).__dict__ )
11
11
12
- if sys .platform == 'darwin' :
12
+ if sys .platform == 'darwin' or sys . platform . startswith ( "linux" ) :
13
13
os .environ ['QT_QPA_PLATFORM_PLUGIN_PATH' ] = os .path .join (
14
14
os .path .dirname (os .path .abspath (__file__ )), 'qt' , 'plugins'
15
15
)
Original file line number Diff line number Diff line change @@ -68,4 +68,10 @@ RUN curl -O -L https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-
68
68
69
69
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/root/ffmpeg_build/lib/pkgconfig
70
70
ENV LDFLAGS -L/root/ffmpeg_build/lib
71
+
72
+ # in i686, yum metadata ends up with slightly wrong timestamps
73
+ # which inhibits its update
74
+ # https://github.com/skvark/opencv-python/issues/148
75
+ RUN yum clean all
76
+
71
77
ENV PATH "$HOME/bin:$PATH"
Original file line number Diff line number Diff line change @@ -154,6 +154,11 @@ def main():
154
154
(r"lib/qt/plugins/platforms/libqcocoa\.dylib" )
155
155
]
156
156
157
+ if sys .platform .startswith ("linux" ) and not build_headless :
158
+ rearrange_cmake_output_data ["cv2.qt.plugins.platforms" ] = [
159
+ (r"lib/qt/plugins/platforms/libqxcb\.so" )
160
+ ]
161
+
157
162
if build_headless :
158
163
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless
159
164
cmake_args .append ("-DWITH_WIN32UI=OFF" )
You can’t perform that action at this time.
0 commit comments