我在Mac 電腦上編譯比特幣源碼,開發(fā)環(huán)境配置已經(jīng)完成,執(zhí)行autogen.sh報錯localhost:bitcoin zsc$ ./autogen.shconfigure.ac:28: installing 'build-aux/install-sh'configure.ac:28: installing 'build-aux/missing'Makefile.am:8: error: Libtool library used but 'LIBTOOL' is undefinedMakefile.am:8: ? The usual way to define 'LIBTOOL' is to add 'LT_INIT'Makefile.am:8: ? to 'configure.ac' and run 'aclocal' and 'autoconf' again.Makefile.am:8: ? If 'LT_INIT' is in 'configure.ac', make sureMakefile.am:8: ? its definition is in aclocal's search path.Makefile.am: installing 'build-aux/depcomp'/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: error: am__fastdepCXX does not appear in AM_CONDITIONAL/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? The usual way to define 'am__fastdepCXX' is to add 'AC_PROG_CXX'/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? to 'configure.ac' and run 'aclocal' and 'autoconf' again/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? The usual way to define 'AMDEP' is to add one of the compiler tests/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? ? AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? ? AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC/usr/local/Cellar/automake/1.16.1_1/share/automake-1.16/am/depend2.am: ? to 'configure.ac' and run 'aclocal' and 'autoconf' againMakefile.am: error: C++ source seen but 'CXX' is undefinedMakefile.am: ? The usual way to define 'CXX' is to add 'AC_PROG_CXX'Makefile.am: ? to 'configure.ac' and run 'autoconf' again.parallel-tests: installing 'build-aux/test-driver'autoreconf: automake failed with exit status: 1根據(jù)這些信息,解決辦法是要在configure.ac文件中加入AC_PROG_CXX應(yīng)該怎么加
如何在bitcoin源碼的configure.ac文件中加入AC_PROG_CXX?
笑傲江湖3955759
2018-10-22 15:37:44