From: mgsloan <mg...@gm...> - 2007-05-08 04:47:45
|
> > Although I was not able to build 2geom on my Windows, Aaron Spike gave me > a distribution build that I was able to link in with Inkscape: it is now > possible to use 2geom from Inkscape code! (please know that I did not test > things on Linux..., I also just tested briefly so I am not confident that > 'all' works. It did seem a bit 'too easy' to link the two together.) It's probably a dependency issue, though I'm not confident in offering help in the issue. I never figured out how to do anything C on windows... Of course, I was trying to use free and OSS. I believe that JFBarraud has a hack to compile with the boost dependencies. I found some functions that read path data from a file (I think in SVG > format?), but not from a string. This makes interfacing with Inkscape > troublesome. Therefore, could you please add a function that converts an > Inkscape-datatype to 2geom? I.e. from Glib::ustring with an SVG path > string to Geom::Path ? Hmm, good point, we should probably have it take something more accessible. I'm afraid that in many aspects of C, I am pretty noobish, and string handling is one of them. I could have sworn we used some general input interface that could take strings or files, or maybe strings can be converted to FILE (even if no file is written). Anyway, it takes svgd, which is indeed just the path data. |