简体   繁体   English

如何使用VC ++ 2010构建koolplot库

[英]How to build a koolplot library using VC++ 2010

I want to use simple plotting functions in my C++ code. 我想在我的C ++代码中使用简单的绘图函数。 Presently I am using Qt5 with VS2010 c++ compiler. 目前我正在使用Qt5和VS2010 c ++编译器。 I came across this library called koolplot . 我遇到了这个名为koolplot的库。 But I cannot buid it with VS2010 from its source files. 但是我不能用它的源文件用VS2010来补充它。 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.. 我打开vs2010 cmd并运行nmake ...它显示winbgim.h缺失..我在MinGW include文件夹中复制了该标题并运行它...现在它显示"Plotdata.h:warning: 'typedef' was ignored in this declaration"请帮忙...如果有人知道一个简单的绘图库运行VS2010请建议..

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. 根据它的网站,Koolplot是为MinGW / gcc工具链设计的 - 你必须做一些腿部工作才能在Visual Studio上进行编译,尽管我不知道具体你需要做什么仔细看看。

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. 此外,图书馆似乎也有自己的窗口管理等,所以我不确定你能用它来与Qt集成它。

koolplot needs WinBGI library (BGI = Borland Graphics Interface?). koolplot需要WinBGI库(BGI = Borland图形界面?)。 I have changed it to use native Win32 using VS2008: 我已将其更改为使用VS2008使用本机Win32:

http://www.tu-chemnitz.de/~heha/hs/koolplot-heha.zip/ 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. 它仍然是不完整的,因为一个好的Win32实现会在DLL中实现koolplot,它自动注册一个Window类,并且同时具有C和C ++接口。 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. 此外,koolplot as-is不支持多种尺度,更精细的绘图选项,GDIplus和快速数据更新,因此编写示波器程序并不正确。 It's C++ code is also outdated as there are lambda functions available now. 它的C ++代码也已过时,因为现在有lambda函数可用。

However, good integrating into Qt is another task. 但是,与Qt的良好集成是另一项任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM