Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello

I had the same problem some weeks ago. I almost got mad. But fortunately I managed to solve it. It's a fault with your current MinGW setup. To solve this, you can either go directly to step 2 or, to ensure you'll success, rebuild OpenCV from the scratch:

  1. Uninstall your current deployment of OpenCV + MinGW + other stuff you have installed.

  2. Install MingGW, but now ensure that you select Use pre-packaged repository catalogues when prompted with Repository catalogues on installer (look at the picture below).

  3. Rebuild OpenCV + other stuff you have selected.

image description.

Now you should be able to compile successfully. If you choose Download latest repository catalogues instead of Use pre-packaged repository catalogues you will get the same error again. I can't understand why this botched job, but fortunately it can be circumvented.

Hello

I had the same problem some weeks ago. I almost got mad. But fortunately I managed to solve it. It's a fault with your current MinGW setup. To solve this, you can either go directly to step 2 or, to ensure you'll success, rebuild OpenCV from the scratch:

  1. Uninstall your current deployment of OpenCV + MinGW + other stuff you have installed.installed. Ensure that all the folders are cleaned.

  2. Install MingGW, but now ensure that you select Use pre-packaged repository catalogues when prompted with Repository catalogues on installer (look at the picture below).

  3. Rebuild OpenCV + other stuff you have selected.

image description.

Now you should be able to compile successfully. If you choose Download latest repository catalogues instead of Use pre-packaged repository catalogues you will get the same error again. I can't understand why this botched job, but fortunately it can be circumvented.