Skip to content

Update windows_install.markdown#22907

Merged
alalek merged 4 commits intoopencv:4.xfrom
paartheee:patch-1
Dec 15, 2022
Merged

Update windows_install.markdown#22907
alalek merged 4 commits intoopencv:4.xfrom
paartheee:patch-1

Conversation

@paartheee
Copy link
Copy Markdown
Contributor

@paartheee paartheee commented Dec 2, 2022

Fixes #22053


Fixing Issue - #22053 Inaccuracy in the tutorial for installation for Windows

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 Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the 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

Fixing Issue - opencv#22053 Inaccuracy in the tutorial for installation for Windows
@asmorkalov asmorkalov added the category: documentation Documentation fix or update label Dec 5, 2022
@asmorkalov asmorkalov added this to the 4.7.0 milestone Dec 5, 2022
@asmorkalov asmorkalov self-requested a review December 5, 2022 05:24
@code
setx -m OPENCV_DIR D:\OpenCV\Build\x86\vc11 (suggested for Visual Studio 2012 - 32 bit Windows)
setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc11 (suggested for Visual Studio 2012 - 64 bit Windows)
setx OPENCV_DIR D:\OpenCV\Build\x86\vc11 (suggested for Visual Studio 2012 - 32 bit Windows)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

double space between setx and OpenCV_DIR is not needed here and below.


Build

It is all lowercase build in modern versions of the package.


OPENCV_DIR

Modern CMake requests OpenCV_DIR. Case-insensitive support is a hack.


vc11 / vc12 are not supported anymore (compiler support is dropped in 2018 and OpenCV 4.x+).
Perhaps it should be updated to vc14 / vc15 (2017) / vc16 (2019).

Or even <platfrom>/<compiler> could be dropped too as there is automatic dispatcher for CMake on the top level (but we still need to pass the proper PATH somehow).

different platform (e.g. x64 instead of x86) or compiler type, so substitute appropriate value.
Inside this, you should have two folders called *lib* and *bin*. The -m should be added if you wish
to make the settings computer wise, instead of user wise.
Inside this, you should have two folders called *lib* and *bin*.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

-m option of setx command may be useful.
However we should not learn users how to deal with all Windows parameters in OpenCV docs, so removal is OK to me.

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution 👍

- x86 is optional and not available by default in packages
@alalek alalek merged commit 50da209 into opencv:4.x Dec 15, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
* Update windows_install.markdown

Fixing Issue - opencv#22053 Inaccuracy in the tutorial for installation for Windows

* Update windows_install.markdown opencv#22907

Changed all changes mentioned in the comments

* Update windows_install.markdown opencv#22907

* fix whitespace, update configurations order (64-bit goes first)

- x86 is optional and not available by default in packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: documentation Documentation fix or update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inaccuracy in the tutorial for installation for Windows

3 participants