How to build with MSVS tutorial mentions wrong directories (Bug #3157)
Description
Additional Include Directories mentions "$(OPENCV_DIR)\include", and
Additional Library Directories mentions "$(OPENCV_DIR)\libs", however
the previous tutorial recommends to set OPENCV_DIR to ...\OpenCV\Build\x86\vc10
but when you download the latest Windows OpenCV package with prebuilt binaries,
the directory structure is different:
...\OpenCV\build\include has lots of include subdirectories (to be used)
while ...\OpenCV\Build\x86\vc10 has no include directories in it.
Therefore either the recommended setting
Additional Include Directories mentions "$(OPENCV_DIR)\include"
should be changed to $(OPENCV_DIR)\..\..\include
or $OPENCV_DIR should be changed and the Additional Library Directories should be changed.
Following this very intro tutorial will prevent a novice user from getting opencv to work,
and will probably cause a lot of pain to such users...
Therefore fixing this seems to be a high prio.
Associated revisions
Merge pull request #3157 from PhilLab:pnpFix
History
Updated by Pavel Petrovic over 11 years ago
also: $(OPENCV_DIR)\libs
but the actual folder is ...\OpenCV\build\x86\vc11\lib
Updated by Nikita Manovich over 11 years ago
Hi,
Thank you for the bug report. We will check the documentation and update it. But if you can help us and make necessary changes inside ./doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.rst, please do that. On http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute page you can find more information about "How to contribute".
- Target version deleted (
2.4.7) - Priority changed from High to Normal
- Status changed from New to Open
Updated by Steven Puttemans over 11 years ago
Added the bugfix with a GitHub pull request : https://github.com/Itseez/opencv/pull/1136
- Target version set to 2.4.7
Updated by Andrew Senin over 11 years ago
- Status changed from Open to Done
Updated by Pavel Petrovic over 11 years ago
Thank you for fixing this quickly.
I see today that the document published online
still has the wrong info in it:
http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html#windows-visual-studio-how-to
Updated by Vladislav Vinogradov over 11 years ago
Pavel,
Documentation will be updated with next release.