c++ - 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 上工作
解决方案
好的,所以这个解决方案是相当愚蠢的。
虽然链接和编译模式可以正确解释我的路径,但依赖于 libtool 的安装模式却不能。您必须更改前缀的驱动程序部分,删除 : 并将其包裹在 / 所以在我的情况下,它最终是
$ ../configure --enable-static --enable-shared --prefix /d/hernan/programacion/libjpeg/install
推荐阅读
- c++ - 如何处理动态变量?
- python - 使用 Selenium 和 Beautiful Soup Python 包从 javascript 页面中抓取数据
- python - 有没有办法通过python编译乳胶代码?
- c++ - c++ 中比较函数的 Lambda 不起作用
- rust - 如何在 tokio 中广播流
- c# - 在 Unity C# 中序列化 ObservableCollection 类 ObservableList
- javascript - 将可编辑单元格的呈现委托给新的 EditableCell 组件
- python-3.x - 有没有办法判断 pyautogui 是否检测到颜色/点击?
- google-chrome - Chrome 画布:忽略了小的 globalAlpha
- r - 在 R 中循环为不同长度的变量的每个组合生成图形