C++17 使用gcc 7从源代码构建Gktmm 3.91

C++17 使用gcc 7从源代码构建Gktmm 3.91,c++17,autoconf,gtkmm3,gcc7,C++17,Autoconf,Gtkmm3,Gcc7,操作系统:Ubuntu 16.04 LTS 编译器:Gcc7.2 我想为我的一个项目添加Gtkmm3.9作为第三方依赖项,并尝试从源代码进行编译。我不熟悉autoconf或automake工具集 通过阅读文档,我发现您可以使用autogen.sh生成配置文件。但是项目无法配置,因此也无法生成任何make文件 Gtkmm/gtkmm-3.91.2$ sh autogen.sh autogen.sh: 5: autogen.sh: mm-common-prepare: not found auto

操作系统:Ubuntu 16.04 LTS
编译器:Gcc7.2

我想为我的一个项目添加Gtkmm3.9作为第三方依赖项,并尝试从源代码进行编译。我不熟悉autoconf或automake工具集

通过阅读文档,我发现您可以使用autogen.sh生成配置文件。但是项目无法配置,因此也无法生成任何make文件

Gtkmm/gtkmm-3.91.2$ sh autogen.sh 
autogen.sh: 5: autogen.sh: mm-common-prepare: not found
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=all -I build 
${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build'.
libtoolize: copying file 'build/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build'.
libtoolize: copying file 'build/libtool.m4'
libtoolize: copying file 'build/ltoptions.m4'
libtoolize: copying file 'build/ltsugar.m4'
libtoolize: copying file 'build/ltversion.m4'
libtoolize: copying file 'build/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force --warnings=all
autoreconf: running: /usr/bin/autoheader --force --warnings=all
autoreconf: running: automake --add-missing --copy --force-missing --
warnings=all
configure.ac:51: installing 'build/compile'
configure.ac:51: installing 'build/config.guess'
configure.ac:51: installing 'build/config.sub'
configure.ac:28: installing 'build/install-sh'
configure.ac:28: installing 'build/missing'
Makefile.am:26: error: ENABLE_DOCUMENTATION does not appear in 
AM_CONDITIONAL
automake: error: cannot open < build/dist-changelog.am: No such file  or directory
autoreconf: automake failed with exit status: 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
./configure: line 3211: syntax error near unexpected token `0.9.10'
./configure: line 3211: `MM_PREREQ(0.9.10)'
Gtkmm/Gtkmm-3.91.2$sh autogen.sh
autogen.sh:5:autogen.sh:mm公共准备:未找到
自动恢复:正在输入目录“”
autoreconf:configure.ac:不使用Gettext
autoreconf:running:aclocal--force--warnings=all-I生成
${ACLOCAL_FLAGS}
autoreconf:configure.ac:跟踪
autoreconf:running:libtoolize--copy--force
libtoolize:将辅助文件放入AC_CONFIG_AUX_DIR“build”中。
libtoolize:正在复制文件“build/ltmain.sh”
libtoolize:将宏放入AC_CONFIG_MACRO_DIRS“build”中。
libtoolize:正在复制文件“build/libtool.m4”
libtoolize:正在复制文件“build/ltoptions.m4”
libtoolize:正在复制文件“build/ltsugar.m4”
libtoolize:正在复制文件“build/ltversion.m4”
libtoolize:正在复制文件“build/lt~ocated.m4”
自动恢复:正在运行:/usr/bin/autoconf--force--warnings=all
自动恢复:正在运行:/usr/bin/autoheader--force--warnings=all
自动恢复:运行:自动生成--添加缺失--复制--强制缺失--
警告=全部
configure.ac:51:安装“生成/编译”
configure.ac:51:安装'build/config.guess'
configure.ac:51:安装'build/config.sub'
configure.ac:28:安装“build/install sh”
configure.ac:28:安装“生成/缺少”
Makefile.am:26:错误:中未显示启用文档
有条件的
自动生成:错误:无法打开
<>我想使用C++ 17,它似乎是在GTKMM 3.81之后支持现代C++作为对已有GTK3的并行构建。我找不到任何适用于Gtkmm3.81的ubuntu预构建包

  • Gtkmm3.9存储库是否包含其存储库中的所有依赖项
  • 可以与C++17一起使用(我使用gcc7.2编译器) 我不能用旧的Gtkmm3和C++17编译任何程序,因为头中有一些删除的函数
我打算用C++17使用这个库。对自己建造图书馆更感兴趣。任何建造说明都会很有帮助

谢谢你,约翰尼