HI!
I'm trying to enable svg support on win32.
I've built related DLLs as follows and finally got tuxpaint.exe.
But it does not run.
Johon, Do you have any idea for this?
---------------------------------------------------------------------------------
* Install MinGW and MSYS
* Install libs to compile tuxpaint-0.9.16
I installed all libs basicly according to your instruction.
(but all headers libs and DLLs installed to /usr/include
/usr/lib and /usr/bin)
Confirmed tuxpaint-0.9.16 compile and work perfectly.
* libxml2 2.6.27
./configure --prefix=/usr && make && make install
*libsvg (cvs@...)
apply libsvg-w32-dirname.patch and libsvg-am.patch
./autogen.sh --prefix=/usr && make && make install
*cairo 1.2.6
./configure --prefix=/usr && make && make install
*libsvg-cairo (cvs@...)
apply libsvg-cairo-am.patch
./autogen.sh --prefix=/usr && make && make install
* tuxpaint-0.9.17 (cvs)
"make bdist-win32" successfully done.
copy libxml2-2.dll libsvg-1.dll libcairo-2.dll libsvg-cairo-1.dll
and jpeg.dll to visualc/bdist
execute visualc/bdist/tuxpaint.exe.
And then, error dialog poped up, saying that means
"Failed to initialaze application correctly(0xc0000005). Push
OK to finish application." in japanese.
---------------------------------------------------------------------------------
<libsvg-w32-dirname.patch>
--- libsvg-20061218/src/svg.c.org Sat Aug 13 16:00:14 2005
+++ libsvg-20061218/src/svg.c Mon Dec 18 23:37:44 2006
@@ -24,7 +24,9 @@
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
+#ifndef WIN32
#include <libgen.h>
+#endif
#include <zlib.h>
#include <sys/param.h>
@@ -141,6 +143,28 @@
gzclose (zfile);
return status;
}
+
+#ifdef WIN32
+char * dirname(char *path)
+{
+ int last;
+ char *slash;
+
+ last = strlen (path) - 1;
+ while (last > 0 && path[last] == '/')
+ path[last--] = '\0';
+ slash = strrchr (path, '/');
+ if (slash == NULL)
+ path = (char *) ".";
+ else
+ {
+ while (slash > path && *slash == '/')
+ --slash;
+ slash[1] = 0;
+ }
+ return path;
+}
+#endif
svg_status_t
svg_parse (svg_t *svg, const char *filename)
<libsvg-am.patch>
--- src/Makefile.am.org Wed Dec 20 22:01:36 2006
+++ src/Makefile.am Wed Dec 20 22:03:16 2006
@@ -31,9 +31,8 @@
svg_version.h \
$(LIBSVG_EXTRA_SOURCES)
-libsvg_la_LDFLAGS = -version-info @VERSION_INFO@
+libsvg_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
INCLUDES = $(LIBSVG_CFLAGS) $(WARN_CFLAGS)
-libsvg_la_LIBADD = $(LIBSVG_LIBS)
-
+libsvg_la_LIBADD = $(LIBSVG_LIBS) -lpng -ljpeg -lz
<libsvg-cairo-am.patch>
--- src/Makefile.am.org Wed Dec 20 22:49:46 2006
+++ src/Makefile.am Wed Dec 20 22:50:20 2006
@@ -8,7 +8,7 @@
svg_cairo_sprintf_alloc.c \
svg_cairo_state.c
-libsvg_cairo_la_LDFLAGS = -version-info @VERSION_INFO@
+libsvg_cairo_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
INCLUDES = $(WARN_CFLAGS) $(PANGOCAIRO_CFLAGS) $(LIBSVG_CAIRO_CFLAGS) $(X_CFLAGS)
--
TOYAMA Shin-ichi mailto:shin1@...
|