[Android Software Development] Segnale007:
Hello folks, I hope this is going to the right section, otherwise mods please move it to the right one as I have no clue of where to post it ...

Ok, lets being saying I followed this to letter and even though I did exactly what is said on the wiki I am facing lots of weird errors when trying to compile fastboot and mkbootimg from my mac (intel).. I didn't try to compile anything else as I just need those two tools atm and however I don't think it will work..

Those are the errors I am talking about

Pietros-MacBook-Pro:fastboot Pietro$ make fastboot
cc fastboot.c -o fastboot
fastboot.c:40:21: error: bootimg.h: No such file or directory
fastboot.c:41:29: error: zipfile/zipfile.h: No such file or directory
fastboot.c:45: error: expected ‘)’ before ‘*’ token
fastboot.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
fastboot.c: In function ‘load_bootable_image’:
fastboot.c:261: error: ‘BOOT_MAGIC’ undeclared (first use in this function)
fastboot.c:261: error: (Each undeclared identifier is reported only once
fastboot.c:261: error: for each function it appears in.)
fastboot.c:261: error: ‘BOOT_MAGIC_SIZE’ undeclared (first use in this function)
fastboot.c:262: error: ‘boot_img_hdr’ undeclared (first use in this function)
fastboot.c:262: error: expected expression before ‘)’ token
fastboot.c:282: warning: assignment makes pointer from integer without a cast
fastboot.c:287: error: expected expression before ‘)’ token
fastboot.c: At top level:
fastboot.c:294: error: expected ‘)’ before ‘zip’
fastboot.c:414: error: expected ‘)’ before ‘zip’
fastboot.c: In function ‘do_update’:
fastboot.c:430: error: ‘zipfile_t’ undeclared (first use in this function)
fastboot.c:430: error: expected ‘;’ before ‘zip’
fastboot.c:437: error: ‘zip’ undeclared (first use in this function)
fastboot.c:440: warning: assignment makes pointer from integer without a cast
fastboot.c:444: warning: assignment makes pointer from integer without a cast
fastboot.c:457: warning: assignment makes pointer from integer without a cast
fastboot.c:462: warning: assignment makes pointer from integer without a cast
fastboot.c:468: warning: assignment makes pointer from integer without a cast
make: *** [fastboot] Error 1

Pietros-MacBook-Pro:mkbootimg Pietro$ make mkbootimg
cc mkbootimg.c -o mkbootimg
mkbootimg.c:25:26: error: mincrypt/sha.h: No such file or directory
mkbootimg.c: In function ‘main’:
mkbootimg.c:111: error: ‘SHA_CTX’ undeclared (first use in this function)
mkbootimg.c:111: error: (Each undeclared identifier is reported only once
mkbootimg.c:111: error: for each function it appears in.)
mkbootimg.c:111: error: expected ‘;’ before ‘ctx’
mkbootimg.c:112: error: nested functions are disabled, use -fnested-functions to re-enable
mkbootimg.c:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
mkbootimg.c:112: error: ‘sha’ undeclared (first use in this function)
mkbootimg.c:224: error: ‘ctx’ undeclared (first use in this function)
mkbootimg.c:232: error: ‘SHA_DIGEST_SIZE’ undeclared (first use in this function)
make: *** [mkbootimg] Error 1

I have posted this already on the Cyanogenmod forum but I have gotten no response so far ..

Any help would be much appreciated.

Thanks