Feeds:
Posts
Comments

Posts Tagged ‘autoconf’

Introduction

This write up describel how you can create a simple project by using Autotool set along with autoconf/automake/libtool/texinfo/emacs

Getting started:

a. Download sources from SF.net (http://sourceforge.net/projects/autotoolset/)

b. Install the shar utils :

CMD: sudo apt-get install sharutils

c. fewer occasion it also asks for emac.. Install the same

CMD: sudo apt-get install emacs

creating a solution

1. Open a terminal and issue the command acmkdir with the project name

CMD: acmkdir testSample

2. you will prompted to give few details like the solution name, you email id, date other.. Fill in the formalities.

3. volia!! you have the struction for the project ready.

Configure /customising the packages and otheres deatils

Checking packages

1. customize the configure to check for the package dependance and other global flag. refer sample configure.ac in the sample solution

Adding sources

2. go to src/Makefile.am and add all the details like the include, libs bin program others. (refer sample src/Makefile.am in sample solution)

To compile & Build

go to th root of the project dir and issue

cmd: ./configure followed by make & make install

If you make any change in the makefile.am remember to run the ./reconf this will re-check the depenadance and create the make file afresh.

Building sample solution

Download the sample project from (https://sreenivasprabhu.wordpress.com/wp-content/uploads/2009/12/testsample.docx)
rename the file to testSample.tar.gz
untar the project  testSolution.tar.gz issue following command
tar xvf testSample.tar.gz
a. cd test-sample
b. ./reconf
c. ./configure
d. make and finally make install
To run project ./src/testSample
Happy project creation

Read Full Post »