I am trying to install OpenCV in a Bash environment on Windows (Windows subsystem for Linux, wsl) and it was very difficult.
I think I'm very close, but when I import cv2 python import cv2 , the following error appears:
ImportError: libopencv_core.so.3.1: cannot enable executable stack as shared object requires: Invalid argument
How to enable the library on the stack?
My OpenCV *opencv*.so* library files are located in /usr/local/lib/ . In a normal Linux environment, I would give libraries the ability to execute on the stack with
execstack -c /usr/local/lib/*opencv*.so*
However, although I can successfully download the execstack package, this is not a recognized command that I can run to allow execution on the stack. I suspect this has something to do with the Data Execution Prevention, the Window version of the Exec-Shield, to prevent packetized attacks.
But maybe I was just too close to the problem to understand what happened. Why can't I import this python package? I am using Python v3.4 and OpenCV compiled from the latest source code (v.3.1).
pirt
source share