Using mathgl from C and C++ - Raspberry Pi Forums
i'm trying make heating controller based on raspbarian pi. want give web interface users can see graphs of heat store , other temperatures, , going producing graphs .png files using mathgl.
i've done "apt-get install mathgl" seemed work, tried compile following example mathgl web site.
#include <mgl2/mgl.h>
int main()
{
mglgraph gr;
gr.fplot("sin(pi*x)");
gr.writeframe("test.png");
}
compilation fails because included header file can't found.
turns out there no mgl2 directory or mgl.h file anywhere on pi. need install other packages use mathgl c , c++ ?
has been successful in using mathgl on pi ? know google indicated there problems mathgl , python.
many thanks, j/.
i've done "apt-get install mathgl" seemed work, tried compile following example mathgl web site.
#include <mgl2/mgl.h>
int main()
{
mglgraph gr;
gr.fplot("sin(pi*x)");
gr.writeframe("test.png");
}
compilation fails because included header file can't found.
turns out there no mgl2 directory or mgl.h file anywhere on pi. need install other packages use mathgl c , c++ ?
has been successful in using mathgl on pi ? know google indicated there problems mathgl , python.
many thanks, j/.
you have downloaded utilities , examples. search available mathgl packages use
can see need install libmgl-dev package development code.
p.s. post, have never heard of mathgl, looking package nice line graphs. examples pretty me.
hmm... ok appears mathgl version 1 not 2. need install <mgl/mgl.h>
.apt-cache search mathgl
code: select all
pi@raspberrypi ~ $ apt-cache search mathgl libmgl-dev - library scientific graphs. (development files) libmgl-fltk5 - library scientific graphs. (fltk runtime library) libmgl-glut5 - library scientific graphs. (glut runtime library) libmgl-qt5 - library scientific graphs. (qt runtime library) libmgl-wx5 - library scientific graphs. (wxwidgets runtime library) libmgl5 - library scientific graphs. (main runtime library) mathgl - library scientific graphs. (utlities , examples) mathgl-doc-en - library scientific graphs. (english documentation) mathgl-doc-ru - library scientific graphs. (russian documentation) python-mathgl - library scientific graphs. (python module) udav - application data visualization based on mathglp.s. post, have never heard of mathgl, looking package nice line graphs. examples pretty me.
hmm... ok appears mathgl version 1 not 2. need install <mgl/mgl.h>
raspberrypi
Comments
Post a Comment