Magic Lantern Forum

Developing Magic Lantern => General Development Discussion => Topic started by: BobbyBonsaimind on August 21, 2018, 11:07:07 PM

Title: Unable to compile cr2hdr.
Post by: BobbyBonsaimind on August 21, 2018, 11:07:07 PM
I'm trying to compile cr2hdr (part of the Dual ISO module) under Linux and have been following this guide on how to compile it (https://www.magiclantern.fm/forum/index.php?topic=13548.0). The compilation of Magic Lantern itself works, however, all modules fail to compile because they can't find "module_strings.h". I'm sure I'm missing something simple here, can somebody point me to what I'm doing wrong?
Title: Re: Unable to compile cr2hdr.
Post by: Audionut on August 22, 2018, 07:53:58 AM
A log of the error messages would likely help.

https://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Title: Re: Unable to compile cr2hdr.
Post by: Danne on August 22, 2018, 08:43:48 AM
cr2hdr has been problematic compiling for a long time. Check this issue compiling for mac:
https://www.magiclantern.fm/forum/index.php?topic=16012.msg195083#msg195083

In short. Change:
Code: [Select]
HOST_CC=$(shell which gcc)
HOST_LD=$(shell which ld)
HOST_AR=$(shell which ar)
to what´s suggested in above link in file:
Makefile.user.default
Title: Re: Unable to compile cr2hdr.
Post by: BobbyBonsaimind on August 22, 2018, 08:54:06 PM
Thanks for the pointers, turns out that the dependency to python-docutils is not optional but required for the build...interesting.

It now compiles fine, thank you.