Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help needed for Eclipse in FreeBSD 8.1

ahuqahuq Member Posts: 1
Dear friends,
I have installed FreeBSD 8.1 and Gnome on top of it. Then I installed Eclipse Ganymede (Eclipse SDK Version: 3.4.2 Build id: M20090211-1700-3) and java runs on it without any problem. Then I installed the CDT plugin. Now I can't compile C programs. If I try to build the project, I get

"make all
make: don't know how to make all. Stop"

message. If I try to RUN it, then I get the message "Lauch failed. Binary not found".

Again... in the website:

http://old.nabble.com/Error-:-Launch-failed-no-binaries-td9003021.html

I found the following:

"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 "

----But gmake does not work (it is installed in FreeBSD)!!!!----------------
Also I couldn't find a way to do the "posix make" thing in Eclipse Ganymede.

Please help me!!!!!
Sign In or Register to comment.