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
custom palettes and swatches
by Nicu Buculei
I found I can define my own palette, either in ~/.inkscape/palettes/ or
system wide in /usr/share/inkscape/palettes/ and it will be loaded in
the swatches dialog.
So I made a Gnome HIG palette (attached), which can be used when
creating icons.
If you think it is useful enough, you can add it to the other default
palettes.
--
nicu
GIMP Palette
Name: Gnome HIG
#
234 232 227 Basic 3D Hilight (#EAE8E3)
186 181 171 Basic 3D Medium (#BAB5AB)
128 125 116 Basic 3D Dark (#807D74)
86 82 72 3D Shadow (#565248)
197 210 200 Green Hilight (#C5D2C8)
131 166 127 Green Medium (#83A67F)
93 117 85 Green Dark (#5D7555)
68 86 50 Green Shadow (#445632)
224 182 175 Red Hilight (#E0B6AF)
193 102 90 Red Medium (#C1665A)
136 70 49 Red Dark (#884631)
102 56 34 Red Shadow (#663822)
173 167 200 Purple Hilight (#ADA7C8)
136 127 163 Purple Medium (#887FA3)
98 91 129 Purple Dark (#625B81)
73 64 102 Purple Shadow (#494066)
157 184 210 Blue Hilight (#9DB8D2)
117 144 174 Blue Medium (#7590AE)
75 105 131 Blue Dark (#4B6983)
49 78 108 Blue Shadow (#314E6C)
239 224 205 Face Skin Hilight (#EFE0CD)
224 195 158 Face Skin Medium (#E0C39E)
179 145 105 Face Skin Dark (#B39169)
130 102 71 Face Skin Shadow (#826647)
223 66 30 Accent Red (#DF421E)
153 0 0 Accent Red Dark (#990000)
238 214 128 Accent Yellow (#EED680)
209 148 12 Accent Yellow Dark (#D1940C)
70 160 70 Accent Green (#46A046)
38 199 38 Accent Green Dark (#267726)
255 255 255 White (#FFFFFF)
0 0 0 Black (#000000)
18 years, 3 months
What are your development tools?
by Felix Rabe
Hi everybody,
As I have some time until July for "doing nothing" a few hours a day ;)
, I'd like to volunteer for doing something, ie. Inkscape things. I'm
learning C++ currently (Stroustrup's book). I use Ubuntu Linux on i386
and did quite some programming using Python and PyGTK in the last few
months.
What is needed / do you use aside from cvs, g++ and a text editor? (And
what text editor, as I used Emacs, tried Vim, and use gedit currently.
No flamewars please, I'm glad there are so few of them here :o) , just
"I use editor foo (because ...)".)
Do you use Valgrind, any test suites, gdb / ddd ... ? Where do I start
to learn how to use them?
Also, do you recommend some literature / books, as I did not (and most
probably will not) study computer science? (I have a "Design Patterns",
Gamma et al, here.) I have a small budget for good material.
I also wonder about more exotic things - do you print out code you wrote
for review (my printer doesn't work atm), do sports, drink coffee (I'm
not going to do that, just wondering), gather regularly on Jabber -
anything that might be of interest in terms of a programmer's life and
how to get / remain productive.
Thanks for any answers,
Felix
18 years, 3 months
sp_document_new
by De Winne, Joris
Hello,
I'm trying to create a viewer based on the inkscape SVG viewer. I based my
viewer on the code in inkview.cpp. But during execution I always get a
segmentation fault when I call sp_document_new.
I create a LayoutRenderer and on that object I call the function
renderLayout.
Here's some part of the code I use:
LayoutRenderer::LayoutRenderer() {
changed = false;
uriLatest = "latest.svg";
vector<string> result;
vector<string>::iterator it;
result = Util::putFileInVector(uriLatest);
latest = "";
it = result.begin();
while(it != result.end()) {
latest += *it + "\n";
it++;
}
Inkscape::GC::init();
setlocale (LC_NUMERIC, "C");
if (result.size() > 0) {
changed = true;
}
}
void LayoutRenderer::renderLayout() {
cout << "Start rendering \n";
GtkWidget * w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
cout << "Created new window\n";
SPDocument * doc = sp_document_new (uriLatest.c_str(), TRUE, TRUE,
false);
cout << "Created new document\n";
GtkWidget * view = sp_svg_view_widget_new (doc);
cout << "Created new view\n";
cout << "rendering created objects \n";
sp_svg_view_widget_set_resize (SP_SVG_VIEW_WIDGET (view), FALSE,
sp_document_width (doc), sp_document_height (doc));
sp_document_ensure_up_to_date (doc);
sp_document_unref (doc);
gtk_widget_show (view);
cout << "rendering add to container\n";
gtk_container_add (GTK_CONTAINER (w), view);
gtk_widget_show (w);
cout << "Start rgoing to main loop\n";
gtk_main ();
}
The function gtk_init (&argc, (char ***) &argv); has been called prior to
all the rendering calls. This is the output I get:
Start rendering
Created new window
Segmentation fault
Any help is welcome?
Thnx,
Joris
- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.
18 years, 3 months
New OSX compile problems
by Jon A. Cruz
I'm trying to start building Inkscape on OS X. I'm on Tiger, and
setup with fink unstable. I've gotten to the link, where things are
failing.
Any ideas?
g++ -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-
virtual -Wswitch -Wno-unused-parameter -I/sw/include -
D__LONG_DOUBLE_128__ -g -O0 -o i\
nkscape --export-dynamic main.o -Wl,-bind_at_load -L/sw/lib
libinkpre.a application/libinkapp.a dialogs/libspdialogs.a trace/
libtrace.a svg/libspsvg.a widg\
ets/libspwidgets.a display/libspdisplay.a helper/libspchelp.a
libcroco/libcroco.a libnrtype/libnrtype.a libnr/libnr.a livarot/
libvarot.a ui/view/libuiview.a\
ui/libui.a ui/dialog/libuidialog.a ui/widget/libuiwidget.a extension/
libextension.a extension/implementation/libimplementation.a extension/
internal/libinte\
rnal.a extension/script/libscript.a xml/libspxml.a util/libinkutil.a
io/libio.a inkjar/libinkjar.a libinkpost.a debug/libinkdebug.a -L/usr/
X11R6/lib /sw/lib\
/libgtkmm-2.4.dylib /sw/lib/libgdkmm-2.4.dylib /sw/lib/
libatkmm-1.6.dylib /sw/lib/libpangomm-1.4.dylib /sw/lib/
libglibmm-2.4.dylib /sw/lib/libgtk-x11-2.0.dy\
lib /sw/lib/libgdk-x11-2.0.dylib -lXrandr -lXinerama -lXext -lX11 -
lXcursor /sw/lib/libatk-1.0.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/
lib/libpangoxft-1.0\
.dylib /sw/lib/libpangox-1.0.dylib /sw/lib/libxslt.dylib /sw/lib/
libxml2.dylib -ldl /sw/lib/libsigc-2.0.dylib -lpng -lz /sw/lib/
libpopt.dylib -lXft -lXrende\
r -lfontconfig /sw/lib/libpangoft2-1.0.dylib /sw/lib/
libpango-1.0.dylib -lm /sw/lib/libgobject-2.0.dylib /sw/lib/
libgmodule-2.0.dylib /sw/lib/libglib-2.0.dy\
lib /sw/lib/libintl.dylib /sw/lib/libiconv.dylib -lfreetype /sw/lib/
libgc.dylib -lpthread
/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
/usr/bin/ld: Undefined symbols:
typeinfo for Atk::Implementor
typeinfo for Gtk::Bin
typeinfo for Gtk::Dialog
typeinfo for Gtk::Object
typeinfo for Gtk::Widget
typeinfo for Gtk::Window
typeinfo for Gtk::Container
typeinfo for Glib::ObjectBase
typeinfo for Glib::Object
typeinfo for Glib::Interface
typeinfo for Gtk::CellLayout
typeinfo for Gtk::TreeModelColumnRecord
typeinfo for Gtk::ComboBox
typeinfo for Gtk::Box
typeinfo for Gtk::VBox
typeinfo for Gtk::FileChooser
typeinfo for Gtk::FileChooserDialog
typeinfo for Gtk::HBox
typeinfo for Gtk::HandleBox
typeinfo for Gtk::MessageDialog
typeinfo for Gtk::Adjustment
typeinfo for Gtk::CheckButton
typeinfo for Gtk::CellEditable
typeinfo for Gtk::ToggleButton
typeinfo for Gtk::Entry
typeinfo for Gtk::Button
typeinfo for Gtk::Editable
collect2: ld returned 1 exit status
make[2]: *** [inkscape] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
18 years, 3 months
Building inkscape under cygwin.
by Franz Haeuslschmid
Hello,
I'm lately trying to compile inkscape using the latest edition of
cygwin. However the build process is permanently aborting:
make all-recursive
make[1]: Entering directory `/cygdrive/d/Src/inkscape'
Making all in src
make[2]: Entering directory `/cygdrive/d/Src/inkscape/src'
depbase=`echo object-edit.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/opt/cxclient/usr/X11R6/include -DPOTRACE=\"potrace\" -DXTHREADS -DXUSE_MTSAFE_API -I/home/haeuslsc/local/include/gdkmm-2.4 -I/home/haeuslsc/local/lib/gdkmm-2.4/include -I/home/haeuslsc/local/include/glibmm-2.4 -I/home/haeuslsc/local/lib/glibmm-2.4/include -I/home/haeuslsc/local/include/pangomm-1.4 -I/home/haeuslsc/local/include/gtk-2.0 -I/home/haeuslsc/local/lib/gtk-2.0/include -I/usr/X11R6/include -I/home/haeuslsc/local/include/sigc++-2.0 -I/home/haeuslsc/local/lib/sigc++-2.0/include -I/home/haeuslsc/local/include/glib-2.0 -I/home/haeuslsc/local/lib/glib-2.0/include -I/home/haeuslsc/local/include/pango-1.0 -I/usr/include/freetype2 -I/opt/cxclient/usr/X11R6/include -I/home/haeuslsc/local/include/gtkmm-2.4 -I/home/haeuslsc/local/lib/gtkmm-2.4/include -I/home/haeuslsc/local/include/atkmm-1.6 -I/home/haeuslsc/local/include/atk-1.0 -I/usr/include/libxml2 -I../cxxtest -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -g -O2 -MT object-edit.o -MD -MP -MF "$depbase.Tpo" -c -o object-edit.o object-edit.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.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:846: error: `isfinite' undeclared in namespace `std'
make[2]: *** [object-edit.o] Error 1
make[2]: Leaving directory `/cygdrive/d/Src/inkscape/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/Src/inkscape'
make: *** [all] Error 2
Any ideas?
Franz.
18 years, 3 months
Re: [Fontforge-devel] Bug report: space size
by unknown@example.com
On 5/27/05, Ralf Stubner <ralf.stubner@...128...> wrote:
> That looks ok in principle. The space character has a width of 377
> units. The two lines with '74 304 rmoveto' and 'closepath' look strange
> and are unnecessary, but I would be surprised if they cause any harm.
> You can test this though by removing these two lines and assembling the
> font again with t1asm.
I added for tests a point to the space character, to see if it helps
with the problem. These two lines probably describe that point.
>
> Another wierd possibility is encoding. Maybe space is not encoded or in
> an unsual position in your font, and the application you are using uses
> code positions instead of glyphnames. So look out for /Encoding near the
> begining of the disassembled file. What does it say there?
/Encoding 256 array
>
> If those ideas don't help, then i am lost. Can you make the font in
> question available so that others can have a look at it?
>
I made a new test font with the space, exported it as pfa and this time
it worked. So I exported the original font again in pfa and, as previously,
the space width was zero. So the program is able to generate pfa with
non--zero space width, but for some reason either it can not do it for a
particular font, or the font system does not interpret the particular
font file correctly.
So I send the original PFA:
http://www.iitis.gliwice.pl/~arataj/test.pfa
Thanks,
Artur
18 years, 3 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, 3 months
Re: [Inkscape-user] Re: Nuevos Traducciones de Tutoriales/New Tutorials Translations
by unknown@example.com
Quoting "R. Alan Monroe" <amonroe@...813...>:
> Since it's vector art, couldn't you just put any additional
> language texts in the svg file as a tiny micro-paragraph beside
> the normal text? You could just zoom in to the alternative texts
> or stretch them to read them.
I don't think that would really be helpful, but it is an interesting
idea.
A similar approach would be to put all language texts in the same
document (overlaying one another) and use the SVG <switch> element
so that only the one matching the current language gets rendered.
I'm not sure how well that would work, though, since different
languages will have different paragraph lengths and to look nice
might require the documents to be relaid-out depending on language
(which <switch> can't do).
Admittedly, we don't support the <switch> element yet, but it is
planned.
-mental
18 years, 4 months
dialogs cleanup
by bulia byak
Before we can think about a release, one thing we absolutely must do
is clean up the current mess with dialogs. Everyone who did dialogs
recently (and there were a lot) did it in their own incompatible way.
(Personally, I attribute this to the lack of attention and leadership
from the initiators of the gtkmm transition, but there's no use to
argue about that now; let's just fix what we have.)
Recently I've been working on the Dialog and DialogManager classes in
ui/dialog, and I almost fixed them with regard to things like
transientizing, remembering geometry, and F12 behavior. There are
remaining issues still but I'm pretty sure I'll be able to fix them.
Unfortunately, many dialogs do not use these classes or use them in a
wrong way. The old gtk dialogs need not be touched at this time; they
are OK as they are, and we can always convert them later. What needs
to be fixed urgently is the recenty added gtkmm dialogs, all of which
are broken in different ways.
The simplest dialog to use as a template is ui/dialog/messages.cpp;
another is ui/dialog/memory.cpp. To create a dialog, you need to pass
the prefs path (path in the preferences.xml for the dialog settings;
make sure it exists in preferences-skeleton.h) and the verb that
creates the dialog (make sure it exists in verbs.h/cpp). E.g.:
Messages::Messages()
: Dialog ("dialogs.messages", SP_VERB_DIALOG_DEBUG)
You also need to register the dialog's factory in DIalogManager
constructor and to make sure its verb in verbs.cpp does the right
thing:
case SP_VERB_DIALOG_DEBUG:
dt->_dlg_mgr->showDialog("Messages");
break;
Also don't forget to remove your own F12 handlers, event handles,
transientizing code, title setting, size setting etc. if you have it
in your dialog classes. This is all in Dialog now. Not only will this
stuff finally work as it must, but this will lead to a significant
reducing of code.
Here are the dialogs that need to be converted:
Align: Unless Aubanel Monnier (who coded it initially) shows up, I
think I'll have to take this one.
View/Scripts and Path/Trace Bitmap: Bob, these are yours, so please
take them. This needs to be done ASAP because currently these two are
totally disfunctional - they don't show up when you call them. (This
may be because they used ui/dialog code in some partial way and this
is now broken after my changes there.)
Object/Grid Arrange: John, this one is yours, please convert it - also
ASAP because it's broken in the same way as Bob's ones.
Object/Swatches and Help/About Extensions: Jon, these are yours. I
know you did your own implementation but we now need to unify things.
You can move whatever useful code you have into Dialog, but _that_
must be the root class of all dialogs now. No more duplication please.
This will also fix the many problems your dialogs now have (such as
popping up after being closed when any new dialog is opened).
Jon, Bob, John: Please respond to this message with your estimate as
to when you will be able to work on this. If you cannot handle this
now or in foreseeable future, we'll need to call up volunteers for
this work. Of course, please also voice any questions or objections
you might have.
Oh, and if anyone creates a new dialog now, please use
ui/dialog/messages.cpp as a template. Don't copy from any other
dialogs until they are fixed.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org
18 years, 4 months