Author Topic: Unable to compile cr2hdr.  (Read 623 times)

BobbyBonsaimind

  • New to the forum
  • *
  • Posts: 2
Unable to compile cr2hdr.
« 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. 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?

Audionut

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3535
  • Blunt and to the point
Re: Unable to compile cr2hdr.
« Reply #1 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

Danne

  • Hero Member
  • *****
  • Posts: 4747
Re: Unable to compile cr2hdr.
« Reply #2 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

BobbyBonsaimind

  • New to the forum
  • *
  • Posts: 2
Re: Unable to compile cr2hdr.
« Reply #3 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.