CDT can't build makefile generated by aoutotools [message #227775] |
Mon, 08 December 2008 15:50 |
Johannes Eickhold Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hi,
until recently I was able to build an autotools project from within CDT
(using Eclipse 3.2). Then I changed to Eclipse 3.4.1 and the new CDT 5.0.1
which made executing my make target "all" impossible.
I configure my project with a manual "configure" call (via external tools).
Make target "clean" e.g. still works but "all" leads to a dialog popping
up: "'Build Targets.' has encountered a problem. Errors during build."
with the details: "Errors during build. Errors running builder 'CDT
Builder' on project 'myProject'.".
On the command line a simple "make all" works flawlessly.
CDT's build console shows only:
"
**** Build of configuration Linux GCC for project test ****
make all
make all-am
make[1]: Entering directory `/home/jeick/workspace-3.4/myProject/bin-x86'
/libtool: line 744: echo: write error: Broken pipe
make[1]: write error
make: *** [all] Error 1
"
With Eclipse 3.2 I got exactly the same output in CDT's console as I get
on the command line.
My guess is that something has changed inside CDT which executes the make
but I don't know how to adapt properly.
By fiddling around in the "makefile" generated by autotools I made the
build work again under CDT (of course this is not a solution because the
makefile is regenerated regularly!).
When I change lines containing compiler invocations like
" ... `test -f '$(top_srcdir)/src/some/dir/Logging.cc' || echo
'$(srcdir)/'` $(top_srcdir)/..."
to
" ... `test -f '$(top_srcdir)/src/some/dir/Logging.cc' || echo
'$(srcdir)/'` $(top_srcdir)/..."
it "fixed" the build (only added a space between the closing backtick and
the dollar sign).
Thanks for any hints,
Johannes.
|
|
|
Powered by
FUDForum. Page generated in 0.01359 seconds