Are you compiling on ARM, or cross-compiling?

Compiling on ARM. Not cross-compiling. I've got SSH and tty access to the
dreamplug. It runs on an ARM processor.

I hope you are comfortable with library linking, GNU make, etc.


Ha! I guess I'll get comfortable. I think I was trying to build
spider-monkey by itself there at the end but it just wasn't working out.

*Let's go back to the beginning.* I'm supposed to "install linux-headers"
but when I "apt-get install linux-headers" I get back a list of 30 versions
I'm supposed to pick from, and none of them are for my kernel (2.6.33).
What's the manual, non-apt procedure for "installing" them? I think I have
the files (downloaded from full source to 2.6.33 at kernel.org) but I don't
know where they go, or where to specify where I've put them, or if I've even
got the right .h files.

Does anyone have experience with getting linux-header files in the right
places?

Thanks...

Jeremy

"Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur."



On Sun, Aug 28, 2011 at 9:32 AM, Wes Garland <[email protected]> wrote:

> Are you compiling on ARM, or cross-compiling?  Compiling native is much
> easier, as APE has no support at all for cross-compilation built into it
> (but it should be possible to add without major pain).
>
> My recommendation is to build SpiderMonkey yourself, not under the control
> of the APE build system.  This will allow you to specify whatever --options
> you need to js/src/configure in order to get it building right on ARM.
>
> ARM, BTW, *is* supported for SpiderMonkey, and I would expect APE to work
> on ARM as well.  Check the docs on developer.mozilla.org for more info.
>
> This will mean hacking up the build system for APE, I hope you are
> comfortable with library linking, GNU make, etc.  My
> not-ready-for-primetime-but-stable APE fork (which adds CommonJS modules,
> ability to use C libs including full POSIX from script, etc) also builds APE
> and SpiderMonkey separately.  You might be able steal ideas from how I
> build: https://github.com/wesgarland/APE_Server
>
> Wes
>
>
> On 28 August 2011 02:59, Jeremy <[email protected]> wrote:
>
>> Here's a bit of an update, but might not be helpful. I tried make from
>> modules, and it looked like it was expecting jsapi.h to be under src in
>> dist/inculde (ie: deps/js/src/dist/include/) so I copied  it there. Then it
>> complained about what looked like linux kernel headers not being in the
>> right place, so I copied those into include. Then it seemed to say that it
>> wanted "compiler.h" in a "linux" folder underneath/inside include/ (ie:
>> deps/js/src/dist/inculde/linux) so I stuck the linux header files in there.
>> Now I'm getting this kind of error instead of "can't find the jsapi.h file":
>>
>> I assume the weird characters are something my KiTTY just doesn't
>> understand, ansi colors or something. You probably knew that already. :)
>>
>> make: *** [aped] Error 1
>> In file included from ./deps/mysac/mysac.h:24,
>>                  from libape-spidermonkey.c:26:
>> /usr/include/stdlib.h:140: error: expected â=â, â,â, â;â, âasmâ or
>> â__attribute__â before â__ctype_get_mb_cur_maxâ
>> In file included from /usr/include/sys/select.h:46,
>>                  from /usr/include/sys/types.h:220,
>>                  from /usr/include/stdlib.h:320,
>>                  from ./deps/mysac/mysac.h:24,
>>                  from libape-spidermonkey.c:26:
>> /usr/include/bits/time.h:70: error: redefinition of âstruct timevalâ
>> In file included from ./deps/mysac/mysac.h:24,
>>                  from libape-spidermonkey.c:26:
>> /usr/include/stdlib.h:337: error: expected declaration specifiers or
>> â...â before âsize_tâ
>>  /usr/include/stdlib.h:367: error: expected declaration specifiers or
>> â...â before âsize_tâ
>> /usr/include/stdlib.h:369: error: nonnull argument with out-of-range
>>            operand number (argument 1, operand 4)
>> /usr/include/stdlib.h:471: error: expected â)â before â__sizeâ
>> /usr/include/stdlib.h:473: error: expected â)â before â__nmembâ
>> /usr/include/stdlib.h:485: error: expected declaration specifiers or
>> â...â before âsize_tâ
>> ... more errors on just about every line ...
>>
>>
>> Thanks again,
>>
>>
>> Jeremy
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>
>
>
>
> --
> Wesley W. Garland
> Director, Product Development
> PageMail, Inc.
> +1 613 542 2787 x 102
>
>  --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to