Re: Unable to GNU AutoBuild a simple HelloWorld console application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel B. Thurman wrote:
I am testing Eclipse on F8, and I have checkout HelloWorld
from my SVN repository and into my workspace, choosing
GNU AutoBuild but apparently it is unable to auto-build.

The error I have reported is:

**** Clean-only build of configuration Build (GNU) for project HelloWorld ****

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

So what is the problem

A GNU Autotools project expects an existing project to have a configure script or autogen.sh that is used to configure and ultimately generate the Makefile. If you do not have these files and don't plan on adding them, you should use either the regular Managed Make project which will create a Makefile for you, or the Std Make project which expects you to have a Makefile.

Regarding the clean behavior, the Autotools project default is to do a make distclean which is a standard target in a generated Makefile for an autotools project. If one goes to Project ->Properties->C/C++ Build->Settings->Autotools tab you will find settings for the clean behavior. You can change this to make clean or have the build directory simply deleted. The distclean target deletes all files created by the build and leaves others alone. This is useful when one wants to configure/build directly in the source directory.

The error message was given because it could not find a Makefile in your project and there were no configuration files to generate one from.

-- Jeff J.
------------------------------------------------------------------------

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux