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 05-06-2010, 08:38 AM   #1
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Rep: Reputation: 16
autoconf and automake, debug and release


I am a newbie in autoconf and automake.
After doing make I have the following questions?
How can I see that the build is with debug information?
What shall I do to build the release version?
Can I have the release version in one directory and the debug version in another? I mean, when I change from debug to release, make will not overwrite the debug version.
 
Old 05-07-2010, 06:40 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a question?
why are you running the auto tools one at a time manually ?
instead of
./configure
make
make install
-- or --
autoreconf -i -v
./configure,...

and what is it you are building ?
 
Old 05-08-2010, 02:23 AM   #3
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
a question?
why are you running the auto tools one at a time manually ?
instead of
./configure
make
make install
-- or --
autoreconf -i -v
./configure,...

and what is it you are building ?
I am developing and building my own project from the command line and naturally I wan't to build a debug version as well as a release version

I am doing as you write
./configure
make

I am not doing "make install" because that will place the compiled program in some unknown directory.
I will not do make install before the program has passed some tests. By the way you don't have to do ./configure every time you have modified a code like *.cpp or *.h

Last edited by dbj; 05-08-2010 at 02:31 AM.
 
Old 05-08-2010, 03:24 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what
Quote:
I am not doing "make install" because that will place the compiled program in some unknown directory.
the default from auto tools should be /usr/local or /usr
depending on how you are setting it up for configure you can pass -debug to gcc ,or in the configure.in

and do you have ALL the needed programs installed to build a debug version on what ever distro is is
you have not said .
Quote:
building my own project from the command line
personally i like to use eclipse or Anjuta IDE's for that
or even Emacs it is better than bash

Last edited by John VV; 05-08-2010 at 03:27 AM.
 
Old 05-08-2010, 04:24 AM   #5
dbj
LQ Newbie
 
Registered: Sep 2009
Posts: 23

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by John VV View Post
personally i like to use eclipse or Anjuta IDE's for that
or even Emacs it is better than bash
To use an IDE to develop software is like cheating.

Never mind I am also using an IDE (Visual Studio) then I move the software to a linux debian server where I rebuild the aplication. I think I get a release version but I am not sure.
 
Old 05-08-2010, 07:19 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by dbj View Post
To use an IDE to develop software is like cheating.
^ +1
 
Old 05-08-2010, 12:16 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
To use an IDE to develop software is like cheating.
???
well i do like gedit ( scite on windows) to wright html/php
and have never liked wysiwyg
but for developing c++ ???
 
Old 05-08-2010, 02:39 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Using and IDE keeps you from learning and blocks possibilities by hiding the tools from you.
 
  


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
autoconf and automake usage problems Synesthesia *BSD 1 05-01-2006 08:19 AM
M4, Automake, Autoconf, Binaries? lectraplayer SUSE / openSUSE 2 02-06-2006 02:30 AM
A problem about autoconf and automake icoming Programming 1 06-02-2005 02:52 AM
automake and autoconf troubles... liljim Linux - Software 5 07-28-2004 09:18 PM
Autoconf and Automake are broken... Nigh Unstoppabl Mandriva 0 07-18-2004 10:49 PM

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

All times are GMT -5. The time now is 02:24 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