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

标签 haskell sdl mpeg

运行“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

最佳答案

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

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

关于haskell - 尝试安装 cabal 包 sdl-mpeg 找不到包含文件 smpeg.h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1987210/

相关文章:

haskell - 在haskell中分割列表

haskell - 使用 Cereal 通过句柄发送数据

c++ - 在 C++ 中修改位图时流式传输位图

java - 用 Java 创建 MPEG-4 示例

mpeg - PCR最大值

javascript - 在 google 电子表格中存储/检索数据

haskell - 如何将列表中的元素与所有其他元素相乘?

haskell - 读取文件后 Haskell 文件会自动关闭吗?

c++ - 如何将 OpenCV IplImage 转换为 SDL_Surface?

c - SDL:在多线程程序中这样做安全吗?