Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: John Kesl on August 20, 2013, 03:34:23 PM

Title: Compile Errors for latest Unified Clone 08/20/13
Post by: John Kesl on August 20, 2013, 03:34:23 PM
Hello,
I am getting this error with the latest Unified whilst I try to compile.

Johns-Mac-Pro:magic-lantern johnkesl$ make 7D
make -C  /Users/johnkesl/Development_ML/magic-lantern/platform/7D.203
[ VERSION  ]   ../../platform/7D.203/version.bin
make[1]: truncate: Command not found
make[1]: *** [../../platform/7D.203/version.bin] Error 127
make: *** [7D] Error 2

I have tried compiling ML from Unified today, with a freshly cloned rep. And received the error.
I tried compiling ML from an older Unified clone 08/11/13 and didn't receive the error. I have checked my make file and it looks in order was wondering where the truncate command comes from and also I see the version.bin which I've not seen before.
What am I missing?
please help.
Thank you
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: 1% on August 20, 2013, 04:14:24 PM
apparently the truncate command. try to type truncate in terminal.

http://linux.die.net/man/1/truncate
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: John Kesl on August 20, 2013, 05:25:20 PM
i typed man truncate in OSX terminal and get the proper man for BSD system calls ftruncate and truncate but I am still getting the compiler error, I just don't know where to start looking for the source of the error due to lack of some kind of other indicator.
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: Francis on August 20, 2013, 06:24:14 PM
I had that error as well a few months back. I installed via MacPorts to get that command ('port install truncate'). I also had to edit makefile.src to remove the following option flag, I think it was 'truncate -r ....' which I replaced with 'truncate'

I've had a few other stumblings compiling on a mac. Let me know if you run into anything else.
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: John Kesl on August 20, 2013, 08:46:41 PM
Quote from: Francis on August 20, 2013, 06:24:14 PM
I had that error as well a few months back. I installed via MacPorts to get that command ('port install truncate'). I also had to edit makefile.src to remove the following option flag, I think it was 'truncate -r ....' which I replaced with 'truncate'

I've had a few other stumblings compiling on a mac. Let me know if you run into anything else.

Yup, yup, yup, I see there is some new stuff in the makefile.src ( I forgot about that one.) There's a few more instances of truncate there then there used to be. I just updated my ports and sudo port install truncate also helped ( as I have truncate now). Also, sudo port install montage for make docq problem and all should be good.
thank you.
I was also wondering about build_fir7.py which should be in the a dumper directory, I just am not understanding which Dump, is it an IDA dump of canon firmware or is it a dump via firmware from my 7D?

JK

Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: nanomad on August 21, 2013, 10:59:25 AM
You can't build a fir anyway since the signing tools are the only "undisclosed" thing of ML.
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: John Kesl on August 21, 2013, 11:41:52 PM
Quote from: nanomad on August 21, 2013, 10:59:25 AM
You can't build a fir anyway since the signing tools are the only "undisclosed" thing of ML.

Aahha, so that's the Builder_Dir. ?
Gotcha. Thank you. i've been trying to figure this thing out. All I want to compile is an autoboot 7D alpha 2 with the video hacks active. The Raw_rec is great and all but from a production stand point the variable GOP and Bitrate is some of the trully most usefull to me. I know and see the modulariztion of ML and understand the beauty, I just don't have the chops to write my own Video_Hack.mo yet. Thank you for your input nanomad. (nice new website design, BTW)
Title: Re: Compile Errors for latest Unified Clone 08/20/13
Post by: bischofftep on April 10, 2014, 08:35:19 PM
So... if one were to want to work on the 7D_MASTER code, which appears to require a signed firmware, one is out of luck?