gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 00:30:39 27 4
gpt4 key购买 nike

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

$ ./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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com