|
Jason,
There is a problem within the Makefile logic atleast with some windows OS.
What OS are you trying it on? I submitted a bug to the legOS project on
sourceforge
(http://sourceforge.net/tracker/index.php?func=detail&aid=551601&group_id=25
87&atid=102587) and submitted a suggestion for a fix here
(http://news.lugnet.com/robotics/rcx/legos/?n=2519).
What is happening (atleast on my machine with Windows 98) is I do not have
OSTYPE declared on my machine (try env command to see what is defined).
Thus when make goes through Makefile.common (located in [legOS
ROOT]/legOS_0.2.6/ and [legOS ROOT]/legOS_0.2.6/util/) is detects that
OSTYPE does not exist, makes a shell call to the uname command, and declares
the return value for OSTYPE. For windows 98 this returns CYGWIN_98-4.10.
Then when make gets down to the check for the windows OS, OSTYPE does not
match any of the given strings. Thus it thinks I am using Linux and uses cc
instead of gcc.
This is going to be fixed here shortly but in the mean time you can do it
yourself be changing the following lines of code in Makefile.common
#
# WindowsNT/Cygnwin, test against several values:
#
ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin CYGWIN_NT-4.0 CYGWIN_NT-5.0
CYGWIN_NT-5.1 WindowsNT Windows_NT))
EXT=.exe
CC =gcc
CFLAGS+=-D_WIN32
endif
to
#
# WindowsNT/Cygnwin, test against several values:
#
ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT
Windows_NT)||$(findstring CYGWIN,$(OSTYPE)))
EXT=.exe
CC =gcc
CFLAGS+=-D_WIN32
endif
Ed
Shehryar Shaheen <shehryar.shaheen@ul.ie> wrote in message
news:Gvo2D0.18C@lugnet.com...
[snip]
>
> This error is probaly because the make file logic makes it think that it is
> compliling under linux.
>
> Hope this helps
>
> Shehryar
>
>
> "Jason Hensler" <fire_on@yahoo.com> wrote in message
> news:GvnspH.4H7@lugnet.com...
> > i'm running the lates version of cygwin and i'm trying to follow the
> > instructions at http://legos.sourceforge.net/cygwin/INSTALL-cygwin.html but,
> > when i try to make depend i get some errors: [snip]
> >
> > Thanks,
> > Jason Hensler
>
>
|
|
Message is in Reply To:
| | Re: cygwin messed up?
|
| You can try a few things with the makefile.common in the util directory and change the tool prefix from cc to gcc. Later u might have another error related to ld at that point u'll have to put the extension .exe in front of ld in one of the (...) (23 years ago, 6-May-02, to lugnet.robotics.rcx.legos)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|