Ask Your Question
0

Supressing "init done" and "opengl support available"

asked Mar 30 '16

ralff gravatar image

When displaying an image using OpenCV, the following two lines are output to the terminal.

init done
opengl support available

Is there a way to suppress these outputs? These messages are kind of annoying.

Preview: (hide)

Comments

you can delete these lines and rebuild the library

sturkmen gravatar imagesturkmen (Mar 30 '16)edit

1 answer

Sort by » oldest newest most voted
0

answered Mar 31 '16

That is because the interface is actually flawed. If you would really want to see it disappear in Release build, you should build your project with an extra parameter

Also you can completly disable QDebug with QT_NO_DEBUG_OUTPUT define if you're concerned about performance lost with qDebug present within code.

Source: http://stackoverflow.com/questions/13...

Preview: (hide)

Comments

But some way or the other it should be possible to add this parameter through CMAKE in the Release build. Will take a look at it later this week.

StevenPuttemans gravatar imageStevenPuttemans (Mar 31 '16)edit

Question Tools

1 follower

Stats

Asked: Mar 30 '16

Seen: 2,484 times

Last updated: Mar 31 '16