Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » gmake and CDT
gmake and CDT [message #97375] Thu, 25 March 2004 16:50 Go to next message
Eclipse UserFriend
Originally posted by: gfs.samara.ntlworld.com

HI All,

Perhaps this is an old question, butI have just strted to evaluate eclipse
and CDT.

Installation went well.

I am running simple test, a C program. First it tried to run make butmake
chokes on the makefile (I AM USING THE GNU TOOL CHAIN). NO problem, I went
to the project property, cofniguration and and changed the default command
from "make" to "gmake". It stillcannot find it eventhough it is in my
path. No problem, I added the full path. But now it builds the DEBUG
configuration but not the RELEASE configuration. This is the output I get:

/opt/sfw/bin/gmake all
gmake: gcc: Command not found
gmake: *** [testc.o] Error 127
gcc -O0 -g3 -Wall -c -o testc.o ../testc.c
Build complete for project testc

Strange it finds gcc for one but not for the other.

what else do I need to do to build both configurations?

Thank you for your efforts and help.

The following is my environment if it is of any help.

PWD=/home/redjupiter
XFORCE_INTERNET=True
TZ=GB
WINDOWID=67108873
LC_MESSAGES=C
DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix
StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife
StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank
dtstart_sessionlogfile=/dev/null
HOSTNAME=byblos
DTDEVROOT=
XMBINDDIR=/usr/dt/lib/bindings
DTUSERSESSION=redjupiter-192.168.1.104-0
DTDATABASESEARCHPATH=/home/redjupiter/.dt/types,/etc/dt/appc onfig/types/%L,/etc/dt/appconfig/types/C,/usr/dt/appconfig/t ypes/%L,/usr/dt/appconfig/types/C
OPENWINHOME=/usr/openwin
MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
LC_TIME=en_GB.ISO8859-15
USER=redjupiter
MACHTYPE=sparc-sun-solaris2.9
DTXSERVERLOCATION=remote
AB_CARDCATALOG=/usr/dt/share/answerbooks/en_GB.ISO8859-15/ab _cardcatalog
XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S:/usr/open win/lib/%T/%N%S
MAIL=/var/mail/redjupiter
EDITOR=/usr/dt/bin/dtpad
LANG=en_GB.ISO8859-15
LC_NUMERIC=en_GB.ISO8859-15
DISPLAY=192.168.1.104:0.0
LOGNAME=redjupiter
SHLVL=2
LC_CTYPE=en_GB.ISO8859-15
XMICONSEARCHPATH=/home/redjupiter/.dt/icons/%B%M.pm:/home/re djupiter/.dt/icons/%B%M.bm:/home/redjupiter/.dt/icons/%B:/et c/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/% B%M.bm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons /C/%B%M.pm:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconf ig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/app config/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/d t/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.b m:/usr/dt/appconfig/icons/C/%B
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
XMICONBMSEARCHPATH=/home/redjupiter/.dt/icons/%B%M.bm:/home/ redjupiter/.dt/icons/%B%M.pm:/home/redjupiter/.dt/icons/%B:/ etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L /%B%M.pm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/ico ns/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appco nfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/a ppconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr /dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M .pm:/usr/dt/appconfig/icons/C/%B
SESSION_SVR=byblos
DTSOURCEPROFILE=true
DTHELPSEARCHPATH=/home/redjupiter/.dt/help/redjupiter-192.16 8.1.104-0/%H:/home/redjupiter/.dt/help/redjupiter-192.168.1. 104-0/%H.sdl:/home/redjupiter/.dt/help/redjupiter-192.168.1. 104-0/%H.hv:/home/redjupiter/.dt/help/%H:/home/redjupiter/.d t/help/%H.sdl:/home/redjupiter/.dt/help/%H.hv:/etc/dt/appcon fig/help/%L/%H:/etc/dt/appconfig/help/%L/%H.sdl:/etc/dt/appc onfig/help/%L/%H.hv:/usr/dt/appconfig/help/%L/%H:/usr/dt/app config/help/%L/%H.sdl:/usr/dt/appconfig/help/%L/%H.hv:/usr/d t/appconfig/help/C/%H:/usr/dt/appconfig/help/C/%H.sdl:/usr/d t/appconfig/help/C/%H.hv
DTAPPSEARCHPATH=/home/redjupiter/.dt/appmanager:/etc/dt/appc onfig/appmanager/%L:/etc/dt/appconfig/appmanager/C:/usr/dt/a ppconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
SHELL=/bin/bash
HOSTTYPE=sparc
OSTYPE=solaris2.9
HOME=/home/redjupiter
TERM=dtterm
PATH=/opt/sfw/bin:/opt/Acrobat5/bin:/usr/ccs/bin:/usr/bin::/ usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb
LC_MONETARY=en_GB.ISO8859-15
TERMINAL_EMULATOR=dtterm
LC_COLLATE=en_GB.ISO8859-15
_=/usr/bin/env


Georges
Re: gmake and CDT [message #97792 is a reply to message #97375] Sat, 27 March 2004 18:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gfs.samara.ntlworld.com

Georges wrote:

> HI All,

> Perhaps this is an old question, butI have just strted to evaluate eclipse
> and CDT.

> Installation went well.

> I am running simple test, a C program. First it tried to run make butmake
> chokes on the makefile (I AM USING THE GNU TOOL CHAIN). NO problem, I went
> to the project property, cofniguration and and changed the default command
> from "make" to "gmake". It stillcannot find it eventhough it is in my
> path. No problem, I added the full path. But now it builds the DEBUG
> configuration but not the RELEASE configuration. This is the output I get:

> /opt/sfw/bin/gmake all
> gmake: gcc: Command not found
> gmake: *** [testc.o] Error 127
> gcc -O0 -g3 -Wall -c -o testc.o ../testc.c
> Build complete for project testc

> Strange it finds gcc for one but not for the other.

> what else do I need to do to build both configurations?

> Thank you for your efforts and help.

> The following is my environment if it is of any help.

> PWD=/home/redjupiter
> XFORCE_INTERNET=True
> TZ=GB
> WINDOWID=67108873
> LC_MESSAGES=C
> DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix
> StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife
> StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank
> dtstart_sessionlogfile=/dev/null
> HOSTNAME=byblos
> DTDEVROOT=
> XMBINDDIR=/usr/dt/lib/bindings
> DTUSERSESSION=redjupiter-192.168.1.104-0
>
DTDATABASESEARCHPATH=/home/redjupiter/.dt/types,/etc/dt/appc onfig/types/%L,/etc/dt/appconfig/types/C,/usr/dt/appconfig/t ypes/%L,/usr/dt/appconfig/types/C
> OPENWINHOME=/usr/openwin
> MANPATH=/usr/dt/man:/usr/man:/usr/openwin/share/man
> LC_TIME=en_GB.ISO8859-15
> USER=redjupiter
> MACHTYPE=sparc-sun-solaris2.9
> DTXSERVERLOCATION=remote
> AB_CARDCATALOG=/usr/dt/share/answerbooks/en_GB.ISO8859-15/ab _cardcatalog
> XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S:/usr/open win/lib/%T/%N%S
> MAIL=/var/mail/redjupiter
> EDITOR=/usr/dt/bin/dtpad
> LANG=en_GB.ISO8859-15
> LC_NUMERIC=en_GB.ISO8859-15
> DISPLAY=192.168.1.104:0.0
> LOGNAME=redjupiter
> SHLVL=2
> LC_CTYPE=en_GB.ISO8859-15
>
XMICONSEARCHPATH=/home/redjupiter/.dt/icons/%B%M.pm:/home/re djupiter/.dt/icons/%B%M.bm:/home/redjupiter/.dt/icons/%B:/et c/dt/appconfig/icons/%L/%B%M.pm:/etc/dt/appconfig/icons/%L/% B%M.bm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/icons /C/%B%M.pm:/etc/dt/appconfig/icons/C/%B%M.bm:/etc/dt/appconf ig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.pm:/usr/dt/app config/icons/%L/%B%M.bm:/usr/dt/appconfig/icons/%L/%B:/usr/d t/appconfig/icons/C/%B%M.pm:/usr/dt/appconfig/icons/C/%B%M.b m:/usr/dt/appconfig/icons/C/%B
> HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
>
XMICONBMSEARCHPATH=/home/redjupiter/.dt/icons/%B%M.bm:/home/ redjupiter/.dt/icons/%B%M.pm:/home/redjupiter/.dt/icons/%B:/ etc/dt/appconfig/icons/%L/%B%M.bm:/etc/dt/appconfig/icons/%L /%B%M.pm:/etc/dt/appconfig/icons/%L/%B:/etc/dt/appconfig/ico ns/C/%B%M.bm:/etc/dt/appconfig/icons/C/%B%M.pm:/etc/dt/appco nfig/icons/C/%B:/usr/dt/appconfig/icons/%L/%B%M.bm:/usr/dt/a ppconfig/icons/%L/%B%M.pm:/usr/dt/appconfig/icons/%L/%B:/usr /dt/appconfig/icons/C/%B%M.bm:/usr/dt/appconfig/icons/C/%B%M .pm:/usr/dt/appconfig/icons/C/%B
> SESSION_SVR=byblos
> DTSOURCEPROFILE=true
>
DTHELPSEARCHPATH=/home/redjupiter/.dt/help/redjupiter-192.16 8.1.104-0/%H:/home/redjupiter/.dt/help/redjupiter-192.168.1. 104-0/%H.sdl:/home/redjupiter/.dt/help/redjupiter-192.168.1. 104-0/%H.hv:/home/redjupiter/.dt/help/%H:/home/redjupiter/.d t/help/%H.sdl:/home/redjupiter/.dt/help/%H.hv:/etc/dt/appcon fig/help/%L/%H:/etc/dt/appconfig/help/%L/%H.sdl:/etc/dt/appc onfig/help/%L/%H.hv:/usr/dt/appconfig/help/%L/%H:/usr/dt/app config/help/%L/%H.sdl:/usr/dt/appconfig/help/%L/%H.hv:/usr/d t/appconfig/help/C/%H:/usr/dt/appconfig/help/C/%H.sdl:/usr/d t/appconfig/help/C/%H.hv
>
DTAPPSEARCHPATH=/home/redjupiter/.dt/appmanager:/etc/dt/appc onfig/appmanager/%L:/etc/dt/appconfig/appmanager/C:/usr/dt/a ppconfig/appmanager/%L:/usr/dt/appconfig/appmanager/C
> SHELL=/bin/bash
> HOSTTYPE=sparc
> OSTYPE=solaris2.9
> HOME=/home/redjupiter
> TERM=dtterm
>
PATH=/opt/sfw/bin:/opt/Acrobat5/bin:/usr/ccs/bin:/usr/bin::/ usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb
> LC_MONETARY=en_GB.ISO8859-15
> TERMINAL_EMULATOR=dtterm
> LC_COLLATE=en_GB.ISO8859-15
> _=/usr/bin/env


> Georges


Problem solved. Intially Iadded eclipse to the workspace in CDE but now if
Irun Eclipse from the command line it works; Strangely it wiped out my old
project :(
Re: gmake and CDT [message #97954 is a reply to message #97792] Sun, 28 March 2004 20:57 Go to previous message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

Georges wrote:

> Georges wrote:



> Problem solved. Intially Iadded eclipse to the workspace in CDE but now if
> Irun Eclipse from the command line it works; Strangely it wiped out my old
> project :(

Maybe it is not lost, eclipse on Un*x by default whith out the
"-data" option will try to fin the "workspace" directory. Probably
your old workspace is in another folder, whereever it was started.
Previous Topic:Manged build or Standard build?
Next Topic:debug and run c++ code
Goto Forum:
  


Current Time: Fri Jun 06 15:55:28 EDT 2025

Powered by FUDForum. Page generated in 0.03468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top