Skip to content

[opencv4] Upgrade to version 4.1.2#8557

Closed
LilyWangL wants to merge 6 commits intomicrosoft:masterfrom
LilyWangL:dev/Lily/issue8549
Closed

[opencv4] Upgrade to version 4.1.2#8557
LilyWangL wants to merge 6 commits intomicrosoft:masterfrom
LilyWangL:dev/Lily/issue8549

Conversation

@LilyWangL
Copy link
Contributor

Related issue: #8549

@vicroms vicroms self-assigned this Oct 11, 2019
@cenit
Copy link
Contributor

cenit commented Oct 11, 2019

Also, since we are updating, I suggest you another update related to tesseract and a proper management of dependencies also for contrib modules. It is really necessary in order to not let them build depending on previous packets installed on user machine

@cenit
Copy link
Contributor

cenit commented Oct 11, 2019

Finally, for consistency and compatibility, I’d push for a simultaneous update of opencv3 to 3.4.8

@LilyWangL
Copy link
Contributor Author

vcpkg_fixup_cmake_targets fix files *.lib path in OpenCVModules-debug.cmake, the files *d.dll path are wrong. Some ports depend on opencv4 will build failed due to can't find *d.dll. I Modify the files *d.dll path in portfile by file(write OpenCVModules-debug.cmake).
Related issue: #8655

@LilyWangL LilyWangL marked this pull request as ready for review October 18, 2019 10:00
@cenit
Copy link
Contributor

cenit commented Oct 18, 2019

vcpkg_fixup_cmake_targets fix files *.lib path in OpenCVModules-debug.cmake, the files *d.dll path are wrong

There is no such problem in current PR (see your own issue for more details).

Also please do not delete the 0001-disable-downloading.patch, since it is fundamental

Sorry for interfering, but I spent so much time in the OpenCV port that I expect it is preserved in the best state possible, and not updated in a hurry without care (@vicroms might remember...)

file(READ ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules-debug.cmake DLL_PATH)
string(REPLACE /x86/vc
/debug/x86/vc DLL_PATH "${DLL_PATH}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/opencv/OpenCVModules-debug.cmake "${DLL_PATH}")
Copy link

Choose a reason for hiding this comment

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

Perhaps, CMake option -DOpenCV_ARCH=debug/${VCPKG_TARGET_ARCHITECTURE} should handle that.
But it requires to specify OpenCV_RUNTIME too (vc14/vc15/etc)

(alternative is OPENCV_INSTALL_BINARIES_PREFIX=debug/${VCPKG_TARGET_ARCHITECTURE}/vc14)

Copy link
Contributor

Choose a reason for hiding this comment

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

note that Dlls in vcpkg must go into the bin folder, not any of those here............

Copy link

Choose a reason for hiding this comment

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

Try to pass OPENCV_INSTALL_BINARIES_PREFIX= (empty)
or something like (depends on vcpkg layout policies):

  • OPENCV_BIN_INSTALL_PATH=bin
  • OPENCV_INCLUDE_INSTALL_PATH=include
  • OPENCV_LIB_INSTALL_PATH=lib
  • OPENCV_CONFIG_INSTALL_PATH=cmake

@vicroms vicroms added the wip label Nov 8, 2019
@HagegeR
Copy link

HagegeR commented Jan 1, 2020

Soooo... maybe skip to 4.2 ?

@cenit cenit mentioned this pull request Jan 22, 2020
@LilyWangL LilyWangL marked this pull request as draft April 20, 2020 06:39
@PhilLab
Copy link
Contributor

PhilLab commented May 1, 2020

Or OpenCV 4.3 ?

@cenit
Copy link
Contributor

cenit commented May 1, 2020

I will try my best to prepare a PR in the next few days for a proper OpenCV update to v4.3

@PhilLab
Copy link
Contributor

PhilLab commented May 1, 2020

@cenit Thanks, your work on the OpenCV ports was amazing and has helped us a lot in the past!

@dan-shaw
Copy link
Contributor

Closing PR due to no progress being made. See #11130

@dan-shaw dan-shaw closed this Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants