Subject:
|
Re: Still having problems with helloworld.c
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 15 Nov 2001 00:31:18 GMT
|
Viewed:
|
1538 times
|
| |
| |
Hi,
I had the same problem you did and traced it back to a faulty line in
loader.c (which contains makelx's main()). In revision 1.3 and earlier of
that file you can find the following toward the end of the file:
if(argc-optind<3 || lx.text_size==0) {
fprintf(stderr,"usage: %s file.ds1 file.ds2 file.lx\n"
...
lx has not been initialized, so it contains garbage which is not equal to 0.
I attempted to compile 0.2.5 (which does not have this problem), but got
numerous errors (I'll work on that later). The solution I came up with is
simply to edit makelx itself. If you change the byte at 0xb3a to 0xeb
eveything should work fine.
John
In lugnet.robotics.rcx.legos, Rajendra Kumar Penugonda writes:
> Hi! I tried changing the path for KERNEL in makefile from Demos directory
> and giving the path for legOS there.Now I get a different message when I do
> 'make'.It says 'No rule to make target'?!Now is there any way I could solve
> this.If I download the tar file for legOS then do I get new files for egcs
> and binutils too??
> Regards,Rajendra
>
>
> > From: "Michael Obenland" <obenland@t-online.de>
> > Reply-To: lugnet.robotics.rcx.legos@lugnet.com
> > To: lugnet.robotics.rcx.legos@lugnet.com
> > Subject: Re: Unable to compile helloworld.c
> > Date: Mon, 5 Nov 2001 23:13:09 GMT
> >
> > Addendum:
> >
> > It seems bad to put legOS under /usr/lib. Please get a fresh legOS.tar.z
> > from
> > legOS.sourceforge.net and install it in your user home directory. (for me,
> > that means in /home/obi. So legOS home is /home/obi/legOS at my linux
> > system)
> > You will probably get trouble with the file access rights if you install
> > under /usr/lib. Or you have to be root to do your work which is very very
> > bad. Try a rm -r * in / as root and you know what I mean ;)
> >
> > Then, try to make the kernel and the demos as told in the readme of legOS.
> > If
> > this works (and it must work!) you can try to make a program in your
> > projects
> > dir.
> >
> > Bye
> >
> > Mike
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|
|
Message has 1 Reply:
Message is in Reply To:
| | Still having problems with helloworld.c
|
| Hi! I tried changing the path for KERNEL in makefile from Demos directory and giving the path for legOS there.Now I get a different message when I do 'make'.It says 'No rule to make target'?!Now is there any way I could solve this.If I download the (...) (23 years ago, 8-Nov-01, to lugnet.robotics.rcx.legos)
|
3 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
|
|
|
|