Closed skyblueee closed 4 years ago
Hi @skyblueee, thanx for reporting! I am using windows normally. Never tested the gui-stuff with gtk before:-). Should be fixed with https://github.com/Profactor/cv-plot/commit/6480ffe8e67c9490e75ffa8b1e55bd6e5e74fbd1. Could you please test the master branch? Gtk does not support free-ratio windows, so the plot ratio is fixed when you resize the window. Apart from that, everything seems to work now.
thanks, i have tried it. It works great.
This project is awesome, but I met some basic error with the demo code.
a.cpp:
$ g++ --version g++ (Debian 9.3.0-15) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ -DCVPLOT_HEADER_ONLY -I$HOME/cv-plot/CvPlot/inc -I/usr/include/opencv4 a.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui $ ./a.out terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.2.0) ../modules/highgui/src/window_gtk.cpp:1260: error: (-215:Assertion failed) found && "Can't destroy non-registered window" in function 'cvDestroyWindow'
Aborted
I followed the code and think the problem is from Window.h:
There is no problem if I use: