Basic chdk compilation question - General Discussion and Assistance - CHDK Forum

Basic chdk compilation question

  • 1 Replies
Basic chdk compilation question
« on: 23 / February / 2013, 19:33:17 »
I'm trying to compile a version of the CHDK on Mac OS X. I've installed gcc and arm-elf-gcc according to the wiki page,, but I suspect I messed up somewhere.

When I attempt to build CHDK using "make fir", I get the following error:
Code: [Select]
**** Build: 1.1.0
>> Entering to tools
>> Entering to tools/elf2flt
elf-arm.c -> elf-arm.o
elf-arm.c:9:20: error: malloc.h: No such file or directory
make[2]: *** [elf-arm.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Does anybody know what the cause of this might be? Thank you very much!


Offline reyalp

  • ******
  • 14086
Re: Basic chdk compilation question
« Reply #1 on: 24 / February / 2013, 14:31:52 »
This is attempting to build one of the tools used to build chdk modules, so it is problem with your host compiler settings rather than the ARM toolchain.

A quick google suggests that malloc.h isn't a standard include on OSX

You can try just commenting out the #include <malloc.h> lines in the affected files

In changesets 2596 (trunk) / 2597 (release-1_1) I've removed the references to malloc.h. malloc() is defined in stdlib.h, malloc.h should only be needed for some other less standard functions that we don't use.
« Last Edit: 24 / February / 2013, 15:47:08 by reyalp »
Don't forget what the H stands for.


Related Topics

SimplePortal 2.3.6 © 2008-2014, SimplePortal