Ask Your Question

Supressing "init done" and "opengl support available"

asked 2016-03-30 15:13:12 -0500

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.

edit retag flag offensive close merge delete


you can delete these lines and rebuild the library

sturkmen gravatar imagesturkmen ( 2016-03-30 17:32:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-03-31 04:06:31 -0500

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.


edit flag offensive delete link more


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 ( 2016-03-31 04:13:27 -0500 )edit

Question Tools

1 follower


Asked: 2016-03-30 15:13:12 -0500

Seen: 2,240 times

Last updated: Mar 31 '16