LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2008, 02:18 PM   #1
ih8censorship
LQ Newbie
 
Registered: Jun 2008
Posts: 3

Rep: Reputation: 0
I need some help using autotools- autoconf etc.


I've been trying to set up my project to use autotools and i can't seem to figure it out. I have my original makefile here which works to compile and link on my machine, and i have my attempt at using autotools I think the problem is all the examples i'm seeing are for simple projects, but i did succeed this morning in checking for various boost library and C++ features. I'm still having trouble creating a configure file that actually generates a makefile that comes even close to working. Anyone have an idea what i'm doing wrong here?
 
Old 06-22-2008, 02:41 AM   #2
iwasapenguin
Member
 
Registered: Jul 2007
Posts: 110

Rep: Reputation: 15
...Do you really need autotools?
type info make at the command line and dabble in a little lite shell scripting and you should have something very effective.
 
Old 06-25-2008, 01:50 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
From LX'er about autotools :
1) http://www.freesoftwaremagazine.com/..._gnu_autotools
2) http://www.freesoftwaremagazine.com/...with_autotools
3) http://www.freesoftwaremagazine.com/..._with_autoconf
And I made a test on your files 6 days ago, from my notes :
Quote:
In fact your setup is "almost" working. From the files I can see
I will start with 'aclocal' then 'automake'

'automake' will ask for some missing files and a directory "config".
'mkdir config' + some empty textfiles will do.
(config/depcomp install-sh missing) and
(src/config.h.in)
Might be different with your autotools version.

Then run 'automake' again and it will generate 'autogen.sh' as
required in 'Makefile.in'.
Then run './autogen.sh' to produce 'configure' : 3845 lines (my result)

Then it should be possible to get './configure' to write a Makefile.
It doesn't, there are some errors :
configure: line 2443: AC_CXX_EXCEPTIONS: command not found
configure: line 2444: AC_CXX_BOOL: command not found
configure: line 2445: AC_CXX_HAVE_STL: command not found
configure: line 2446: AC_CXX_HAVE_STD: command not found

By your method (autoconf) you just have another "set" of errors.
May be not very useful, just another "identifier" to find where it went wrong.

Rgds

Last edited by knudfl; 06-25-2008 at 02:10 PM.
 
  


Reply



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
*** YOU'RE USING autoconf (GNU Autoconf) 2.60. KDE requires autoconf 2.52, 2.53 or 2. arubin Slackware 6 09-24-2008 03:31 AM
LXer: The good and the bad with Autotools, Autoconf, Automake and Libtool for open so LXer Syndicated Linux News 0 05-09-2008 09:12 PM
autotools sergio21 Programming 2 02-10-2007 09:15 AM
autotools sergio21 Programming 1 01-16-2007 01:53 AM
Gnu Autotools jinksys Programming 0 10-08-2003 12:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration