Steffen,
I was finally able to test out your 'dia win32
compilation'
instructions, and have attached my step-by-step notes
on the
experience. By and large, everything went fairly
smoothly. Thanks again for your efforts!
biggest thing I tripped over was figuring out the need
to add
'art_config.h' into the .\glib\build\win32\make.msc
On the run-time side, I had to rename the libintl.dll
file 'libintl-1.dll', and had to copy iconv.dll as
libiconv.dll (somehow, both are needed!)
Only problem with the executable is the lack of any
sheets.
(FWIW, File->Plugins shows that all plug-ins are
loaded)
Any ideas how to fix this?
thx, Mike
--- Steffen Macke <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> with some help from Hans, I was able to compile dia
> for Win32.
>
> http://dia-installer.sourceforge.net
>
> has step-by-step instructions how to compile the
> CVS version as well as all the required developer
> packages.
>
> Steffen
>
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
==
1. unpack build files
==
uncompress the following files to $(TOP)
atk-1.0.3-20020821.zip
atk-dev-1.0.3-20020821.zip
dia-CVS-20030105-0823.tar.gz
gettext-0.10.40-bin.zip
gettext-0.10.40-lib.zip
glib-2.0.7-20021201.zip
glib-2.0.7-20021201-src.zip
glib-dev-2.0.7-20021201.zip
gtk+-2.0.9-20021201.zip
gtk+-dev-2.0.9-20021201.zip
libart-2.3.3-1-lib.zip
libart-2.3.3-bin.zip
libiconv-1.8-w32-1.bin.zip
libpng-1.2.4-1-bin.zip
libpng-1.2.4-1-lib.zip
libxml2-2.4.12-1-lib.zip
libxml2-2.4.12-bin.zip
pango-1.0.5-20021201.zip
pango-dev-1.0.5-20021201.zip
zlib-1.1.4-bin.zip
zlib-1.1.4-lib.zip
==
2. setup build environment:
==
2.1 in the $(TOP) directory, create/run the 'configure_dia_msvc.bat' script
copy dia\config.h.win32 dia\config.h
move glib-2.0.7 glib
copy glib\glibconfig.h.win32 glib\glibconfig.h
copy lib\gtk-2.0\include\gdkconfig.h include\gtk-2.0\
copy libiconv-1.8-w32-1.bin\*.h include
2.2 edit .\glib\build\win32\make.msc
update the following elements as follows:
-
ATK_CFLAGS = -I$(TOP)\include\$(ATK)
ATK_LIBS = $(TOP)\lib\atk-$(ATK_VER).lib
GDK_PIXBUF_LIBS = $(TOP)\lib\gdk_pixbuf-$(GDK_PIXBUF_VER).lib
GLIB_CFLAGS = -I $(GLIB) -I $(GLIB)\glib -I $(GLIB)\gmodule $(INTL_CFLAGS)
GLIB_LIBS = $(TOP)\lib\glib-$(GLIB_VER).lib $(TOP)\lib\gmodule-$(GLIB_VER).lib
$(TOP)\lib\gobject-$(GLIB_VER).lib
GTK2_CFLAGS = $(GLIB_CFLAGS) $(ATK_CFLAGS) -I$(GTK2)\gdk -I$(GTK2)\gdk
-I$(TOP)\include\gtk-2.0 -I$(TOP)\include\$(PANGO)
GTK2_LIBS = $(TOP)\lib\gtk-win32-$(GTK2_VER).lib
$(TOP)\lib\gdk-win32-$(GTK2_VER).lib $(GDK_PIXBUF_LIBS) $(PANGO_LIBS)
INTL_CFLAGS = -I $(TOP)\include
INTL_LIBS = $(TOP)\lib\libintl.lib
LIBART_CFLAGS = -FI$(TOP)\include\libart_lgpl\art_config.h
LIBART_LIBS = $(TOP)\lib\libart_lgpl.lib
LIBICONV_CFLAGS = -I $(TOP)\include
LIBICONV_LIBS = $(LIBICONV)\lib\iconv.lib
LIBXML2_CFLAGS = -I $(TOP)\include\$(LIBXML2)
LIBXML2_LIBS = $(TOP)\lib\libxml$(LIBXML_VER).lib
PANGO_CFLAGS = -I $(TOP)\include\$(PANGO)
PANGO_LIBS = $(TOP)\lib\pango-$(PANGO_VER).lib
PANGOWIN32_LIBS = $(PANGO_LIBS) $(TOP)\lib\pangowin32-$(PANGO_VER).lib
PNG_CFLAGS = -I $(TOP)\include\$(PNG) $(ZLIB_CFLAGS)
PNG_LIBS = $(TOP)\lib\libpng.lib $(ZLIB_LIBS)
ZLIB_CFLAGS = -I $(TOP)\include\$(ZLIB)
ZLIB_LIBS = $(TOP)\lib\libz.lib
2.3 edit .\glib\build\win32\module.defs
update:
LIBXML_VER = 2
2.4 setup environment variables:
add '{$TOP}\lib\' to LIB environment variable
add '{$TOP}\include\' to INCLUDE environment variable
add '{$TOP}\bin' to PATH environment variable
note: replace {$TOP} with the full path location of $(TOP)
also, these were the only environment variable changes
I needed to make, since I had installed MSVC 6.0 with
it automatically setting its critical environment variables.
here is how my 'include' and 'lib' environment variables are set:
include=C:\Program Files\Microsoft Visual Studio\VC98\atl\include;
C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;
C:\Program Files\Microsoft Visual Studio\VC98\include;
f:\dia-build-area\include\