Building with MinGW on windows - failing on chmod

asked 2019-07-02 02:48:10 -0600

Hi,

I am trying to build OpenCV with MinGW on windows. The cmake configures as expected, but the make fails on libopencv_core_pch_dephelp.a with an error pointing to chmod?! As I understand it there is no chmod in windows. I am wondering if it is a bug in the cmake build or in the MinGW compiler. Can someone please clarify? Attached is a screen dump of the error.

image description

edit retag flag offensive close merge delete

Comments

please, no screenshots of code or errormsgs here, those are absolutely useless, we can't quote you, it can't be indexed for search, and you're only stealing other ppl's bandwidth.

please EDIT your question, remove the image, and replace it with some text output, thank you.

berak gravatar imageberak ( 2019-07-02 02:55:45 -0600 )edit

powershell

try to run cmake from a simple cmd.exe , not powershell.

also, please disable precompiled headers, when using mingw:

cmake -DENABLE_PRECOMPILED_HEADERS=OFF

(clean build folder / cmake output and re-run cmake)

berak gravatar imageberak ( 2019-07-02 02:57:49 -0600 )edit
1

Hi Berak,

Thank you so much. OpenCV now builds and runs. Wonder why it would not work with powershell.

Becky.

beckylum gravatar imagebeckylum ( 2019-07-02 08:44:16 -0600 )edit