Is anyone out there secretly working on the symmetry-tool branch?
I've tried to compile recently, but it seems to be suffering some bit rot. I'm working through errors, but for the moment I'm stumped on what seems to be a lot of c style object code from the general src breaking compilation. Any hints?
-Tom ----- tomlechner.com
On Sat, 2014-01-18 at 20:52 -0800, Tom Lechner wrote:
Is anyone out there secretly working on the symmetry-tool branch?
I've tried to compile recently, but it seems to be suffering some bit rot. I'm working through errors, but for the moment I'm stumped on what seems to be a lot of c style object code from the general src breaking compilation. Any hints?
Hey Tom,
Thanks for looking into the branch.
If it's too old, the best approach might be to take the original commit delta and manually merge it into trunk one bit at a time.
See if you can get it up and running and if not work on that one small part until it's working again.
Martin,
Actually, I was trying to do exactly what you suggest.
Downloaded the branch, it failed to compile, due to incompatibilities with recent gtk or something. So, I tried merge with the current trunk, and manually edit trouble spots.. This was going great, but I'm stuck on: src/sp-symmetry-basetile.cpp
I see there's an old discussion thread from March about C++ification.. I'll have to read through that.. C based object oriented code gives me a headache, perhaps that thread's the aspirin, or at least points to where the pharmacy is!
-Tom
On 01/18/2014 09:26 PM, Martin Owens wrote:
On Sat, 2014-01-18 at 20:52 -0800, Tom Lechner wrote:
Is anyone out there secretly working on the symmetry-tool branch?
I've tried to compile recently, but it seems to be suffering some bit rot. I'm working through errors, but for the moment I'm stumped on what seems to be a lot of c style object code from the general src breaking compilation. Any hints?
Hey Tom,
Thanks for looking into the branch.
If it's too old, the best approach might be to take the original commit delta and manually merge it into trunk one bit at a time.
See if you can get it up and running and if not work on that one small part until it's working again.
Martin,
Essentially, you'll have to add some virtual methods to "struct SPSymmetryBaseTile : public SPGroup" that override SPGroup's methods instead of using the function pointers in sp_symmetry_basetile_class_init. Turn ll. 41-50 into member methods. Remove ll. 117-157. Turn these rotationMarkers in ll. 159-160 into static members. Register your class with the SPFactory like this:
#include "sp-factory.h"
namespace { SPObject* createRect() { return new SPRect(); }
bool rectRegistered = SPFactory::instance().registerObject("svg:rect", createRect); }
Regards, Markus
-----Ursprüngliche Nachricht----- Von: Tom Lechner [mailto:tom@...3064...] Gesendet: Sonntag, 19. Januar 2014 07:06 Cc: inkscape-devel@lists.sourceforge.net Betreff: Re: [Inkscape-devel] Symmetry Tool
Actually, I was trying to do exactly what you suggest.
Downloaded the branch, it failed to compile, due to incompatibilities with recent gtk or something. So, I tried merge with the current trunk, and manually edit trouble spots.. This was going great, but I'm stuck on: src/sp-symmetry-basetile.cpp
I see there's an old discussion thread from March about C++ification.. I'll have to read through that.. C based object oriented code gives me a headache, perhaps that thread's the aspirin, or at least points to where the pharmacy is!
-Tom
On 01/18/2014 09:26 PM, Martin Owens wrote:
On Sat, 2014-01-18 at 20:52 -0800, Tom Lechner wrote:
Is anyone out there secretly working on the symmetry-tool branch?
I've tried to compile recently, but it seems to be suffering some bit rot. I'm working through errors, but for the moment I'm stumped on what seems to be a lot of c style object code from the general src breaking compilation. Any hints?
Hey Tom,
Thanks for looking into the branch.
If it's too old, the best approach might be to take the original commit delta and manually merge it into trunk one bit at a time.
See if you can get it up and running and if not work on that one small part until it's working again.
Martin,
---------------------------------------------------------------------------- -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.cl... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (3)
-
Markus Engel
-
Martin Owens
-
Tom Lechner