【问题标题】:config.status: error: cannot find input file: `po/Makefile.in.in'config.status:错误:找不到输入文件:`po/Makefile.in.in'
【发布时间】:2020-11-21 20:52:46
【问题描述】:

我在尝试使用 GNU Autotools 构建 gnote 时遇到此错误消息。

我第一次跑步:

$ git clean -xf    # to clean the tree of untracked files, then
$ autoreconf       # to create the script named `configure`, and finally 
$ ./configure      # to check my system, and create Makefiles from their templates

我下载的源代码树中既不存在po/Makefile.in.in 也不存在po/Makefile.in

然而configure 需要创建这个po/Makefile,正如在这一行的根Makefile.am 中所要求的那样:

SUBDIRS = data src po help

我在哪里获得,或者我如何制作,po/Makefile.in.in

【问题讨论】:

    标签: configure autotools automake po


    【解决方案1】:

    像所有与 Gnome 相关的软件包一样,gnote 使用许多构建系统设置步骤,而不仅仅是运行 autoreconf

    附带的autogen.sh 脚本gnote 应该运行所有必需的步骤来设置构建系统。

    像往常一样,如果您想单独调用configure,请使用--help 参数运行autogen.sh 脚本。

    【讨论】:

      【解决方案2】:

      po/Makefile.in.in 是通过运行 intltool 包中的 intltoolize 创建的。它需要从项目树的根目录运行。


      除了简短的手册页外,我找不到太多关于 intltoolize 的文档,但它的源代码表明它是一个名为 libtoolize 的旧实用程序的分支,而且它是一个相对较短的脚本。

      (顺便说一句,如果你还没有安装intltoolize,你可以通过这个:sudo apt-file find intltoolize 找出安装它的包。)


      *.in 文件是 AutoMake 用来创建 Makefile 的模板。

      .in.in 是指向/usr/share/intltool/Makefile.in.in 的软链接。

      【讨论】:

        猜你喜欢
        • 2012-05-09
        • 1970-01-01
        • 2021-06-30
        • 1970-01-01
        • 1970-01-01
        • 2013-09-29
        • 2022-10-06
        • 2013-09-16
        • 1970-01-01
        相关资源
        最近更新 更多