Skip to content

Commit c048e37

Browse files
committed
fix plugin path
1 parent a8dfcf2 commit c048e37

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

setup.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,14 @@ def main():
155155
]
156156

157157
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-
]
158+
if x64:
159+
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
160+
(r"/usr/lib64/qt5/plugins/platforms/libqxcb\.so")
161+
]
162+
else:
163+
rearrange_cmake_output_data["cv2.qt.plugins.platforms"] = [
164+
(r"/usr/lib/qt5/plugins/platforms/libqxcb\.so")
165+
]
161166

162167
if build_headless:
163168
# it seems that cocoa cannot be disabled so on macOS the package is not truly headless

0 commit comments

Comments
 (0)