Unable to get following flags, EVENT_FLAG_L(/R/M)BUTTON, EVENT_MOUSEWHEEL

Sir:

  1. about EVENT_MOUSEHWHEEL and EVENT_MOUSEWHEEL: Neither works. I tried to print event/flag at the beginning of mousecallback function. No events with mousewheel manupilation.

  2. I downloaded source code from Debian site. Currently, I am trying to set up codelite workspace. It takes so long to parse source tree,

Sir:

Probably, I managed to build openCV with GTK2 and GTK3 from source. They sit in two different directories. Currently, I am reluctant to proceed, because opencv_test_xxx binaries report many errors.

Despite these errors, I tried to force link to these libraries using LD_LIBRARY_PATH and other tricks. I think I made one step ahead.
With gtk2.0, mousewheel events, mousebutton flags ARE functional.
With gtk3, they are NOT.

Sir:
Several steps ahead.
Most probably, the situation I ran into, is not an openCV bug. It looks like it happens at library mix-up.
GTK3 version works, so does GTK2 version. When LD_LIBRARY_PATH disagree with g++ -L flag, it happens.
Probably, configuration error.
Incompatible library did not choke, but worked incorrectly, I assume.