Ask Your Question

daniel451's profile - activity

2020-11-22 04:16:52 -0600 received badge  Notable Question (source)
2020-02-18 10:39:12 -0600 received badge  Popular Question (source)
2019-11-07 05:26:34 -0600 received badge  Student (source)
2018-04-12 10:35:30 -0600 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 -0600 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 -0600 received badge  Supporter (source)
2018-04-12 10:10:35 -0600 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 -0600 received badge  Scholar (source)
2018-04-12 08:14:23 -0600 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 -0600 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-