On 09/19/2016 07:55 PM, Yale Zhang wrote:
- compile nr-filter-gaussian.cpp as a standalone program:
a. #define UNIT_TEST b. compile just that file to an EXE. This could be a little difficult because you'll need to strip out some unused functions or else there will be a ton of link errors. You'll also need to specify the libraries (at least -lcairo -lpng16). You can see the compile command with make VERBOSE=1 and use that as a starting point.
I did this. I had to move the main function outside the Inkscape::Filters namespace, otherwise the linker complains that there is no main function. Also I needed a ton of linker flags.
I can run the executable but it does nothing except printing "error loading". I think I need the file "../drmixx/rasterized/99_showdown_carcass.png", can you provide that?
Best Regards, Alexander