From owner-freebsd-eclipse@FreeBSD.ORG Fri Feb 16 14:49:23 2007 Return-Path: X-Original-To: freebsd-eclipse@freebsd.org Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F4AD16A401 for ; Fri, 16 Feb 2007 14:49:23 +0000 (UTC) (envelope-from davidn@datalinktech.com.au) Received: from mail-ihug.icp-qv1-irony1.iinet.net.au (ihug-mail.icp-qv1-irony1.iinet.net.au [203.59.1.195]) by mx1.freebsd.org (Postfix) with ESMTP id CFAC713C49D for ; Fri, 16 Feb 2007 14:49:22 +0000 (UTC) (envelope-from davidn@datalinktech.com.au) Received: from 203-206-162-119.perm.iinet.net.au (HELO mail.datalinktech.com.au) ([203.206.162.119]) by mail-ihug.icp-qv1-irony1.iinet.net.au with ESMTP; 16 Feb 2007 22:38:24 +0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAEpR1UXLzqJ3/2dsb2JhbAChfwEBAQ X-IronPort-AV: i="4.14,180,1170604800"; d="scan'208"; a="102999093:sNHT18586856" Received: from DLN-POWERBOOKG4.local (ppp65-178.lns1.mel4.internode.on.net [59.167.65.178]) (AUTH: PLAIN davidn@datalinktech.com.au, SSL: TLSv1/SSLv3, 256bits, AES256-SHA) by mail.datalinktech.com.au with esmtp; Sat, 17 Feb 2007 01:38:21 +1100 id 001AF4AC.45D5C1DE.00009CE2 Message-ID: <45D5C1DD.2000106@datalinktech.com.au> Date: Sat, 17 Feb 2007 01:38:21 +1100 From: David Nugent User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 To: sans References: <9003021.post@talk.nabble.com> In-Reply-To: <9003021.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-eclipse@freebsd.org Subject: Re: Error : Launch failed no binaries X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 14:49:23 -0000 sans wrote: > I tried to simple managed make c++ application. I have installed Eclipse and > CDT plug in using FreeBSD ports. > > When I try to build the application, a makefile error is coming 'Error > expanding embedded variable'. > On trying to run the application, it results in an error 'Launch failed: no > binaries' . > Eclipse defaults expect make(1) to be GNU make and this assumption is what is causing this to fail (you can probably see make(1)'s error text in the console window). The default make(1) in FreeBSD is not GNU make nor compatible for any non-trivial makefile. You need to adjust your make settings which can be found in Window.Preferences.C/C++.Make.New Make Projects via the workbench menu (assuming 3.2.1, but iirc it has been there for a while). If you use the defaults and wish to use GNU make just change the "Build command" to "gmake". Make sure that you have gmake (devel/make in ports) installed. gmake will usually be installed as a build dependency automatically if you build a port that needs it (ie most of them), otherwise install it directly from package or ports). Alternatively you can use the adjacent tab in the preferences pane to adjust the style of makefile eclipse uses to "posix make", and you make need to set include directories. Disclaimer: I never tried this as I prefer to maintain my own makefiles. The style setting only affect projects where Eclipse is managing the makefile, otherwise it just uses whatever make command you have specified to build. You can override all of these settings on a per project basis as well in project properties. Regards, David