This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,13 +174,11 @@ cp dldt/inference-engine/temp/tbb/lib/libtbb.so.2 create_wheel/cv2/
174174
175175cp 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```
Original file line number Diff line number Diff 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+
2326cmake -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
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __len__(self):
1515
1616setuptools .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' ,
You can’t perform that action at this time.
0 commit comments