Go to the Xx.cpp directory and run the shell directive:
dpkg--configure-a
apt-get install autoconf
autoscan
cp configure.scan configure.ac
vim configure.ac
In Configure.ac, you need to add Am_init_automake macros, SEND_RTP is the last generated file name, other than the tube, xx.cpp have one on the line, for example:
Ac_prereq ([2.69])
Ac_init (SEND_RTP, 1.0, dongzy08@163.com)
am_init_automake (send_rtp,1.0)
Ac_config_ Srcdir ([H264Encoder.cpp])
ac_config_headers ([config.h])
# Checks for programs.
Ac_prog_cxx
AC_PROG_CC
In another place, the name of the specified output is makefile
Ac_output (Makefile)
Continue to execute shell directives:
Aclocal
autoconf
autoheader
vim makefile.am
For makefile.am, you need to edit it as follows:
Automake_options=foreign
BIN_PROGRAMS=SEND_RTP
send_rtp_sources=h264encoder.cpp inttypes.h rtpframe.h H264Encoder.h main.cpp h264frame.cxx h264frame.h
Where Bin_programs is the last generated file name, Send_rtp_sources is all the source file names.
Continue to execute shell directives:
Automake--add-missing
./configure make all
The SEND_RTP executable file can be generated at the end.