Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit e063a5f

Browse files
committed
bugfix for dldt version
1 parent e6fb6fd commit e063a5f

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,11 @@ cp dldt/inference-engine/temp/tbb/lib/libtbb.so.2 create_wheel/cv2/
174174

175175
cp build/ffmpeg/binaries/lib/*.so create_wheel/cv2/
176176

177-
# change RPATH
178-
chrpath -r '$ORIGIN' create_wheel/cv2/cv2.so
179177

180-
# add RPATH
181-
patchelf --set-rpath \$ORIGIN create_wheel/cv2/libinference_engine.so
178+
cd create_wheel
179+
# change RPATH
180+
for i in cv2/*.so; do chrpath -r '$ORIGIN' $i; done
182181

183182
# final .whl will be in /create_wheel/dist/
184-
cd create_wheel
185183
../venv/bin/python3 setup.py bdist_wheel
186184
```

build/opencv/opencv_setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ PY_LIB_PATH=`find $ABS_PORTION/venv/lib/ -iname libpython3.${PY_VER}m.so`
2020
# for CPU_BASELINE and CPU_DISPATCH see https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
2121
# they should match with ones for dldt/inference-engine/src/extension/cmake/OptimizationFlags.cmake
2222

23+
# -DINF_ENGINE_RELEASE= should match dldt version
24+
# See https://github.com/opencv/dldt/issues/248#issuecomment-590102331
25+
2326
cmake -D CMAKE_BUILD_TYPE=RELEASE \
2427
-D OPENCV_FORCE_3RDPARTY_BUILD=ON \
2528
-D OPENCV_SKIP_PYTHON_LOADER=ON \
@@ -73,5 +76,6 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
7376
-D INF_ENGINE_INCLUDE_DIRS=$ABS_PORTION/dldt/inference-engine/include \
7477
-D INF_ENGINE_LIB_DIRS=$ABS_PORTION/dldt/bin/intel64/Release/lib \
7578
-D WITH_INF_ENGINE=ON \
79+
-D INF_ENGINE_RELEASE=2020010000 \
7680
-D CPU_BASELINE=SSE4_2 \
7781
-D CPU_DISPATCH=AVX,AVX2 ../../opencv

create_wheel/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __len__(self):
1515

1616
setuptools.setup(
1717
name="opencv-python-inference-engine",
18-
version="4.2.0.2",
18+
version="4.2.0.3",
1919
url="https://github.com/banderlog/opencv-python-inference-engine",
2020
maintainer="Kabakov Borys",
2121
license='MIT, BSD',

0 commit comments

Comments
 (0)