构建python 版本
This commit is contained in:
parent
6379450e07
commit
fdd10b3d53
@ -70,7 +70,7 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\
|
|||||||
-DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\
|
-DPYTHON_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR')+ '/libpython3.so')")\
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
make -j24 V=1
|
make -j24 V=1
|
||||||
ctest -E "opencv_test_imgproc"
|
ctest -E "opencv_test_objdetect opencv_test_photo"
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -84,6 +84,7 @@ make install DESTDIR=%{buildroot}
|
|||||||
%{_libdir}/*
|
%{_libdir}/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%exclude /usr/share/*
|
%exclude /usr/share/*
|
||||||
|
/usr/lib/python3.8/site-packages/cv2/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Nov 17 2021 shenwei <shenwei41@huawei.com> - 4.5.2-4
|
* Wed Nov 17 2021 shenwei <shenwei41@huawei.com> - 4.5.2-4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user