hello,<div>I finally compiled fine aarmcl and libaarmcl.so with a linux virtual image.</div><div>But now when I try to run ccl on my android phone I get :</div><div><br></div><div>Heap image is too old for this kernel.</div>
<div>Couldn't load lisp heap image from /sd-ext/local/ccl/aarmcl.image</div><div><br></div><div>My phone :</div><div>$ uname -a</div><div>Linux localhost 2.6.38.8-tiamat-ics+ #1 PREMPT Fri May 25 21:49:58 CDT 2012 armv71 GNU/Linux</div>
<div><br><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 2:51 PM, Cyrille Duret <span dir="ltr"><<a href="mailto:cduret@gmail.com" target="_blank">cduret@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tried to compile with ur ndk but the androidarm Makefile is configured for arm-linux-androideabi/4.6 so I take the one from the android-ndk-r8d-windows<div><br></div><div>Basically the compilation failed. The stdint.h cannot be found, I don't know what's going on.</div>

<div><br></div><div>compilation logs : <a href="http://pastie.org/6333751" target="_blank">http://pastie.org/6333751</a></div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 1:40 PM, Gary Byers <span dir="ltr"><<a href="mailto:gb@clozure.com" target="_blank">gb@clozure.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've never tried to cross-compile the android CCL kernel using a Windows<br>
version of the Android NDK, but I (naively ?) would expect it work if the<br>
Makefile (ccl/lisp-kernel/androidarm/<u></u>Makefile) is edited a bit.  You say<br>
that you tried to compile from Windows/cygwin but don't say what you changed<br>
or how it failed; you may have already tried some of this.<br>
<br>
1) download <a href="http://dl.google.com/android/ndk/android-ndk-r7c-windows.zip" target="_blank">http://dl.google.com/android/<u></u>ndk/android-ndk-r7c-windows.<u></u>zip</a>;<br>
extract that on the Windows box, ideally somewhere that'd have the Cygwin<br>
pathname "/usr/local/android-ndk-r8c".  If you uave to up it somewhere<br>
else, change the definition of NDK in the Makefile.<br>
<br>
2) In a Cygwin shell, not what the command "uname -s" prints (probably<br>
the string "Windows" .)  Look at the NDK directory and see if you can<br>
determine what string is used to name host-specific parts of the NDK<br>
distribution; that may also be "Windows" or something like that.  Edit<br>
the Makefile (the part near the top that uses "uname -s" output to set the variable HOST.)<br>
<br>
3) cd to the ccl/lisp-kernel/androidarm directory and do "make".  If NDK<br>
or HOST aren't set right, you'll get lots of error messages.<br>
<br>
If things go well, one thing that'll happen is that a program named "fixlib"<br>
will get built and run on the host system (the Windows box) to tweak the<br>
"aarmcls.so" library.  It's possible that that needs to be referred to<br>
as "fixlib.exe"<br>
<br>
If the make completes, you can move the "aarmcl" and "aarmcl.so" files over<br>
to some directory (/data/local/ or /data/local/tmp, iirc) on the Android device<br>
and try to run aarmcl in the shell.  If that compilains that it can't find a<br>
heap image, build one ...<br>
<br>
<br>
On Mon, 25 Feb 2013, Cyrille Duret wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,I try to setup a running ccl instance on android and followed this<div><br>
thread<br>
<br>
<a href="http://clozure.com/pipermail/openmcl-devel/2011-November/013183.html" target="_blank">http://clozure.com/pipermail/<u></u>openmcl-devel/2011-November/<u></u>013183.html</a><br>
<br>
I tried to compile the kernel but without success since I am running<br>
freeBSD, I tried to compile from Windows/cygwin (I don't have linux nor MAC<br>
OS)<br>
<br></div>
I tried to upload the prebuild image (aarmcl, aarmcl.image and?aarmcl.so)<div><br>
from svn but I got an exception :<br>
<br>
unhandled exception 11 at 0x50066b68, context->regs at #xbef113d8<br>
received signal 11; faulting address: 0x1<br>
address not mapped to object<br>
? for help<br>
[24515] Clozure CL kernel debugger:<br>
<br>
<br>
My phone's CPU is<br>
<br>
# cat /proc/cpuinfo<br></div>
Processor ? : ARMv7 Processor rev (v71)<div><br>
BogoMIPS : 509.54<br>
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3<br>
..<br>
..<br>
Hardware : bravo<br>
<br>
Is there any way to cross compile the lisp kernel with windows OS ?<br>
<br>
thanks<br>
Cyrille<br>
<br>
<br>
<br>
</div></blockquote>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>