I\'ve been using OpenCV 3.0.0 for quite some time now and have recently switched IDEs from Visual Studio 2013 to Qt Creator 3.4.2. I rebuilt my OpenCV libraries from source
qmake Language: Scope Syntax:
Scopes consist of a condition followed by an opening brace on the same line, a sequence of commands and definitions, and a closing brace on a new line:
<condition> { <command or definition> ... }
The opening brace must be written on the same line as the condition. Scopes may be concatenated to include more than one condition, as described in the following sections.
Both library sets are added to the LIBS
variable for Debug
and Release
build, since scope opening braces are written on the new line after conditions.
It appears that at least for Visual Studio 12 Win64
and OpenCV 3.0
there is binary incompatibility between Debug
and Release
libraries.
If the application is built in the Debug
mode with the Release
libraries it crashes and if it is built in the Release
mode with the Debug
libraries it also crashes.