This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: wmmake problem


1st of all, sorry.
But i think, a makefile syntax, and the cygwin environment variable is not an SGT related problem
Forget the SGT.

I made a variable in .bashrc :
mydir=/var/www
export mydir

and in a makefile there is a reference:
include $(mydir)/myproject/something/a.mak

echo $mydir
$ /var/www/

and when i am compile, the system sad, cannot find /myproject/something/a.mak
because the system don't know the value of the $mydir environment variable.

so ?

Vaso

-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf Of Igor Pechtchanski
Sent: Monday, June 21, 2004 4:48 PM
To: Vasoczki Ferenc
Cc: cygwin@cygwin.com
Subject: Re: wmmake problem


Once again, you're asking in the wrong place.  SGT, or whatever package
you're trying to compile, doesn't look like an official Cygwin package.
You should ask wherever you got the package from.  This is off-topic for
the Cygwin list.
	Igor
P.S. Oh, and <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:

> Ok, i see through what happend:
> if i am wroting the full path except using the $SGT_DIR variable, then
> it do it:
>
>     #include $(SGT_DIR)/mak/makegen.mak
>     include /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/mak/makegen.mak
> ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------------
>
> and as i wrote, i setted the $SGT_DIR:
>
> Rendszergazda@KORONKAI ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> why doesn't it found ?????
> i wouldn't like to overwrite all of my .mak file with these full path...
> this is why are the environment variables, aren't they ???
>
> Vaso
>
> -----Original Message-----
> From: Vasoczki Ferenc
> Sent: Monday, June 21, 2004 4:07 PM
> To: cygwin<at>cygwin<dot>com
> Subject: RE: makelib problem
>
>
> Hi!
>
> Oh, this setup CD confused me :((
> So i installed the cygwin from internet, than copy out the .bashrc, then
> remove, install from CD again (from the internet the cygwin doesn't make
> home dir) and set the environment variables. Here are them:
> # SGT SETTINGS
> export SGT_VER=v1.2.4
> SGT_DIR=/cygdrive/c/OpenAT/V210/TgtGen/SGT/$SGT_VER
> export SGT_SCRIPT=$SGT_DIR/script_sgt
> export PATH=$SGT_SCRIPT:$PATH
>
> great, now i have the SGT settings.
> now i am making a new application:
> wmnew -sample open-at/Hello_World -32 -gcc
>
> it's run.
>
> then continue (from the documentation) and i've got an error message:
> ------------------------------------------------------------------------------------------------------------
> Rendszergazda@KORONKAI ~/test
> $ wmmake Hello_World -d
>
>     Launch a full library or binary process
>
> /cygdrive/C/OpenAT/V210/TgtGen/WmGen/mak/gen.mak:89: /mak/makegen.mak: No such file or directory
> make: *** No rule to make target `/mak/makegen.mak'.  Stop.
> ------------------------------------------------------------------------------------------------------------
> ok, let's see the directory structure:
> in my path there is this:
>
> PATH=/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/sy........... (and more)
> ------------------------------------------------------------------------------------------------------------
> I have this file:
> C:\OpenAT\V210\TgtGen\SGT\v1.2.4\mak\makgen.mak
> ------------------------------------------------------------------------------------------------------------
> Anyway, what this error code means ?
> I think, it's not found the makegen.mak
> I have only this makegen.mak on my hard drive.
>
> it's clear, but where should it be ???
>
> there is a gen.mak in C:\OpenAT\V210\TgtGen\WmGen\mak\
> and this include:
> ------------------------------------------------------------------------------------------------------------
> ifeq ($(MAKEFILE),)
>     include $(SGT_DIR)/mak/makegen.mak
> else
>     include $(SGT_DIR)/mak/$(MAKEFILE)
> endif
> ------------------------------------------------------------------------------------------------------------
> i think the first case is the important.
> as you see, $SGT_DIR is setted.
>
> ------------------------------------------------------------------------------------------------------------
> Rendszergazda@KORONKAI ~/test
> $ echo $SGT_DIR
> /cygdrive/c/OpenAT/V210/TgtGen/SGT/v1.2.4
> ------------------------------------------------------------------------------------------------------------
>
> sorry for these stupid question, just i sad, i don't know cygwin as well,
> and i am sad, because i can't run the hello world, the simpliest program...
>
> Vaso
>
>
> -----Original Message-----
> From: Igor Pechtchanski
> Sent: Monday, June 21, 2004 2:54 PM
> To: Vasoczki Ferenc
> Cc: cygwin<at>cygwin<dot>com
> Subject: Re: makelib problem
>
>
> On Mon, 21 Jun 2004, Vasoczki Ferenc wrote:
>
> > Hi!
> >
> > I am a newbie on this list, and with the Cygwin too, so please
> > be patient :)
> >
> > I tried to search for make_lib in archive, but i've get no result.
> >
> > i should learn to write embedded applications form wavecom modems
> > and i am using cygwin and gcc. i downloaded the latest cygwin from the
> > net.
> >
> > i am using the documentation of wavecom, and i tried to do a sample
> > program. this is the command to make the new sample environment:
> >
> > wmnew -sample open-at/Hello_World -32 -gcc
> >
> > it's ok, it makes me the directory structure (./mak, ./out)
> > great.
> > the next step is to compile this code to binary.
> > here is my problem.
> >
> > i am following the doc, and it say type this:
> > wmmake Hello_World -d
> >
> > this is to compile, but i've got an error message:
> > /cygdrive/c/OpenAT/V210/TgtGen/WmGen/wmmake: line 24: make_lib: command not found
> >
> > i checked, and there is no make_lib file there... it's ok.
> > i searched this file, and it's here:
> > C:\OpenAT\V210\TgtGen\SGT\v1.2.4\script_sgt\make_lib
> >
> > it's seems, when i installed this cygwin after the OpenAT the
> > environment variables are bad. (correct me if i am not right)
> >
> > so i tried to add this path:
> > PATH=/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I have a feeling you simply missed the quoting in the above line.  Try
>
> PATH="/cygdrive/C/OpenAT/V210/TgtGen/SGT/v1.2.4/script_sgt:$PATH"
>
> and see if it works better.  If not, you'll have to ask on the make_lib
> list, as this problem has nothing to do with Cygwin.
>         Igor
>
> > export PATH
> >
> > and then run again the "wmmake Hello_World -d"
> > i've got this error message:
> >
> > Launch a full library or binary process
> >
> > make: not found
> >
> > before this, i've got another error message something like:
> > The root directory of SGT are not correct...
> >
> > How can i tell to cygwin to use this directory to access make_lib, or
> > what should i do with this to work ???
> >
> > Thank you
> > Vaso

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]