[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Is it possible to change the list of included module
Mario Domenech Goulart
Re: [Chicken-users] Is it possible to change the list of included modules when compiling Chicken?
Sun, 12 May 2019 13:56:20 +0200
On Sun, 12 May 2019 08:37:50 -0300 Jeronimo Pellegrini <address@hidden> wrote:
> On Sun, May 12, 2019 at 08:52:13AM +0200, Peter Bex wrote:
>> On Sat, May 11, 2019 at 08:28:23PM -0300, Jeronimo Pellegrini wrote:
>> > Hello,
>> > I am compiling it for wireless routers, and so far I could not yet
>> > package csc -- so getting modules with chicken-install doesn't
>> > work for me.
>> Hi Jeronimo,
>> I'm not sure what you're trying to do, but are statically linked
>> binaries of your program not an option for you? This would be one
>> single binary file you can just put onto the router.
> Do you mean tranfering a statically linked program to the router?
> I'd then need to cross-compile Chicken, and using the produced binary,
> run the Chicken compiler? (Cross-compilation is done within the
> OpenWRT build environment).
> So -- how do I do that? (Cross-compile an egg) I won't be able to
> run the target chicken compiler.
> This is what I imagime:
> 1- build chicken-host
> 2- compile the egg to C using chicken-host
> 3- use gcc from the cross-build environment to compile the egg for the
> target architecture
> How do I do step (2)? (I'm only used to chicken-install, don't know
> other ways to compile eggs)
Cross-compilation can be a bit tricky. Have you checked the
instructions in http://wiki.call-cc.org/man/5/Cross%20development ?
Alternatively, is there an emulator of the target platform that you
could use to compile CHICKEN natively and then produce the statically
All the best.