问题描述
我从他们的网站安装了mingw.我安装了iconv和intl,msys以及所有其他内容附带的开发人员软件包.
I installed mingw from their website.I installed the developer package which comes with iconv and intl, msys and all the other stuff.
我先运行./configure
,然后运行make install
.链接时,它会打印:
I run ./configure
and then make install
. While linking, it prints:
../../src/liblzma/liblzma.la -lintl
libtool: link: cannot find the library `/home/keith/staged/mingw32/lib/libiconv.
la' or unhandled argument `/home/keith/staged/mingw32/lib/libiconv.la'
make[2]: *** [xzdec.exe] Error 1
我不知道基思到底是谁,也不知道为什么要在该库中查找..我尝试将CCFLAGS CXXFLAGS和LDFLAGS设置为我的include和库文件夹/usr/local/lib
I have no clue who keith is or why it looks there for the library.. I tried settings CCFLAGS CXXFLAGS and LDFLAGS to my include and library folder /usr/local/lib
没有雪茄..有什么想法为什么会发生以及如何解决?
No cigar.. any ideas why this is happening and how I can fix it?
推荐答案
这是MinGW gettext
软件包的已知问题.有问题的基思"基思·马歇尔(Keith Marshall)在 MinGW SourceForge网站上的错误报告.
This is a known problem with the MinGW gettext
package. Keith Marshall, the "keith" in question, explains a bit about what's going on in a bug report on the MinGW SourceForge site.
一个相当丑陋的解决方法是实际创建一个/home/keith/staged/mingw32
文件夹,然后将符号链接添加到/mingw
中的必要文件夹,即:
A rather ugly workaround is to actually create a /home/keith/staged/mingw32
folder, then add symlinks to the necessary folders in /mingw
, i.e.:
mkdir -p /home/keith/staged/mingw32
cd $_
ln -s /mingw/bin bin
ln -s /mingw/lib lib
(请注意,如果文件系统中不存在/mingw
,则可以通过将以下行添加到/etc/fstab
的底部来创建它:
(Note that if /mingw
doesn't exist in your filesystem, you can create it by adding this line to the bottom of /etc/fstab
:
C:/MinGW /mingw
当然,假设您在C:\MinGW
中安装了MingW.关闭终端窗口,然后重新运行msys.bat
以使更改生效.)
assuming, of course, you have MingW installed in C:\MinGW
. Close the terminal window and re-run msys.bat
for the change to take effect.)
然后,您需要下载libiconv.la
方便地准备文件的人,然后将其复制到/home/keith/staged/mingw32/lib/
.
这是一个可怕的骇客,但是对我有用.
It's a terrible hack, but it worked for me.
这篇关于为什么构建liblzma失败并显示“找不到库"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!