Sorry, this content is no longer available

Ask Your Question
0

OpenCV on older Linux

asked Feb 15 '16

fijoy gravatar image

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

Preview: (hide)

Comments

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.

kbarni gravatar imagekbarni (Feb 16 '16)edit

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.

fijoy gravatar imagefijoy (Feb 16 '16)edit
1

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++.

kbarni gravatar imagekbarni (Feb 16 '16)edit

1 answer

Sort by » oldest newest most voted
3

answered Feb 16 '16

mshabunin gravatar image

updated Feb 16 '16

Following instructions work for me in CentOS 6.6:

yum groupinstall "Development Tools"
yum install cmake
yum install python-devel
yum install numpy
mkdir build
cd build
cmake ../opencv
make -j4
Preview: (hide)

Comments

1

Then you don't need to install python-devel and numpy. They are not required, but they have been successfully detected by cmake and used during the build in my case (python-2.6.6 and numpy-1.4.1).

mshabunin gravatar imagemshabunin (Feb 16 '16)edit

Question Tools

2 followers

Stats

Asked: Feb 15 '16

Seen: 337 times

Last updated: Feb 16 '16