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/

Reply via email to