7

我正在将现有库(libtcod)直接转换为 Autotools(为了 OS X 的快乐)。不幸的是,当我将我Makefile.amlib_LIBRARIES规则切换到lib_LTLIBRARIES时,构建会从成功变为 un。摘自以下输出:

Making all in .
make[1]: Nothing to be done for `all-am'.
Making all in src
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -MT bresenham_c.lo -MD -MP -MF .deps/bresenham_c.Tpo -c -o bresenham_c.lo bresenham_c.c
mv -f .deps/bresenham_c.Tpo .deps/bresenham_c.Plo
mv: rename .deps/bresenham_c.Tpo to .deps/bresenham_c.Plo: No such file or directory
make[1]: *** [bresenham_c.lo] Error 1
make: *** [all-recursive] Error 1

src/Makefile.am看起来像这样:

lib_LTLIBRARIES = libtcod.la
libtcod_la_SOURCES = bresenham_c.c bresenham3_c.c bsp_c.c color_c.c ...

src/.deps包含:

$ ls src/.deps/
bresenham_c.Plo bresenham_c.Po ...

我在这里犯了一个明显的错误,还是应该这样做?

4

1 回答 1

12

是的,我犯了一个明显的错误。我需要运行autoreconf -i来创建一个非空ltmain.sh脚本;现有的使../libtool这里成为无操作。

于 2009-07-27T22:33:55.107 回答