-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,17 @@ | |
|
||
MinGW version of OpenCV compiled on Windows. | ||
|
||
* [OpenCV 3.3.1](https://github.com/huihut/OpenCV-MinGW-Build/tree/OpenCV-3.3.1) | ||
* OpenCV 3.4.1 | ||
## [OpenCV 3.4.1](https://github.com/huihut/OpenCV-MinGW-Build/tree/OpenCV-3.4.1) | ||
|
||
``` | ||
git clone -b OpenCV-3.4.1 [email protected]:huihut/OpenCV-MinGW-Build.git | ||
``` | ||
|
||
## [OpenCV 3.3.1](https://github.com/huihut/OpenCV-MinGW-Build/tree/OpenCV-3.3.1) | ||
|
||
``` | ||
git clone -b OpenCV-3.3.1 [email protected]:huihut/OpenCV-MinGW-Build.git | ||
``` | ||
|
||
## Compiling Environment | ||
|
||
|
@@ -20,21 +29,24 @@ MinGW version of OpenCV compiled on Windows. | |
|
||
Add OpenCV library file and include path to Qt `.pro` file. | ||
|
||
My OpenCV file is located in `E:\OpenCV-MinGW-Build`, So the configuration is as follows: | ||
* My version of OpenCV : `OpenCV 3.3.1` | ||
* My OpenCV path : `E:\OpenCV_3.3.1\OpenCV-MinGW-Build` | ||
|
||
So the configuration is as follows (**You need to modify it according to your OpenCV.**) : | ||
|
||
``` | ||
win32 { | ||
INCLUDEPATH += E:\OpenCV-MinGW-Build\include | ||
LIBS += E:\OpenCV-MinGW-Build\bin\libopencv_*.dll | ||
INCLUDEPATH += E:\OpenCV_3.3.1\OpenCV-MinGW-Build\include | ||
LIBS += E:\OpenCV_3.3.1\OpenCV-MinGW-Build\bin\libopencv_*.dll | ||
} | ||
``` | ||
|
||
or | ||
|
||
``` | ||
win32 { | ||
INCLUDEPATH += E:\OpenCV-MinGW-Build\include | ||
LIBS += -LE:\OpenCV-MinGW-Build\bin \ | ||
INCLUDEPATH += E:\OpenCV_3.3.1\OpenCV-MinGW-Build\include | ||
LIBS += -LE:\OpenCV_3.3.1\OpenCV-MinGW-Build\bin \ | ||
-llibopencv_calib3d331 \ | ||
-llibopencv_core331 \ | ||
-llibopencv_dnn331 \ | ||
|
@@ -53,5 +65,4 @@ LIBS += -LE:\OpenCV-MinGW-Build\bin \ | |
-llibopencv_videoio331 \ | ||
-llibopencv_videostab331 | ||
} | ||
``` | ||
|
||
``` |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.