Subject:
|
Re: error in using brickOS under Bricx Command Center
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 6 Oct 2005 05:01:44 GMT
|
Viewed:
|
8891 times
|
| |
| |
In lugnet.robotics.rcx.legos, John Hansen wrote:
> In lugnet.robotics.rcx.legos, Je-Young Choi wrote:
> > When I try to compile simple demo c files under Bricx Command Center,
> > I get the following error message
> > Compile Failed
> > Unknown error code (-126)
> > Results are the same for both versions 0.2.6 and 0.9.0 for brickos.
>
>
> Can you do F12 and post the contents (if any)? Do you have bash installed?
> While the error message is displayed you can open a command prompt and change
> directory to the location of your source code file. There you should find a
> .cmd and a .mak file with the same name as your source code. Try executing the
> Makefile from the command prompt (without entering cygwin) like this:
>
> make -f filename.mak all
>
> Also try executing the makefile via the .cmd file using bash. To do this you'll
> have to edit the cmd file to point to the copy of the makefile you made earlier.
> Once you've done that then type
>
> bash filename.cmd
>
> It should write to the file specified in the .cmd file. Have a look at the
> contents of that file (if any).
>
> If you get any errors while executing either make or bash then you may have a
> configuration problem. Your cygwin\bin directory has to be on your system path,
> for sure.
>
> John Hansen
Thank you for your informations.
After closing the error message window, I clicked F12 key.
The resulting Code
Listing Window contained nothing.
The content of the file helloworld.mak is
ROOT=C:\cygwin\brickos
KERNEL=$(ROOT)/boot/brickOS
PROGRAMS=helloworld.lx
DOBJECTS=
all:: $(DOBJECTS) $(PROGRAMS)
download:: all
$(ROOT)/util/dll --program=1 --tty=usb --rcxaddr=0 $(PROGRAMS)
set_addr::
$(ROOT)/util/dll --tty=usb --rcxaddr=0 --node=-1
include $(ROOT)/Makefile.common
include $(ROOT)/Makefile.user
The command
make -f helloworld.mak all
seemed not to change anything.
There is no folder like $(ROOT)/boot/brickOS
so I tried to change it into $(ROOT)/kernel
(in Edit...Preferences...Compiler...C/C++/Pascal...Makefile template:
of Bricx Command Center.)
It didn't resolve the problem.
The content of the file helloworld.cmd is
/bin/make -f"C:\cygwin\brickos\demo\helloworld.mak" -s >&
"C:/cygwin/brickos/demo/temp.log"
The command
bash helloworld.cmd
produced temp.log whose size is zero.
Do these information help find the cause of the problem?
Thanks
Je-Young
|
|
Message has 2 Replies:
Message is in Reply To:
12 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
|
|
|
|