Generate makefile files with makefile.am and makefile.in

Source: Internet
Author: User

1. Run command AutoScan to generate Configure.scan and configure.log files, if you need to install autuconf packages, http://download.chinaunix.net/download/ 0001000/648.shtml

Unzip after download

Run the command./configure at this point, if you do not have the M4 software package installed, you will be prompted to check how to install the M4 software package (http://blog.csdn.net/ldl22847/article/details/ 8575140) This blog is very clear about how to install and run after the installation is complete./configure No error message

Run command make

Run make Install

You can run the AutoScan command after the previous step without error, and a. Scan and. log file is generated. You need to use the command MV to change the Configure.scan to Configure.in or configure.ac.

Use Vim to view and modify the contents of the Configure.ac, otherwise the. m4 file is not generated when the polygon is running aclocal.

Modify the content is, add Am_init_automake in the configure.in this sentence to be able. As shown

Run the aclocal command again and then view the. m4 file generation that you see.

Run the command autofonf. Generate Configure File

2. Writing makefile.am files

3. Automake

Depending on the prompts, you may need to run Automake--add-missing to install some of the necessary software, and then run Automake generate makefile.in files

4. Execution configure this may be prompted Config.status:error:cannot find input file: ' config.h.in ' ERROR, the workaround is to run the command Autoheader generates Config.h.in, and then executes configure. You can see that the makefile file is generated.

Links: http://my.oschina.net/qihh/blog/66113

Http://bbs.chinaunix.net/thread-793596-1-1.html

The above one is a very specific introduction to the relationship between makefile.am makefile.in makefile and how to generate makefile files in step-by-step

The following link is a processing condition when an error occurs when generating a. m4 file.

Generate makefile files with makefile.am and makefile.in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.