makefile - 使用 mingw 命令卡住构建 ICU

标签 makefile windows-7-x64 icu mingw32

这就是我为静态链接所做的事情。

$ ./runConfigureICU MinGW --enable-debug --disable-release --prefix=/mingw/dist --enable-static --disable-shared

我想,结果还是不错的。

ICU for C/C++ 52.1 is ready to be built.
=== Important Notes: ===
Data Packaging: static
 This means: ICU data will be stored in a static library.
 To locate data: ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override.
Building ICU: Use a GNU make such as make to build ICU.
checking the version of "make"... 3.81 (we wanted at least 3.80)
ok
If the result of the above commands looks okay to you, go to the directory
source in the ICU distribution to build ICU. Please remember that ICU needs
GNU make to build properly...
bash-3.1$

然后我运行 make 命令:

 $ make && make install

经过一些工作后,它卡在:

make[0]: Making `all' in `data'

当我使用进程资源管理器检查进程时,它显示没有任何 CPU 事件,状态为:wait:UserRequest

有人经历过这个吗?欢迎任何帮助。

更新:按照建议添加 -d 选项后的结果。

make[0]: Making `all' in `data'
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i686-pc-msys
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `../icudefs.mk' (search path) (no ~ expansion)...
Reading makefile `../config/mh-mingw' (search path) (no ~ expansion)...
Reading makefile `../icudefs.local' (search path) (don't care) (no ~ expansion)...

使用:Window 7 x64、mingw 4.8.1-4、

最佳答案

我已经使用了 http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/Sources/mingw-w64-icu-52.1-1.src.tar.gz/download 中的补丁感谢 msys2 的开发者。修补源代码后,它可以正常编译...如果您有任何其他疑问,请告诉我。我使用了以下修补程序:

patch -p1 -i icu4c-4_9_1-mingw-w64-mkdir-compatibility.patch
patch -p1 -i icu-config.patch
patch -p1 -i icu-pkgconfig.patch

我已经完成了 PKGBUILD 并应用了该文件中提到的补丁

关于makefile - 使用 mingw 命令卡住构建 ICU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20858446/

相关文章:

linux - 如何根据命令输出为 make 中的 -L 和 -l 设置正确的值

makefile 目标依赖项取决于目标名称

makefile - Makefile 中 sed 的单引号字符串

dll - 在 64 位机器上检查 32 位程序时,我可以获得正确的任务列表/m 的 DLL 模块列表吗?

c# - Azure 应用服务似乎在 .NET 5 模式下启用了 NLS

c++ - 如何从我的 Makefile 链接 Allegro 5?

mongodb-连接到测试挂起和 mongo shell 未启动

c - malloc 失败?

c++ - 在 Windows VC++ 2010 静态链接下构建 boost + ICU

android - 为 Android 编译 ICU : error: 'ICU_Utility' has not been declared