
2013/4/17 Alexander Brock <a.brock@...2965...>:
I'd like to have a very small exxecutable which only executes a number of little tests with the algorithm I wrote, so I can play with it and fine-tune it faster, without having to compile and link the complete inkscape every time. I placed the attached bezier-tests.cpp in the src directory and tried to compile it:
g++ -Wall -pedantic -I2geom -Ibind -Idebug -Idialogs -Idisplay -Idom -Iextension -Ifilters -Ihelper -Iio -Ilibavoid -Ilibcola -Ilibcroco -Ilibgdl -Ilibnrtype -Ilibvpsc -Ilivarot -Ilive_effects -Ipixmaps -Isvg -Itrace -Iui -Iutil -Iwidgets -Ixml -I. bezier-tests.cpp
Direct compiling is very hard to get right in this way. For geometry-related work you only really need lib2geom. I would try checking out the source of lib2geom ( https://launchpad.net/lib2geom ), compiling it, then using this:
g++ -Wall bezier-tests.cpp -l2geom -o bezier-tests
You may need to add -I and -L flags which point to directories with lib2geom's config.h file and the lib2geom.a file, respectively.
This library is not yet API-stable, so you can make big changes as long as you then change Inkscape to be compatible. Once you have something interesting to submit, I can give you commit access. The objects: Point, Rect, Interval, Affine, Zoom, Scale, Translate, HShear, VShear, and those derived from Curve are considered "mostly done" so you should model any new API on them. Other objects may or may not have sensible APIs.
Regards, Krzysztof