- This advice applies only to issues with the CMake scripts. If you're not sure, your issue is probably not CMake-related.
- This is just a baby step guide. Don't expect too much.
- This probably won't fix any issues, but the advice here helps one provide more information when opening a new issue at OpenCV GitHub.
- Search for the macro
"ocv_debug_message"
in "cmake/OpenCVUtils.cmake" - If the several lines in this macro is commented out, i.e. preceded with the pound sign ("#"), remove the pound sign.
- This is because throughout the OpenCV CMake scripts, a lot of logging statements are commented out, with the pound sign.
- Uncomment those logging statements that are needed for troubleshooting the issue.
- Remember to print the arguments as part of the logging statements.
- Note that these logging outputs are not saved to "CMakeFiles/CMakeOutput.log" or "CMakeFiles/CMakeError.log".
- The reason is that those two files only contain information when CMake invokes external tools, such as the C++ compiler.