编译只有configure.ac文件和Makefile.am文件的工程

528 阅读1分钟

libtoolize

aclocal

autoheader

autoconf

automake --add-missing

根据情况具体安装 

protobuf

autoconf, automake, libtool, make, g++, unzip

流程:

//根据configure.in和Makefile.am生成makefile的步骤
 
1.autoscan (可选)
2.aclocal
3.autoconf
4.autoheader(可选)
5.libtoolize --automake --copy --debug --force(可选)
6.automake --add-missing
7.autoreconf –f –i –Wall,no–obsolete(可选)
8../configure

这个流程亲测可用!可以写个脚本文件,以后直接用就行。注意缺什么安什么就行了。

  • ./configure --prefix=$PWD   ./configure --prefix=/usr/local/myLib
  • make
  • sudo make install