Bug 428525 - broken autotools in fedora eclipse cdt
Summary: broken autotools in fedora eclipse cdt
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: eclipse-cdt
Version: 8
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeff Johnston
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-01-12 20:55 UTC by Maciej Sawicki
Modified: 2008-01-14 16:56 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-01-14 16:56:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Maciej Sawicki 2008-01-12 20:55:15 UTC
when trying to compile simple "hello world" c++ program using "File/New GNU C++ Autotools
Project"

i
getting fallowing error: "
**** Clean-only build of configuration Build (GNU)
for project
okno_zadania
****

make
-k clean 
make: *** No rule to make target `clean'.
Buildfile
generation
error
occurred..
Not
possible to generate Makefile and no existing Makefile
found
Build
stopped.."

my
project
contains one source folder ("zadania") and one cpp
unit (zad1.cpp)
that loks like
this:
"

#include <iostream>

int main (){
	std::cout<<"foo";
	return
0;
}

"

Comment 1 Jeff Johnston 2008-01-14 16:56:27 UTC
The error is correct.  You have created the wrong type of project.   You should
have created a simple Managed Make project (no autotools).  You do not have the
files in place for an Autotools project.  An Autotools project is meant to be
used for an existing project that has Autotools files in place (e.g. if you had
checked out the gdb project).  The error is occurring because you do not have a
Makefile in place nor do you have a way of generating a Makefile using
Autotools.  A regular Managed Make project would have created one for you
automatically which is what I believe you meant to do.

For an Autotools project, you are required to provide a configure.in or
configure.ac file that can be input to the autoconf command.  This creates the
configure file used to configure your project.  You also require a Makefile.in
which should be generated from a Makefile.am file using the automake command. 
There are other files, but if you specify --add-missing, they are created for you.


Note You need to log in before you can comment on or make changes to this bug.