Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: morgan20 on August 25, 2018, 11:35:22 AM

Title: Unable to compile ML with CONFIG_QEMU=y
Post by: morgan20 on August 25, 2018, 11:35:22 AM
Hi there!

As per this (https://www.magiclantern.fm/forum/index.php?topic=991) instruction I followed the steps to compile ML. I succeed and then proceed with CONFIG_QEMU=y, but failed on that.

I have successfully compiled ML for 550d and Qemu as the instruction said and then tried to compile ML again, but compilation aborted with the following reason:

[ AR       ]   dietlibc.a
[ AR       ]   newlib-libc.a
[ LD       ]   magiclantern
boot-hack.o: In function `my_init_task':
boot-hack.c:(.text+0x2dc): undefined reference to `ml_gui_main_task'
make[1]: *** [../../src/Makefile.src:197: magiclantern] Error 1
make[1]: Leaving directory '/home/morgan/magic-lantern/platform/50D.109'


I'm using Fedora 28 and gcc-arm-none-eabi-7-2018-q2-update.

Could anyone please give some hints on this error?

Thanks!
Title: Re: Unable to compile ML with CONFIG_QEMU=y
Post by: a1ex on August 25, 2018, 11:48:27 AM
That's the old implementation of CONFIG_QEMU. Try it in the experimental branches (qemu, lua_fix etc).
Title: Re: Unable to compile ML with CONFIG_QEMU=y
Post by: morgan20 on August 25, 2018, 01:39:29 PM
Thank you kindly for your response.

I tried the qemu branch, but it seem to have an issue with 7D. Now I'm trying out the digic6_dumper branch because anyway I'm going to play around with DIGIC7 and 6D2 and this branch seem to have some stuff related to DIGIC7 cameras.
Title: Re: Unable to compile ML with CONFIG_QEMU=y
Post by: a1ex on August 25, 2018, 01:44:20 PM
7D is quite difficult to emulate, because of the dual processor configuration. Will revisit it at some point, alongside with 7D2, 5DS and 5D4, but for now it's on the back burner. Most of the QEMU tests are failing currently on these cameras; only the very basics are working (bootloader and a tiny part of the startup process).

The digic6_dumper branch is fine for QEMU experiments, too.