object-edit.cpp:842: error: `isfinite' undeclared in namespace `std'
by Jeremy C. Reed
Building inkscape-0.41 on NetBSD 1.6.2_STABLE with GCC 3.3.3.
I receive this error:
if c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/pkg/include -I/usr/X11R6/include
-I/usr/X11R6/include/freetype2
-DPOTRACE=\"potrace\"
-I/usr/pkg/include/gtk-2.0
-I/usr/pkg/lib/gtk-2.0/include -I/usr/pkg/include -I/usr/X11R6/include
-I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/pango-1.0
-I/usr/X11R6/include/freetype2 -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/libxml2
-I/usr/pkg/include/sigc++-2.0 -I/usr/pkg/lib/sigc++-2.0/include
-I/usr/pkg/include/gtkmm-2.4 -I/usr/pkg/lib/gtkmm-2.4/include
-I/usr/pkg/include/glibmm-2.4 -I/usr/pkg/lib/glibmm-2.4/include
-I/usr/pkg/include/gdkmm-2.4 -I/usr/pkg/lib/gdkmm-2.4/include
-I/usr/pkg/include/pangomm-1.4 -I/usr/pkg/include/atkmm-1.6
-I/usr/pkg/include/gtkspell-2.0 -I/usr/pkg/include -I/usr/include
-I/usr/pkg/include/freetype2 -Wall -W -Wpointer-arith -Wcast-align
-Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -s
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -MT
object-edit.o -MD -MP -MF ".deps/object-edit.Tpo" -c -o object-edit.o
object-edit.cpp; \
then mv -f ".deps/object-edit.Tpo" ".deps/object-edit.Po"; else rm -f
".deps/object-edit.Tpo"; exit 1; fi
object-edit.cpp: In function `void sp_spiral_outer_set(SPItem*, const
NR::Point&, const NR::Point&, unsigned int)':
object-edit.cpp:842: error: `isfinite' undeclared in namespace `std'
gmake[2]: *** [object-edit.o] Error 1
Any ideas?
(Please carbon-copy me on replies.)
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/
18 years, 2 months
filter for inkscape and OpenDocument
by Jon Phillips
Heya,
I just read your nice interview at groklaw
(http://www.groklaw.net/article.php?story=20050130002908154). First of all, this
is really exciting, but I wonder if you could write up more about what is needed
of Inkscape for this new format. I see in your interview you note that there is
a needed filter for Inkscape, but it is not clarified what this means. I'm
cc'ing the Inkscape development list about this. I just wonder how this
OpenDocument format (the newly standardized open office xml format) relates to
Inkscape and what you are asking to be done.
Or do you want a filter that say one has an SVG file, then one can convert that
to an OpenDocument file. I don't think that would be difficult. But, what about
OpenOffice support for the SVG file format?
Please copy me and/or the Inkscape-devel list and I will make sure they get the
response. Or, please reply to me and the list if you are on Inkscape's list.
Thanks,
Jon
--
Jon Phillips
USA PH 510.499.0894
jon@...235...
http://www.rejon.org
Inkscape (http://inkscape.org)
Open Clip Art Library (www.openclipart.org)
CVS Book (http://cvsbook.ucsd.edu)
Scale Journal (http://scale.ucsd.edu)
18 years, 4 months
plan for Postscript import
by MenTaLguY
I've been examining our options for importing postscript without
requiring a bajillion evil dependencies, and I think I've arrived at a
plan.
1) write a postscript to SVG converter in Postscript and use that for
our Postscript importer
2) write a bare-bones standalone Postscript interpreter (doesn't need to
implement any rendering, just provide a dummy postscipt device) and ship
it with Inkscape
Until #2 is finished, we can run the converter using Ghostscript, which
is still two fewer dependencies than before.
I've got prototypes for both #1 and #2 in CVS in the module
'ps3convert'.
The prototype interpreter is written in Ruby and isn't really functional
yet, but the converter (currently encapsulated in the ps-svg shell
script) already works for the basic stuff.
Running the converter:
./ps-svg blah.ps > blah.svg
Caveats with the converter:
* it's a proof-of-concept; hence the code is horribly ugly
* it doesn't yet do text, gradients or clipping paths
* the image in the output SVG appears above the top of the page, so you
have to scroll up to see it
Also one last caveat: I'm not promising any timetables on this stuff.
So don't bug me to finish it. You'll probably find giving me patches to
be the more productive alternative.
-mental
18 years, 4 months
crash: ungroup tutorial
by unknown@example.com
While I've been working with the tutorials I've experienced a few
chrashes so I've decided to start running with gdb to capture backtraces.
Open tips and tricks tutorial.
select everything Ctrl+A
click the ungroup button a few times.
segfault.
Starting program: /usr/local/bin/inkscape
[Thread debugging using libthread_db enabled]
[New Thread -1223995264 (LWP 21644)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1223995264 (LWP 21644)]
0x0812d60d in sp_selection_ungroup () at selection-chemistry.cpp:569
569 if (strcmp(SP_OBJECT_REPR(group)->name(), "svg:g") &&
strcmp(SP_OBJECT_REPR(group)->name(), "svg:switch")) {
(gdb) bt
#0 0x0812d60d in sp_selection_ungroup () at selection-chemistry.cpp:569
#1 0x082ad6ff in sp_action_perform (action=0x863a270, data=0x0)
at helper/action.cpp:135
#2 0xb75c02a6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#3 0xb75ae736 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0xb75bfc5a in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#5 0xb75bee9c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#6 0xb75bf126 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7 0xb790e655 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#8 0xb7a73bdc in gtk_toggle_button_get_inconsistent ()
from /usr/lib/libgtk-x11-2.0.so.0
#9 0xb75c02a6 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#10 0xb75ae9c9 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#11 0xb75ae736 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0xb75bf651 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#13 0xb75bee9c in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0xb75bf126 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0xb790e5c5 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#16 0xb790f383 in _gtk_button_paint () from /usr/lib/libgtk-x11-2.0.so.0
#17 0xb79d49fe in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
Aaron Spike
18 years, 5 months
sp_repr_type_lookup
by rm
hi,
looking at the code, the mapping of the xml node types to GTypes
seems a bit inflexible and assumes there's a one to one relationship.
i was thinking of using a specialized SPGroup to implement a
feature, but when the group operation is invoked from the UI it only
adds the svg:g xml node; a listener callback is invoked and an SPGroup
is created.
i could use my own tag, but this would mess up other svg viewers
unnecessarily (the feature i want just has to do with how the group is
handled during interaction not with its display).
ideally, i'd want to use something like <svg:g
inkscape:variant="my special group">...</svg:g> so i'd have to use the
element's attributes as a secondary key to cause it to create
MySpecialSPGroup with modified behaviour. the alternative would be to
use a different tag or add the new behaviour to the normal SPGroup
(which seems bad from a design perspective).
any thoughts?
regards,
rob
----
Robert Melby
uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!org!arcsin!rm
18 years, 5 months
swatches
by bulia byak
Jon,
It's good to see the swatches being worked on. Shift+click now works,
which is excellent. Some comments:
- please remove the padding between the swatches (not only does this
waste space, but also makes the colors harder to discern due to a
well-known optical illusion)
- please make it remember the display mode and the loaded palette
across sesssions (and the window size/placement too, of course)
- please do something with the menu and X buttons, they are rather
ugly (why don't you just copy them over from Gimp, they're nice there)
- please fix it to not display the scrollbars when they are not needed
- could you add a "no color" button to the beginning of each palette,
which would set "none" to either fill or stroke
- what is eek-preview.cpp? is it temporary? if not could you please
rename it to something more useful?
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
18 years, 5 months
gtkmm / TreeView
by Bryce Harrington
Hi Murray,
Speaking of gtkmm, one observation/request:
We've noticed for Inkscape it would be __really__ handy to create a
certain kind of dialog using the TreeView control. For things like the
layer editor, extensions, preferences, XML editor, and so forth, we need
hierarchical management of various XML and SVG trees.
Basically, these dialogs use a TreeView widget on the left, which allow
navigating through the tree and selecting an item, and then the right
side of the dialog is updated to display widgets appropriate to that
selection.
This is a uber-common style of dialog for file or config management,
etc. etc. Pull up Inkscape's XML Editor to get an idea of what we
need.
However... The problem has been that hooking up TreeView with all the
code to manage the widgets, signals, and XML tree looks really
intimidating. We've not been able to find an Inkscape volunteer brave
enough to dive into it.
Anyway, my thought is that this style of dialog would probably be
extremely useful to other gtkmm users (in fact, I'd been planning to
contribute it back to gtkmm if/when it got developed), and that perhaps
the gtkmm team might be able to help in creating it? I think we could
give a lot of ideas on the design and of course lots of feedback and
testing as we incorporate it.
Bryce
On Tue, Apr 26, 2005 at 06:55:24PM +0200, Murray Cumming wrote:
> At least with the sourceforge bug tracker you can't mark a bug as
> dependent on gtkmm.
>
> --
> Murray Cumming
> murrayc@...799...
> www.murrayc.com
> www.openismus.com
>
>
18 years, 5 months