System information (version)
- OpenCV => 3.4.7 (but likely any version is affected)
- Operating System / Platform => Arch Linux as of 2020-07-29.
- Compiler => GCC 10.1
Detailed description
libjasper has recently changed jas_matrix_get from a macro to an inline function (commit 389951d07 @ https://github.com/jasper-software/jasper), causing the build to fail with error: lvalue required as unary ‘&’ operand.
This affects all OpenCV Versions from 2 to 4.
Steps to reproduce
- Build OpenCV against libjasper 2.0.19 (no earlier version)