8000 Do not copy standalone IPP libraries to install for static builds by mshabunin · Pull Request #16769 · opencv/opencv · GitHub
[go: up one dir, main page]

Skip to content

Do not copy standalone IPP libraries to install for static builds #16769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2020

Conversation

mshabunin
Copy link
Contributor

Resolves #16537

Only IPP/IPPIW binaries distributed with OpenCV should be copied to <INSTALL>/lib/opencv4/3rdparty.

Checked samples build with following configurations (Ubuntu 18):

cmake -GNinja -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=install $OPT ../opencv

where OPT is:

  1. <empty> - default, use IPPICV and IPPIW from OpenCV
  2. -DIPPROOT=/opt/intel/compilers_and_libraries_2020.0.166/linux/ipp - use standalone IPP, use IPPIW from OpenCV
  3. -DIPPROOT=/opt/intel/compilers_and_libraries_2020.0.166/linux/ipp -DBUILD_IPP_IW=OFF - use standalone IPP and IPPIW

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under OpenCV (BSD) License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
< 8000 /task-lists>

@asmorkalov
Copy link
Contributor

@alalek @mshabunin Any progress on that?

@asmorkalov
Copy link
Contributor

The solution breaks Android with stand alone IPP. Will be discussed and decided after release.

@asmorkalov asmorkalov added this to the 4.x milestone Mar 20, 2020
@mshabunin
Copy link
Contributor Author

@asmorkalov , I believe users should manually add standalone IPP libraries to the Android package directory prior to the build. This feature should be incorporated into our build_sdk.py script, not only for IPP, but for other static libraries too.

@asmorkalov
Copy link
Contributor

@mshabunin @alalek Are there any open items here? Could it be merged?

IMPORTED_LINK_INTERFACE_LIBRARIES ""
IMPORTED_LOCATION "${FILE}"
)
if (NOT BUILD_SHARED_LIBS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of complete dropping this code, please add OPENCV_INSTALL_EXTERNAL_DEPENDENCIES option:
For example as list, including "all" (ipp in this case) - for better configuration. See here.

@alalek alalek merged commit 2840362 into opencv:3.4 Apr 17, 2020
@alalek alalek mentioned this pull request Apr 21, 2020
@mshabunin mshabunin deleted the fix-ipp-install branch May 6, 2020 12:35
@mshabunin mshabunin restored the fix-ipp-install branch May 6, 2020 12:35
@mshabunin mshabunin deleted the fix-ipp-install branch July 14, 2020 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to avoid lib/opencv4/3rdparty/ libraries?
3 participants
0