aaron@...749... wrote:
aaron@...749... wrote:
Ralf Stephan wrote:
* src/file.cpp, src/inkscape.cpp, src/ui/dialog/dialog.cpp,
src/ui/dialog/dialog.h, src/application/application.h, src/application/application.cpp: divide code /wrt Application::getNewGui(): if true, it's called by the Gtkmm application and the inkscape object is meaningless
My first problem compiling on win32. Aaron Spike
false alarm. I think I updated too soon.
ok, for real now. errors on win and lin.
Aaron Spike
Win32 error: mingw32-g++ --export-dynamic -o inkscape.exe main.o winmain.o inkres.o libinksca pe.a -Lc:/gtk28/lib -lloudmouth-1 -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 -latkmm-1 .6 -lpangomm-1.4 -lsigc-2.0 -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixb uf-2.0 -lm -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2 .0 -lgthread-2.0 -lglib-2.0 -Lc:/gtk28/perl/lib/CORE -lperl58 -Lc:/gtk28/python/ libs -lpython24 c:/gtk28/bin/libxml2.dll c:/gtk28/lib/iconv.lib -lfreetype.dll - lfontconfig.dll -lpng -lpopt c:/gtk28/lib/zdll.lib -lgc -mwindows -lws2_32 -lint l libinkscape.a(inkscape.o)(.text+0x559):inkscape.cpp: undefined reference to `Ink scape::Preferences::save()' libinkscape.a(inkscape.o)(.text+0x697):inkscape.cpp: undefined reference to `Ink scape::Preferences::get()' libinkscape.a(inkscape.o)(.text+0xd39):inkscape.cpp: undefined reference to `Ink scape::Preferences::save()' libinkscape.a(inkscape.o)(.text+0xe60):inkscape.cpp: undefined reference to `Ink scape::Preferences::save()' libinkscape.a(inkscape.o)(.text+0x284b):inkscape.cpp: undefined reference to `In kscape::Preferences::load()' libinkscape.a(inkscape.o)(.text+0x3046):inkscape.cpp: undefined reference to `In kscape::Preferences::save()' libinkscape.a(application.o)(.text+0x9f):application.cpp: undefined reference to `Inkscape::Preferences::loadSkeleton()' libinkscape.a(application.o)(.text+0x23f):application.cpp: undefined reference t o `Inkscape::Preferences::loadSkeleton()' libinkscape.a(application.o)(.text+0x581):application.cpp: undefined reference t o `Inkscape::Preferences::load()' libinkscape.a(application.o)(.text+0x5e7):application.cpp: undefined reference t o `Inkscape::Preferences::save()' libinkscape.a(editor.o)(.text+0xe5):editor.cpp: undefined reference to `Inkscape ::UI::View::EditWidget::EditWidget(SPDocument*)' libinkscape.a(editor.o)(.text+0x1045):editor.cpp: undefined reference to `Inksca pe::Preferences::load()' libinkscape.a(editor.o)(.text+0x1445):editor.cpp: undefined reference to `Inksca pe::Preferences::load()' libinkscape.a(editor.o)(.text+0x1635):editor.cpp: undefined reference to `Inksca pe::Preferences::save()' libinkscape.a(editor.o)(.text+0x2d7b):editor.cpp: undefined reference to `Inksca pe::UI::View::EditWidget::EditWidget(SPDocument*)' collect2: ld returned 1 exit status make[1]: *** [inkscape.exe] Error 1 make[1]: Leaving directory `C:/src/inkscape/src' make: *** [all] Error 2
Linux error: if apg++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/freetype2 -I/usr/local/src/inkscape/extra/static//include/loudmouth-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DXTHREADS -I/usr/include/freetype2 -I/usr/X11R6/include -DPOTRACE="potrace" -DXTHREADS -pthread -I/usr/local/src/inkscape/extra/static/include/gdkmm-2.4 -I/usr/local/src/inkscape/extra/static/lib/gdkmm-2.4/include -I/usr/local/src/inkscape/extra/static/include/glibmm-2.4 -I/usr/local/src/inkscape/extra/static/lib/glibmm-2.4/include -I/usr/local/src/inkscape/extra/static/include/pangomm-1.4 -I/usr/local/src/inkscape/extra/static/include/gtkmm-2.4 -I/usr/local/src/inkscape/extra/static/lib/gtkmm-2.4/include -I/usr/local/src/inkscape/extra/static/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I../cxxtest -I/usr/local/src/inkscape/extra/static/include -Wall -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -O2 -march=i586 -pipe -MT ui/view/edit-widget.o -MD -MP -MF "ui/view/.deps/edit-widget.Tpo" \ -c -o ui/view/edit-widget.o `test -f 'ui/view/edit-widget.cpp' || echo './'`ui/view/edit-widget.cpp; \ then mv -f "ui/view/.deps/edit-widget.Tpo" "ui/view/.deps/edit-widget.Po"; \ else rm -f "ui/view/.deps/edit-widget.Tpo"; exit 1; \ fi ui/view/edit-widget.cpp: In member function `void Inkscape::UI::View::EditWidget::initStatusbar()': ui/view/edit-widget.cpp:1152: error: `property_ellipsize' undeclared (first use this function) ui/view/edit-widget.cpp:1152: error: (Each undeclared identifier is reported only once for each function it appears in.) ui/view/edit-widget.cpp:1152: error: `ELLIPSIZE_END' undeclared in namespace ` Pango' make[2]: *** [ui/view/edit-widget.o] Error 1 make[2]: Leaving directory `/usr/local/src/inkscape/ap/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/inkscape/ap' make: *** [all] Error 2 Making ... failed