Re: inkscape extensions

Home Evil Mad Scientist Forums Egg-Bot inkscape extensions Re: inkscape extensions

#21024
ebo
Participant

First please accept my apologies.  When I used the term “beast” I had not meant it to be disparaging.  Rereading the post (after some sleep) I see where it could be taken that way.  Sorry about that.

So, moving on…

sys.platform returns ‘linux2’

the eggbot enumerates as /dev/ttyACM0 as expected

I am running inkscape-0.48.3.1 which is actually newer than the 0.48.2 version you quoted.  So, I thought that I might as well downgrade and see if that helps.  Here is where things start to get exciting…

My system is running newer versions of the compilers and glib than inkscape-0.48.2 source can handle. I was able to solve most of the source code problems with the following script fu in a custom ebuild:

    find . -type f -exec sed -i “/gstdio.h/! s%glib/g.*.h%glib.h%” {} ;
    find . -type f -exec sed -i “s%(_(%((%” {} ;

newer version of glib disallows calling glib/g*.h and requires you call <glib.h> instead.  There is one interesting exception though, and that is <glib/gstdio.h>

So things started building away until way late in the game where it dies with the following errors (one here as an example):

extension/internal/pdfinput/pdf-parser.cpp: In member function ‘void PdfParser::parse(Object*, GBool)’:
extension/internal/pdfinput/pdf-parser.cpp:370:52: error: invalid conversion from ‘int’ to ‘ErrorCategory’ [-fpermissive]
extension/internal/pdfinput/pdf-parser.cpp:370:52: error: invalid conversion from ‘char*’ to ‘int’ [-fpermissive]
extension/internal/pdfinput/pdf-parser.cpp:370:52: error: too few arguments to function ‘void error(ErrorCategory, int, const char*, …)’
/usr/include/poppler/Error.h:54:13: note: declared here

It turns out that this error is, if I understand it correctly, all bound up with changes to poppler (I am running poppler-0.20.4 BTW).  So, this is a show-stopper, because I cannot safely downgrade my systems glib and poppler to accommodate the older version of inkscape without risking mucking all sorts of things.

If you really are willing to setup a development machine to run Gentoo for testing, I will see what I can do to help.  As a note, Gentoo is far from being the easiest linux distribution to install, but once you do get a configured sustem it is trivial to keep it up to date with security patches, etc., because “portage” manages a complete dependency graph of all package revisions and rebuilds packages automatically when updates to dependencies are posted.  I have been able to keep my laptop uptodate for the last 5 years with only one serious hickup.  If you do start banging on this I will offer to write an eggbot ebuild to help build, maintain, and distribute the changes.

Once again I am sorry for how my “beast” comment came across.  As a note, when I first got the eggbot it was just to play with (so I had very little motivation to get it all working, and add to that the fact that I normally only play with things like this as I am winding down at the end of the night — like right now at 2:30am).  If I recall correctly I did contact one of the forums sometime back in 2010, but was not able to work through whatever the issues were at that time.  So, I have been taking this down and play with it every once and awhile and put it back in a box for 3 to 6 months at a time until I decide to poke at it again.  I was hoping to work on a holiday gift where I could have used it.  That is why I picked it up again. For all I know something might have been damaged in my last half-dozen moves…