I didn't have much time to look at the problem today, but at least I
managed to build lejos without problems now.
Jürgen's comment about the makefile thinking I'm using Windows is
probably true, but I've changed all the references to the OS type to
darwin (at least those I've found...) I suppose I'll have to search
closer.
Matthias's comment about the Release.Howto file at least resulted in
different errors from what I'm used to. Now I got javac errors
regarding problems with the lejosunit.framework: javac can't find it.
I'm looking into it.
Andy's tip regarding XCode resulted in a complete build. I opened
XCode as instructed, and just hit compile. Before I know it, it says
"Build successful". No errors or warnings. I haven't actually had
time to test it, but at least it built with ease. I have a distinct
feeling it won't work though, but we shall see. I'm assuming what I
built was the libirtrcx variant, but frankly, I don't know.
From what I've done so far, I think it's going to take me a long
time just to find my way around the code (and the makefiles...), let
alone actually begin working on the actual problem.
Christian Holden
Karisvingen 14c
NO-7040 Trondheim
NORWAY
-------------
http://www.stud.ntnu.no/~christh
On 13. mar. 2006, at 05.57, Andy Belk wrote:
Hi Christian,
I've been looking at it all day, and I'm rather confused. Bear in
mind that this is the first time I have actually looked at the
source code for any part of leJOS. Also, I don't generally use
make (or ant), since I usually employ some sort of IDE for
anything other than trivial applications.
There's an Xcode project in .lejos.xcodeproj - just do:
1% open .lejos.xcodeproj
You need a fairly recent version of Xcode.
So far, I have tried to look at the code, the makefiles, and
tweaking them. This got me exactly nowhere. Problem number 1 is
that I can't find any sort of top-level documentation. For
instance, I cannot find out what is the difference between
libirtrcx and libirtrcx2 or between libjirtrcx and libjirtrcx2.
Some sort of clarification here would be rather useful.
The difference between libirtrcx and libirtrcx2 is that the 2
version was written to handle multiple USB towers. I presume the
same is true for for the libjirtrcx variant. With hindsight, we
probably should have done this with a branch in CVS, but that's a
bit beside the point.
The libjirtrcx library is a plain JNI library that calls out to the
functions in libirtrcx. I suspect it's structured like this because
originally Mac OS X JNI libraries had to be built in a special way,
so it was easier to split them up. That's actually no longer the
case so we could probably make things a lot simpler by combining
the libraries.
What I've done today has mostly been trying to find out where and
what the problem is. So I just started a terminal, changed
directory and typed "make". This didn't work, of course, but I
didn't expect it too either. I got the following error when it was
trying to build libjirtrcx:
BUILD FAILED
/Users/christh/lejos/build.xml:95: exec returned: 2
You either build from Xcode or use:
1% xcodebuild
or using any directly, the command that is performed by Xcode is:
1% ant -v -emacs -Dlejos.compiler=gcc -Dlejos.ostype=darwin
This will build the libirtrcx variant.
I can't find out where to look for the cause of this error. I
obviously tried looking in the build.xml file indicated, but that
didn't shed much light on the situation.
I think I need some help to get started on this.
I hope that helps.
Cheers,
Andy
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion