LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-17-2005, 09:56 AM   #1
QiangWan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
How to modify makefile.in or makefile.am


Hi, guys:
I need to modify some code of the GNU project, and add some new c++ programs(.h, .cc), but now I am confused of how to use 'make' to recompile the modified project again. There are some similar makefile.am files, I copied one and replaced some specific words with the names of newly added files, but it does not work.

The files 'Makefile.in' in my project are generated by automake 1.8.3, but the aotomake in redhat9.0 is 1.6.3. When I automake the project, it says:

configure.in:26: 'automake requires ' AM_CONFIG_HEADER', not 'AC_CONFIG_HEADER'
aclocal.m4:6026: version mismatch. This is automake 1.6.3, but aclocal.m4 was generated for Automake 1.8.3.
configure.in: required file './mkinstalldirs' not found
configure.in:15: require version 1.7, but have 1.6.3

I searched automake-1.8.3 in rpm.phone.net, but I did not find that version in redhat 9.0.
I am definitely be spoiled by MS visual studio products, is there a way to quickly learn how to compile c++ projects in linux.

Thanks!
 
Old 05-17-2005, 11:07 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

Rep: Reputation: 87
Did you do

aclocal
autoconf
automake
./configure
...etc

?

I think the error you are getting might be because you did not do aclocal before autoconf...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile deveshs Programming 5 05-03-2005 01:15 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
new system call, modify Makefile for .o feetyouwell Programming 0 11-16-2004 09:58 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM
Makefile mikeshn *BSD 2 07-17-2002 09:16 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration