首页 > 解决方案 > Windows上的libtool需要绝对路径,当我已经给它一个绝对路径时

问题描述

我正在尝试在 Windows 上编译 libjpeg,它使用 libtool 作为其进程的一部分。

每当我尝试进行安装时,libtool 都会抱怨绝对路径,鄙视我给它一个绝对路径的事实

$ ../configure --enable-shared --enable-static --prefix D:/hernan/programacion/libjpeg/install
$ make install
(bunch of unrelated descriptions)
./libtool --mode=install /bin/install -c libjpeg.la D:/hernan/programacion/libjpeg/install/lib/libjpeg.la
libtool: install: `D:/hernan/programacion/libjpeg/install/lib' must be an absolute directory name
Try `libtool --help --mode=install' for more information.

我正在使用 mingw shell,因为 ./configure 永远不会在 cmd 上工作

标签: c++windowslibtool

解决方案


好的,所以这个解决方案是相当愚蠢的。

虽然链接和编译模式可以正确解释我的路径,但依赖于 libtool 的安装模式却不能。您必须更改前缀的驱动程序部分,删除 : 并将其包裹在 / 所以在我的情况下,它最终是

$ ../configure --enable-static --enable-shared --prefix /d/hernan/programacion/libjpeg/install

推荐阅读