Ask Your Question

daniel451's profile - activity

2018-04-12 10:35:30 -0500 commented answer Compile from source without Python 2 / Java support

This is strange then...I just tested your proposed solution on my laptop and indeed Java and Python 2 was all set to no

2018-04-12 10:11:51 -0500 commented answer Compile from source without Python 2 / Java support

Thanks! Since this worked for me I guess -D BUILD_opencv_python=OFF is only disabling Python 2?

2018-04-12 10:10:37 -0500 received badge  Supporter (source)
2018-04-12 10:10:35 -0500 marked best answer Compile from source without Python 2 / Java support

I regularly compile the most recent version of OpenCV 3.X (with GPU-support and stuff) myself and set Python 3 bindings to a user virtual environment via -D PYTHON3_EXECUTABLE=... and so on.

I do not need Python 2 or Java support, but OpenCV always compiles for the system Python 2 / Java in addition to my local C++/Python3 environment, thus I'd like to turn it off completely since Java recently broke the compilation (some ant error).

I already tried -D WITH_PYTHON=OFF and -D WITH_JAVA=OFF, but OpenCV still found Python 2 / Java on the system and compiled with support for them.

How could I disable Python 2 / Java for OpenCV compilation? What would some clean compilation flags for this purpose look like?

2018-04-12 10:10:35 -0500 received badge  Scholar (source)
2018-04-12 08:14:23 -0500 asked a question OpenCV 3.4 compilation: import cv2 crashes in Python

OpenCV 3.4 compilation: import cv2 crashes in Python I compile OpenCV 3.4 and configuration, compilation, ... runs just

2018-04-11 06:16:40 -0500 asked a question Compile from source without Python 2 / Java support

Compile from source without Python 2 / Java support I regularly compile the most recent version of OpenCV 3.X (with GPU-