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 / 3304
3303  |  3305
Subject: 
Re: OS X Complier problems solved--now struggling with BrickOS
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sat, 14 Jun 2003 18:57:57 GMT
Viewed: 
3134 times
  
In lugnet.robotics.rcx.legos, Rich Warren wrote:
When I run configure, everything seems to work. It did find my cross
compiler! However, when I run make I get the following errors:

cc -no-cpp-precomp -o loader.o -c loader.c -O2 -Wall -O2 -Wall -I.
-I/sw/brickos/source/brickos-0.2.6.10/include/lnp
loader.c:120:20: getopt.h: No such file or directory
loader.c:122: elements of array `long_options' have incomplete type
loader.c:123: warning: excess elements in struct initializer
loader.c:123: warning: (near initialization for `long_options[0]')
... Lots and lots of warnings snipped ...
loader.c: In function `main':
loader.c:375: warning: implicit declaration of function `getopt_long'
make[2]: *** [loader.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Note, I used the following command, to prevent possible problems with Mac
OS' cpp-precomp.

make CC='cc -no-cpp-precomp'

If I just use make, I get similar (though a much shorter list of) errors.

cc -o loader.o -c loader.c -O2 -Wall -O2 -Wall -I.
-I/sw/brickos/source/brickos-0.2.6.10/include/lnp
loader.c:120: header file 'getopt.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
make[2]: *** [loader.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Hi,

First, in terms of my compiler build (referencing your previous post...) what I
had a problem with was building the sample C++ code that came with BrickOS. I
don't need C++ so I haven't investigated this any further. You're free to try my
build of the compiler and see what happens.

The problems you're reporting are in building the platform tools that are needed
to work with the RCX. BrickOS doesn't have support for OS X so they have to be
modified to work (namely getopt differences and USB code). I've done this using
libusb (which all of the BrickOS tools should be ported to since it's cross
platform). You can download them from
http://www.zapptek.com/Downloads/OSXBrickOSTools.tgz. If you have this then you
can skip that part of the Brick OS build (doing a more specific make or
modifying the Makefile...).

Let me know if you have any more questions about OS X support. I've been able to
build Brick OS and run it on my RCX so it's possible!

Michael



Message has 1 Reply:
  Re: OS X Complier problems solved--now struggling with BrickOS
 
(...) You know, I think there's some cosmic law. Just after hitting the send key, I'll almost always realize my question was stupid. Looking at the errors I was getting, I noticed that it was the utilities that you'd already created. firmdl3 has the (...) (21 years ago, 16-Jun-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  OS X Complier problems solved--now struggling with BrickOS
 
Ok, you can (perhaps--I haven't been able to test it yet) ignore my previous post. I was trying to build the cross compiler using GCC 3.3, and nothing I tried would work. When I switched to 3.2.3, the errors disappeared. So I'm making the temporary (...) (21 years ago, 14-Jun-03, to lugnet.robotics.rcx.legos)

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
    

Custom Search

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