尝试安装 cabal 包 sdl-mpeg 找不到包含文件 smpeg.h

发布于 2024-08-17 00:52:02 字数 915 浏览 12 评论 0原文

运行“cabal install sdl-mpeg”

$  ls -l /usr/include/smpeg/smpeg.h 
-rw-r--r-- 1 root root 7503 2008-11-05 18:07 /usr/include/smpeg/smpeg.h
$ cabal install sdl-mpeg
Resolving dependencies...
Configuring SDL-mpeg-0.0.1...
cabal: Missing dependency on a foreign library:
* Missing header file: smpeg.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
SDL-mpeg-0.0.1 failed during the configure step. The exception was:
exit: ExitFailure 1

我尝试使用 --extra-include-dirs=/usr/include/smpeg 并在 ~/.cabal/config 中设置相同的内容,但无济于事。我什至尝试链接 /usr/include 中的 smpeg.h。

我正在运行 Ubuntu 9.10 Karmic Koala

running "cabal install sdl-mpeg"

$  ls -l /usr/include/smpeg/smpeg.h 
-rw-r--r-- 1 root root 7503 2008-11-05 18:07 /usr/include/smpeg/smpeg.h
$ cabal install sdl-mpeg
Resolving dependencies...
Configuring SDL-mpeg-0.0.1...
cabal: Missing dependency on a foreign library:
* Missing header file: smpeg.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
SDL-mpeg-0.0.1 failed during the configure step. The exception was:
exit: ExitFailure 1

I tried using --extra-include-dirs=/usr/include/smpeg and setting the same in ~/.cabal/config, but to no avail. I even tried linking smpeg.h in /usr/include.

I'm running Ubuntu 9.10 Karmic Koala

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥有 2024-08-24 00:52:02

使用“cabal -v3”,我找到了一个解决方案:

sudo apt-get install libsmpeg-dev
cabal --extra-include-dirs=/usr/include/smpeg --extra-include-dirs=/usr/include/SDL install sdl-mpeg

Using "cabal -v3", I tracked down a solution:

sudo apt-get install libsmpeg-dev
cabal --extra-include-dirs=/usr/include/smpeg --extra-include-dirs=/usr/include/SDL install sdl-mpeg
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文