Export libffi_cflags= "-i/usr/local/lib/libffi-3.2.1/include" Export libffi_libs= "-lffi" Export zlib_cflags=-i/usr/ Local/include Export Zlib_libs=-lz export cflags= "-i/usr/local/include-o2-wall-march=i686-mms-bitfields-mthreads" E Xport cppflags= "-i/usr/local/include" Export ldflags= "-l/usr/local/lib" Export libs= '-lpsapi-lws2_32-lmswsock-lpth Read './configure--prefix=/usr/local--enable-static--disable-shared--disable-debug--disable-gtk-doc--with-pcre= Internal--enable-silent-rules__declspec (dllexport) fix to--__attribute__ ((Visibility ("Default )) __stdcall _export fix to-and __attribute__ ((Visibility ("default")) define PNG_IMPEXP __de Clspec (dllimport) fix to---Define PNG_IMPEXP__ATTRIBUTE__ ((Visibility ("hidden"))) fix to-and __attribute__ ((Visibility ("default"))) Delete all DllMain functionconfig.h-------------------------------------------/* #define _ Glib_extern __attribute__ (Visibility ("Default ")) __declspec (dllexport) extern */#define _glib_extern __attribute__ ((Visibility (" default ")) ... glib/ GMESSAGES.C-------------------------------------------#include <sys/types.h>//#include <sys/socket.h >//#include <sys/un.h>-------------------------------------------glib_ Genmarshalglib-compile-resources-------------------------------------------tests\gobject\ Makefile-------------------------------------------# Glib_genmarshal = $ (top_builddir)/gobject/ Glib-genmarshalglib_genmarshal = Echogio\tests\makefile-------------------------------------------#glib_compile_ Resources = $ (top_builddir)/gio/glib-compile-resourcesglib_compile_resources = Echofix sourcegio/gtype.h Add-------------------------------------------void Gobj_init (void); gio/gtype.c Add-------------------------------------------void Gobj_init (void) {Gobject_init ();} -------------------------------------------fix Tools Source-------------------------------------------gio/ Glib-compile-resources.cgio/glib-compile-schemas.cgio/gio-querymodules.cgio/gsettings-tool.cgio/gresource-tool.cgio/gdbus-tool.cgio/ GIO-TOOL.C-------------------------------------------#include "glib-init.h" #include ". /gobject/gobject.h "Main () ... g_clock_win32_init (); G_thread_win32_init (); Glib_init (); Gobj_init ();..-------------------------------------------gio/ GDBUSADDRESS.C-------------------------------------------//res = CREATEPROCESSW (Rundll_path, args,//0, 0, FALSE,//n Ormal_priority_class | Create_no_window | Detached_process,//0, NULL/* todo:should be root */,//&si, &PI); Hthread=createthread (NULL, 0, (lpthread_start_routine) G_win32_run_session_bus, Null,0,&threadid); if (hthread) {g_print ("G_win32_run_session_bus thread run.\n"); Address = READ_SHM (dbus_daemon_address_info); } else {g_print ("G_win32_run_session_bus thread Create false.\n"); }-------------------------------------------gobject/glib-genmarshal.c <--Makefile add $ (top_builddir)/gobject/libgobject-2.0.la gobject/gobject-query.c-------------------------------------------#include "glib/ Glib-init.h "#include" gobject.h "main () ... g_clock_win32_init (); G_thread_win32_init (); Glib_init (); Gobj_init ();..--------------------------------------------------------------------------------------tests\ gobject\performance.c tests\gobject\performance-threaded.c-------------------------------------------#include " Glib.h "#include <glib-object.h>main () ... g_clock_win32_init (); G_thread_win32_init (); Glib_init (); Gobj_init (), ....-------------------------------------------make && make install
glib-2.49.4 static build step in Windows XP