-
Notifications
You must be signed in to change notification settings - Fork 937
Open
Description
I'm building OpenCV with Qt support for Linux. Resulting whl file doesn't include Qt libraries as expected (whl from the pypi.org has no such problem, all libs (Qt and others) are included there).
Steps to reproduce.
Run Ubuntu in docker container:
docker run -it --rm -v /tmp/out:/out ubuntu:20.04
Run inside docker container:
# Prepare system
apt update && apt upgrade -y
DEBIAN_FRONTEND=noninteractive apt install -y python3-pip build-essential patchelf libgl1-mesa-glx libglib2.0-0 python3 python3-dev qt5-default git unzip
# Build and install opencv-python
git clone --recursive https://github.com/opencv/opencv-python.git
cd opencv-python/
export CMAKE_BUILD_PARALLEL_LEVEL=8
export CMAKE_ARGS="-DWITH_QT=ON"
pip wheel . --verbose
# Unpack and check resulting file:
mkdir test
cd test
cp ../opencv_python*whl out.zip
unzip out.zip
find . | grep -i qt # No Qt library is included
ldd cv2/cv2.abi3.so | grep -i qt # cv2 so has Qt dependency
How can I build package with all libraries included?
Metadata
Metadata
Assignees
Labels
No labels