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