3 Aug 2012 08:37
Trying to figure out MPLib
Shriramana Sharma <samjnaa <at> gmail.com>
2012-08-03 06:37:28 GMT
2012-08-03 06:37:28 GMT
Hello people. I'm trying to figure out how to integrate MPLib into my C++ application. First I'm working out with C. Since the documentation is *very* sparse I'm trying to feel my way around here. Any help would be highly appreciated. Basically I've compiled the stable MPost release 1.212 and from various places in the source tree I've extracted the following files: libkpathsea.a libmplib.a mplib.h mplibps.h and put them in one directory. In the same directory I have my file test.c and I'm compiling this using gcc -o test test.c -L . -l mplib -l kpathsea. (Building using GCC 4.6.3 on Kubuntu Precise on an i5 64-bit system.) The compilation goes smoothly enough, but trying to execute simple metapost commands using mp_execute fails. The same commands produce a graphic on my regular metapost install. Can anyone please help me with this? Do I need to load the plain file or something? How to do that? Do I need to first input a \relax command before starting with beginfig() and stuff? Please help. Thanks! -- -- Shriramana Sharma
--(Continue reading)
I could
clone/pull SVN or whatever if necessary.
But could you please mention that in the documentation?
>> Even an approximation? Is it then possible to do stroke-to-path within
>> MPLib itself?
>
> Yes. In fact, you get that for free whether you want to or not.
I guess this also applies only to non-elliptical pens.
BTW you mention "non-elliptical". If I define a generic bean-shape
(for example) using smooth curves and use it as a pen, would it be
RSS Feed