OpenIndianaでLXDEをコンパイルする方法 - lxde-common-qtでAMエラーを処理する方法は?

OpenIndianaでLXDEをコンパイルする方法 - lxde-common-qtでAMエラーを処理する方法は?

新しくインストールし、ss-dev、gcc-dev、sunstudio、そして私が読んだことに基づいて関連性があると思ういくつかのその他のパッケージをインストールしました。コンポーネントからインストールを表示するときは、ソースからLXDEをコンパイルしたい(http://lxde.org/download)まあ、新しいQTベースの機能はすべてそこにあるわけではなく、設定中にエラーが発生するため、はるかに簡単ではありません。だから私は使うhttp://lxde.git.sourceforge.net/git/gitweb-index.cgi代わりにlxde-common-qtから始めましょう。それを複製します。 autogen.shはautomakeが存在しないと文句を言います。エクスポートAUTOMAKE = "automake-1.10" automake + tabを試してみると、次のような結果が得られます(これが最善の方法ではないことを知っていますが、エクスポートを使用すると永久的な方法で問題は発生しません)。 Autogenがさらに開発されると、これはうまくいきます。ここから始めましょう:

+ [ x != x ]
+ aclocal ./autogen.sh[25]: aclocal: not found [No such file or directory]
+ automake-1.10 --add-missing --copy --include-deps configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal). configure.ac:8: installing `./install-sh' man/Makefile.am:5: ENABLE_REGENERATE_MAN does not appear in AM_CONDITIONAL
+ autoconf configure.ac:3: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation. configure.ac:40: error: possibly undefined macro: AM_CONDITIONAL
+ rm -rf autom4te.cache

それではconfigure.acを見てみましょう。

C_PREREQ([2.57])
AC_INIT(lxde-common-qt,[0.5.5], [],lxde-common-qt)
AM_INIT_AUTOMAKE()
dnl  AC_PROG_INTLTOOL(, [no-xml])
dnl AM_MAINTAINER_MODE

Checks for programs. AC_PROG_INSTALL AC_PROG_LN_S

AC_ARG_ENABLE(man,
       [AC_HELP_STRING([--enable-man],
               [regenerate roff man pages from Docbook @<:@default=no@:>@])],
       [enable_man="${enableval}"],
       [enable_man=no] )  xsessions data of path for GDM AC_ARG_WITH([xsession-path],
    AS_HELP_STRING(
        [--with-xsession-path=PATH],
        [set the install path of xsession data [[DATAROOTDIR/xsessions]]]),
        [test x$withval != x && xsesspath="$withval"],
        [xsesspath="\${datarootdir}/xsessions"]) AC_SUBST(xsesspath)


if test x"$enable_man" = x"yes"; then
    AC_PATH_PROG([XSLTPROC], [xsltproc])
    if test -z "$XSLTPROC"; then
        enable_man=no
    fi

    dnl check for DocBook DTD and stylesheets in the local catalog.
    JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
        [DocBook XML DTD V4.1.2], [], enable_man=no)
    JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release
/xsl/current/manpages/docbook.xsl],
        [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no) fi

AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test "x$enable_man" != "xno")

AC_OUTPUT([   Makefile   startlxde-qt   lxde-logout-qt   LXDE-Qt.desktop   lxde-logout-qt.desktop   lxpanel/panel   openbox/rc.xml   man/Makefile ])

if test x"$sysconfdir" != x'/etc'; then
    echo
    echo
    echo 'Error: sysconfdir is not /etc.'
    echo 'Please consider passing --sysconfdir=/etc to configure.';
    echo 'Otherwise default config files will be installed to wrong place.'
    echo
    echo fi

もちろん、AM_INIT_AUTOMAKEが空であることを見て、「[lxde-common-qt 0.5.5]」のさまざまなバリエーションを入れてみましたが、成功しませんでした...

いいえ、これに関する情報もなく、経験もあまりありません。通常、不足しているパッケージをインストールしようとし、エクスポートを使用して明らかなことを処理しようとしますが、自動生成エラーはまさにそれです。プロジェクトフォルダにaclocal.m4ファイルがありません。

AUTHORS
lxde-logout-qt.desktop.in 
autogen.shlxde-logout-qt.in
autostart
LXDE-Qt.desktop.in
ChangeLog
lxpanel config.h.in
Makefile.am configure
man configure.ac
NEWS
COPYING
openbox
desktop.conf
cmanfm-qt
imagesREADME
INSTALL
startlxde-qt.in
install-sh
wallpapers

次のようなものを使うべきですか?m4_pattern_allow([^m4_cv_]).acファイルのエントリを設定しますか?

ベストアンサー1

解決策は、configure.acファイルのAM_INIT_AUTOMAKE()行からこれら2つの角括弧を削除して、AM_INIT_AUTOMAKEのみを残すことです。その後、設定ファイルをインポートしてインストールできます。なぜこのようなことが起こるのかはまだ謎です!


さて、これを手動で変更する必要がある場合は、PATH変数が正しく設定されていないため、ツールが見つからないか、正しくリンクされていない可能性があります。以下は、configure.acファイルを編集せずにこれらのAMエラーを処理するように見える新しいPATHの例です。

PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/onbld/bin:/opt/onbld/bin/i386:/opt/sfw/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/usr/gnu/bin/:/usr/sbin/:/sbin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/opt/onbld/bin:/opt/onbld/bin/i386:/opt/sfw/bin:/usr/sfw/bin:/usr/dt/bin:/usr/openwin/bin:/usr/gnu/bin/"

おすすめ記事