Subject:
|
Re: Unable to compile helloworld.c
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 5 Nov 2001 02:13:07 GMT
|
Viewed:
|
1667 times
|
| |
| |
Michael explained very detail, you can do as below if you don't want to do too
complex:
Make your Project directory inside ../legOS directory, copy Makefile from demo to
Project directory, change
PROGRAMS=helloworld.lx rover.lx linetrack.lx robots.lx c++.lx
to:
PROGRAMS=helloworld.lx
Now you can compile using:
make
Zhengrong
Michael Obenland wrote:
> > In the documentation it says that I should create a
> > subdirectory with either the name of "code" or "projects" or something like
> > that.
>
> Ok. Now lets look at your "projects" dir. You take helloworld.c from demo and
> put it into "projects". Then you also put the Makefile you find in the demo
> dir into "projects", so you have two files: helloworld.c and Makefile.
>
> You now must edit Makefile. You find a line:
>
> boot=../boot/legOS
>
> You must change this line to your needs. Lets say, you put your "projects"
> directory into the demos directory. Now, legOS in ../../boot/legOS. (The ".."
> means: get one dir upwards).
>
> then, you edit the line:
>
> PROGRAMS=helloworld.lx rover.lx linetrack.lx robots.lx c++.lx
>
> to:
>
> PROGRAMS=helloworld.lx
>
> and edit the line:
>
> all: $(PROGRAMS) c++
>
> to
>
> all: $(PROGRAMS)
>
> Then, you have to adjust the path to Makefile.common and Makefile.user the
> same way as the path to the legOS file some lines above.
>
> That's it, now helloworld.c should go to helloworld.lx.
>
> Bye
>
> Mike
--
Zhengrong ZANG's RCX Controlled LEGO Train Projects
http://legochina.virtualave.net
|
|
Message is in Reply To:
| | Re: Unable to compile helloworld.c
|
| (...) Ok. Now lets look at your "projects" dir. You take helloworld.c from demo and put it into "projects". Then you also put the Makefile you find in the demo dir into "projects", so you have two files: helloworld.c and Makefile. You now must edit (...) (23 years ago, 4-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
|
|
|
|