glib-2.49.4 static build step in Windows XP

Source: Internet
Author: User

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, &AMP;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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.