Question

I want to use simple plotting functions in my C++ code. Presently I am using Qt5 with VS2010 c++ compiler. I came across this library called koolplot. But I cannot buid it with VS2010 from its source files. I am opening vs2010 cmd and running nmake...It shows winbgim.h missing..I copied that header in MinGW include folder and ran it ...now it shows "Plotdata.h:warning: 'typedef' was ignored in this declaration" Please help...if any one knows a simple plotting library running with VS2010 please suggest..

Was it helpful?

Solution

According to its website, Koolplot is designed for the MinGW/gcc toolchain - you'll have to do a bit of leg work to get it to compile on Visual Studio, though I don't know specifically what you'd have to do without taking a closer look.

Also, the library seems to do its own window management and the like, so I'm not sure how well you'll be able to integrate it with Qt.

OTHER TIPS

koolplot needs WinBGI library (BGI = Borland Graphics Interface?). I have changed it to use native Win32 using VS2008:

http://www.tu-chemnitz.de/~heha/hs/koolplot-heha.zip/

It's still incomplete as a good Win32 implementation would implement koolplot in a DLL which self-registers a Window class, and has both C and C++ interface. Moreover, koolplot as-is doesn't support multiple scales, finer plotting options, GDIplus, and fast data update, so it's not the right thing to write an oscilloscope program. It's C++ code is also outdated as there are lambda functions available now.

However, good integrating into Qt is another task.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top