Re: GtkSourceView build for Windows?



Could this ommision [ of -mms-bitfields ] be the source of my problems?

The -mms-bitfields flag is mentioned both in the glib-2.0.pc and
gtk+-2.0.pc files in the Win32 packages for them, so as the
gtksourceview packages are presumably built with mingw and the
"normal" autofoo etc, it should have come from there.

Does anyone use GtkSourceView successfully on Windows platform?

I just tried to build using MSVS8 (MSVS 2005) the test-widget program
from gtksourceview-2.2.1 against both the 2.2.1 and 2.2.2 packages
from ftp.gnome.org. It works fine, no problems...

Contrary to what I believed, apparently import libraries produced by
the mingw toolchain (.dll.a files) are *not* usable directly as import
libraries for MSVS just by copying them under a .lib name instead. At
least not with MSVS8. So I had to create an import library for
libgtksourceview-2.0-0.dll using pexports and lib instead, which is
trivial.

FYI, the command line I ended up using was:

cl -MD -Zi -Fetest-widget.cl.exe
-DTOP_SRCDIR=\"/devel/src/gnome/gtksourceview/2.2.1\"
-DDATADIR=\"c:/devel/target/HEAD/share\"
-Ic:/devel/dist/win32/pango-1.20.5/include/pango-1.0
-Ic:/devel/dist/win32/libxml2-2.6.27/include
-Ic:/devel/dist/win32/libpng-1.2.29/include/libpng12
-Ic:/devel/dist/win32/gtksourceview-2.2.2/include/gtksourceview-2.0
-Ic:/devel/dist/win32/gtk+-2.14.1-1/include/gtk-2.0
-Ic:/devel/dist/win32/gtk+-2.14.1-1/lib/gtk-2.0/include
-Ic:/devel/dist/win32/glib-2.18.0-2/include/glib-2.0
-Ic:/devel/dist/win32/glib-2.18.0-2/lib/glib-2.0/include
-Ic:/devel/dist/win32/cairo-1.6.4-2/include/cairo
-Ic:/devel/dist/win32/atk-1.22.0/include/atk-1.0 -I
/opt/win_iconv/include test-widget.c -link
/libpath:c:/devel/dist/win32/pango-1.20.5/lib
/libpath:c:/devel/dist/win32/libxml2-2.6.27/lib
/libpath:c:/devel/dist/win32/gtksourceview-2.2.2/lib
/libpath:c:/devel/dist/win32/gtk+-2.14.1-1/lib
/libpath:c:/devel/dist/win32/glib-2.18.0-2/lib
/libpath:c:/devel/dist/win32/cairo-1.6.4-2/lib
/libpath:c:/devel/dist/win32/atk-1.22.0/lib gtksourceview-2.0.lib
gtk-win32-2.0.lib xml2.lib gdk-win32-2.0.lib gdk_pixbuf-2.0.lib
pangocairo-1.0.lib pango-1.0.lib cairo.lib gobject-2.0.lib
gthread-2.0.lib glib-2.0.lib

where the c:/devel/dist/win32/* folders are where I keep unzipped the
corresponding packages from ftp.gnome.org. I obviously didn't
laboriously type this by hand, but used pkg-config --msvc-syntax. I
edited out some libraries not actually needed.

--tml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]