Alex, sorry about the inconvenience. Here's an easy way to compile the unit test with minimal changes to the source code:
1. add extern "C" before int main() 2. add "-ffunction-sections -fdata-sections -fvisibility=hidden -Xlinker --gc-sections" to the compile & link command this will discard any unused functions, so that you won't see all those unresolved symbols
3. add "-lcairo -lpng16 -lglib-2.0" to the compile/link command
" "error loading". I think I need the file" Right, that's a panel from my comic. I'd rather not share it, but you can just use any 8bit color PNG. The resolution I used for the benchmark is 1467x1373.
May I ask how you're using blurs in your work? I use the texture filters that come with Inkscape like marble and brick a lot in background layers. Earlier, this was painfully slow (even at average quality). For a while, I just used a hotkey to toggle filters off when I'm drawing and on when I want to see the final render. This might still be a good idea since a lot of other filters are still pretty slow. I also vectorized the Perlin noise generator.
On Mon, Sep 19, 2016 at 4:03 PM, Alexander Brock <a.brock@...2965...> wrote:
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
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel