OpenCV in Qt crashes on deallocation of vector of lines when using HoughLinesP

后端 未结 1 1116
野性不改
野性不改 2021-01-15 16:50

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

相关标签:
1条回答
  • 2021-01-15 17:41

    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.

    0 讨论(0)
提交回复
热议问题