To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2785
2784  |  2786
Subject: 
Re: compile error
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 21 Aug 2002 14:05:10 GMT
Viewed: 
2040 times
  
There was a problem in our makefiles (fixed post 0.2.6.05) that affected
building images from a subdirectory of the LegOS root. I think the problem
comes about when using Cygwin and you put the LegOS source root in a
directory parallel to the Cygwin root (c:\legos for example). Cygwin's
concept of the system root '/' is Cygwin's install directory (Ex:
c:\cygwin). If you put LegOS anywhere other than c:\cygwin\legos (using the
previous example), you will get these errors. The makefiles assume legos is
in a directory relative to the "system root" which is not the real NT volume
root.

Typing "cd /" will set your working directory differently than  "cd c:/"
will.

Hope this helps.

                /ted



"Ralph Clark" <ralph.clark@ntlworld.com> wrote in message
news:H14qwt.6C9@lugnet.com...
I get a compile error too, but a different one.
I have written a simple program called light.c which I have put in the • demo
directory. I then cd into the demo directory and type "make light.lx", but
then I get loads of errors as follows:

BASH.EXE-2.02$ make light.lx

h8300-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall -I/legos/include -
I/le
gos/include/lnp -I. -I../boot/ -c light.c -o light.o
light.c:2: unistd.h: No such file or directory
light.c:3: conio.h: No such file or directory
light.c:4: dsensor.h: No such file or directory
make: *** [light.o] Error 1

It can't seem to find the *.h files. Which file do I edit to point the
compiler to the right place?
Thanks,

Ralph

P.S.
Using Cygwin B-20



"Dan Gray" <dangray@computer.org> wrote in message
news:H147B0.325@lugnet.com...
I'm trying to compile the demo code provided with legOS-0.2.6.
When I type "make helloworld.lx" or "make all", I get the following • error:

Any ideas how to fix this?  I'm using Linux kernel 2.4.19.

-Dan


/usr/bin/h8300-hitachi-hms-ld -T ../boot/legOS.lds -relax
-L/usr/lib/legOS/lib helloworld.o  -lc -lmint -lfloat -o helloworld.ds1
-Ttext 0xb000
/usr/bin/h8300-hitachi-hms-ld -T ../boot/legOS.lds -relax
-L/usr/lib/legOS/lib helloworld.o  -lc -lmint -lfloat -o helloworld.ds2
-Ttext 0xb210
/usr/lib/legOS/util/makelx helloworld.ds1 helloworld.ds2 helloworld.lx
usage: /usr/lib/legOS/util/makelx file.ds1 file.ds2 file.lx
       [-sstacksize -v]
       size in hex, please.
make: *** [helloworld.lx] Error 1
rm helloworld.ds1 helloworld.ds2





Message has 1 Reply:
  Re: compile error
 
Unfortunately, that doesn't seem to work but thanks for your input anyway. (22 years ago, 21-Aug-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: compile error
 
I get a compile error too, but a different one. I have written a simple program called light.c which I have put in the demo directory. I then cd into the demo directory and type "make light.lx", but then I get loads of errors as follows: (...) (22 years ago, 20-Aug-02, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR