if you are on ubuntu or debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvdestroyallwindows'
Related code examples
[main] Unable to determine what CMake generator to use. Please install or configure a preferred generator,
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.