Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • "I'm using opencv with Ubuntu 12.04, so GTK3"
  • "Rebuild the library with Windows, GTK+ 2.x "

you see the mismatch ? when building the opencv libs ( esp. highgui ), it did not find gtk2, so that module was built without gui support and throws a runtime exception, when you try to open a window. (anything else, like videocaptuer and imread, should still work fine, though)

cv::Exception::what() is just the function, that retrieves the message from the exception. please remove that part from your title, as it's totally misleading.

again, your problem is missing gtk2.

  • "I'm using opencv with Ubuntu 12.04, so GTK3"
  • "Rebuild the library with Windows, GTK+ 2.x "

you see the mismatch ? when building the opencv libs ( esp. highgui ), it did not find gtk2, so that module was built without gui support and throws a runtime exception, when you try to open a window. (anything else, like videocaptuer videocapture and imread, should still work fine, though)

cv::Exception::what() is just the function, that retrieves the message from the exception. please remove that part from your title, as it's totally misleading.

again, your problem is missing gtk2.

  • "I'm using opencv with Ubuntu 12.04, so GTK3"
  • "Rebuild the library with Windows, GTK+ 2.x "

you see the mismatch ? when building the opencv libs ( esp. highgui ), it did not find gtk2, so that module was built without gui support and throws a runtime exception, when you try to open a window. (anything else, like videocapture and imread, should still work fine, though)

cv::Exception::what() so actually, imshow() (or namedWindow(), whatever you were trying to use from highgui) is the function, that is not implemented.

Exception::what() is just the function, that retrieves the message from the exception. please remove that part from your title, as it's totally misleading.

again, your problem is missing gtk2.