OpenCV on older Linux
Hey all,
I need to build OpenCV 3.1 on an older Linux machine, specifically Red Hat Enterprise Linux 6.7 (RHEL 6.7). Is this possible? I will need the C interface of OpenCV only (no Python).
If this build is not possible, what's the latest OpenCV version that can be built on RHEL 6.7?
Thank you, Fijoy
What did you try? What didn't work?
Follow this guide. Normally you should be able to install the required packages and the build should work.
The main issue now is that OpenCV 3.1 would prefer Python2.7 and Numpy 1.5 or later. We’ve not been able to locate an existing RPM for either for RHEL 6.7. Red Hat does provide a Developer’s Toolkit that we could install on RHEL 6.7 that would provide some newer versions of tools; however, it doesn’t provide everything required for the build (It does provide Python 2.7, but not Numpy 1.5). The main question now is whether we can build OpenCV with Python and Numpy.
as mshabunin said, you don't need Python or Numpy to compile opencv.
cmake automatically detects Python, and if it isn't found, than it won't be supported - but it will still compile for C++.