Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: Marsu42 on August 31, 2013, 05:09:08 PM

Title: [SOLVED] OldAPI module error even though I recompiled?
Post by: Marsu42 on August 31, 2013, 05:09:08 PM
The file_man module and one of mine show the OldAPI warning with the latest trunk and won't work, strangely the other bundled modules work, even yet another one of mine.

I read that "just recompiling" should bring up the modules up to the new version (http://www.magiclantern.fm/forum/index.php?topic=7503.msg71712#msg71712), but obviously this isn't it - am I missing something here?

EDIT: I solved it myself, though "make clean" wasn't enough but I had to clean up some leftover files from the module directories manually.
Title: Re: [SOLVED] OldAPI module error even though I recompiled?
Post by: nanomad on August 31, 2013, 07:31:18 PM
Which files ? The Makefile needs to be fixed
Title: Re: [SOLVED] OldAPI module error even though I recompiled?
Post by: Marsu42 on August 31, 2013, 08:40:11 PM
Which files ? The Makefile needs to be fixed

As I just discovered the problem was that "make clean" in the main directory doesn't clean up the modules subdirs, you have to run "make clean" there, too :-\

The ml build system needs a better integration of modules & core, imho just like "make" builds all camera targets unless told otherwise by default all modules should be build (except maybe a couple of blacklisted dev modules, and if one module doesn't compile, it should just be ignored). Last not least, everything should be done from the topdir so you don't have to edit or run files in the modules subdir at all.