glib-2.49.4 static build step in windows XP

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 " export CPPFLAGS=" -I/usr/local/include " export LDFLAGS=" -L/usr/local/lib " export LIBS=‘ -lpsapi -lws2_32 -lmswsock -lpthread ‘

./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 -->   __attribute__((visibility ("default")))
define PNG_IMPEXP __declspec(dllimport)  fix to -->   define PNG_IMPEXP
__attribute__((visibility ("hidden")))   fix to -->   __attribute__((visibility ("default")))
delete all DllMain function

config.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_genmarshal
glib-compile-resources
-------------------------------------------
tests\gobject\Makefile
-------------------------------------------
# glib_genmarshal = $(top_builddir)/gobject/glib-genmarshal
glib_genmarshal = echo

gio\tests\Makefile
-------------------------------------------
#glib_compile_resources = $(top_builddir)/gio/glib-compile-resources
glib_compile_resources = echo

fix source

gio/gtype.h   add
-------------------------------------------
void gobj_init(void);

gio/gtype.c  add
-------------------------------------------
void gobj_init(void)
{
	gobject_init ();
}

-------------------------------------------
fix tools source
-------------------------------------------
gio/glib-compile-resources.c
gio/glib-compile-schemas.c
gio/gio-querymodules.c
gio/gsettings-tool.c
gio/gresource-tool.c
gio/gdbus-tool.c
gio/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,
	  //			NORMAL_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
时间: 2024-11-05 11:38:10

glib-2.49.4 static build step in windows XP的相关文章

gtk+-3.21.4 static build step in windows XP

In recent days the weather is very hot Unable to sleep properly Under the state of daze research gtk3 static compiler. ------------------------------------------------------------------------------------------------------- build static libs ---------

Build step &#39;Execute Windows batch command&#39; marked build as failure

坑爹的Jenkis,在执行windows命令编译.NET项目的时候命令执行成功了,但是却还是报了这样一个错: Build step 'Execute Windows batch command' marked build as failure 综合了几个stackoverflow上的答案,原因如下: jenkins执行windows命令,若退出代码不为0 ,则jenkins会将构建标记为失败 我解决的方法:在bat脚本最后一行加上 exit 0 Build step 'Execute Windo

Pipeline build step with parameters

build step https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job 一个任务的执行触发,另外一个任务的执行,以代码的形式. build: Build a job Triggers a new build for a given job. job Name of a downstream job to build. May be another Pipeline job, but more

Jenkins Docker安装及Docker build step插件部署配置

Docker-build-step插件安装部署1.打开系统管理,插件管理,找到Docker build step插件,勾选选中,点击直接安装,安装完成后重启一下Jenkins容器:2.使用终端登录到B服务器,修改/usr/lib/systemd/system/docker.service 为: 将其中第11行的 ExecStart=/usr/bin/dockerd 替换为:ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///va

Build step ‘Execute shell‘ marked build as failure

shell 脚本远程调用执行如下:/usr/bin/ssh 10.1.2.3 '/bin/bash /root/ReServer.sh'报错如下:Build step 'Execute shell' marked build as failure 本地执行是ok,怎么执行都报错,后来折腾了老半天,一步一步的打输出,发现:原来是脚本在判断进程是否存在的同时,这个结束进程刚好有同样的匹配串!ps -aux | grep "idiot" | grep -v grep | grep -v '$

Build OpenJDK8 on Windows

简单的步骤 1. MinGW + msys: 我已经整理好直接解压即可 http://pan.baidu.com/s/1bncptlt 2. OpenJDK8 source code:  http://pan.baidu.com/s/1eQtKkeQ 其中包括了freetype 和 一个环境bat 如果想更新到最新的JDK8 source, 安装 HG, 解压后运行  jdk8/src/get_source.sh. 此压缩包并未破坏HG文件 3. 安装 vs2010 和 sp1, 没有sp1补丁

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2]

Setting up a EDK II build environment on Windows and Linux:搭建Windows和Linux开发环境[2.2] 2015-07   北京海淀区  张俊浩 2. Setting Up EDKII Development Environment(EDKII开发环境的搭建) ->2.1The General Procedure Of Setting Up EDKII Development Environment(搭建EDKII项目的通用流程)

SecureCRT/FX 8.0.0 (build 1063) for Windows 破解版

SecureCRT 是一款 Windows 上专业的终端 SSH 工具,类似于 Windows 中的 Putty,SecureCRT 支持 SSH1.SSH2.Telnet 等远程连接,同时具有很多实用和专业的辅助功能,支持广泛的终端仿真.文件传输.脚本等,非常的优秀! SecureCRT/FX 8.0.0 (build 1063) for Windows 应用介绍: SecureCRT 是一款支持 SSH(SSH1 和 SSH2)的终端仿真程序,同时支持 Telnet 和 rlogin 协议.

FFmpeg static build - MinGW32-GCC-5.3.0_x86-x64_D_Drive_for_FFmpeg_static_2016.03.31

算是最终版本,暂不更新 下载地址 MinGW32-GCC-5.3.0_x86-x64_D_Drive_for_FFmpeg_static_2016.03.31.7z 下载地址 ffmpeg-20160331-snapshot-bin.7z autoopts.pc AutoOpts 33.2.8 caca++.pc caca++ 0.99.beta18 caca.pc caca 0.99.beta18 celt.pc celt 0.11.3 dcadec.pc dcadec 0.2.0 fdk-a