Linux & compiling code

Started by deletedAcc.0021, May 06, 2013, 05:45:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

deletedAcc.0021

I've been trying to compile on a windows system for 3 or 4 days now and just can't seem to get the settings right.  I'm pretty sure its a path thing, but I've tried every conceivable combination and just can't get it to work.

Just wondering if I partition the drive and install a Linux OS if I'd have better luck.


1%

Rather than repartition your hard drive you can run linux in a VM. There is even a set up vmware floating around here somewhere.

scrax

I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

RenatoPhoto

Quote from: dslrrookie on May 06, 2013, 05:45:06 PM
I've been trying to compile on a windows system for 3 or 4 days now and just can't seem to get the settings right.  I'm pretty sure its a path thing, but I've tried every conceivable combination and just can't get it to work.

Just wondering if I partition the drive and install a Linux OS if I'd have better luck.

Have you posted any of the errors and settings?  I installed it on windows 32 bit with PELs instructions.  I only had problems putting the right path on Makefile.user.
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

deletedAcc.0021

here's the error I'm getting:

C:\MLnew\magic-lantern>make 600d
process_begin: CreateProcess(NULL, date +%Y-%m-%d, ...) failed.
/usr/bin/sh: date: command not found
process_begin: CreateProcess(NULL, pwd, ...) failed.
make -C /platform/600D.102
make: *** /platform/600D.102: No such file or directory.  Stop.
make: *** [600d] Error 2

I've tried every conceivable path in makefile.user, it just doesn't seem to be finding the directory.

tried:
C:/ path
c:/ path
/path
~path
../path
../../path
../../../path


ps .. I've looked at nanomad's VM, but not sure how to go about setting it up.

RenatoPhoto

ok, this looks different than what if have used.  In my case I used PELs instructions here:
http://www.magiclantern.fm/forum/index.php?topic=2899.msg14021#msg14021

This requires that you install:
1. cygwin
2. yagarto
3. mercurial
4. Clone the magic lantern into your computer
5. Setup your Makefile.user

So when I see: C:\MLnew\magic-lantern>make 600d

It seems that you are not working inside cygwin which would be the first program to get working.

Let me know if my assumptions are wrong.

http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

deletedAcc.0021

I used cygwin following pelican's instructions with no luck.

Then tried TortoiseHG, which is where the error I posted came from.

http://tortoisehg.bitbucket.org/


btw:  I sucessfully installed all the programs in Pelican's tutorial, and cloned ML.  Followed your setup for the Makefile.user ... no luck

RenatoPhoto

I only use cygwin and do not know tortoisehg
If you want I can help with the cygwin installation..
Lets check the installation path.
Post the full path to

cygwin  in my case is C:\cygwin
magic-lantern folder is C:\cygwin\home\PH\magic-lantern
path to compiler is C:\cygwin\home\PH\arm-toolchain473  (or 472 or 462)

http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

1%

hg update after hg clone.... otherwise it won't download things like the platform folder, etc.

deletedAcc.0021

@ 1% ... did that.  Even double checked the files to make sure the directory structure was intact.

I'm going to give it another try on a 32 bit OS, and see if that makes a difference.

deletedAcc.0021

@ RenatoPhoto

I'll give it a shot.


deletedAcc.0021

Ok, after three days, I finally got it to compile.  It was a path issue in Makefile.user.

Here is the output:  (created the autoexec.bin file @ 449KB)  does everything look right?

TerryVideo@TerryVideo-PC ~/magic-lantern
$ make 600D
make -C /home/TerryVideo/magic-lantern/platform/600D.102
make[1]: Entering directory `/home/TerryVideo/magic-lantern/platform/600D.102'
[ CPP      ]   magiclantern.lds
[ AS       ]   entry.o
[ CC       ]   boot-hack.o
../../src/boot-hack.c:54:16: warning: '_reloc' defined but not used [-Wunused-variable]
[ AS       ]   stubs.o
[ VERSION  ]   ../../platform/600D.102/version.c
[ CC       ]   version.o
[ CC       ]   exmem.o
[ CC       ]   bmp.o
[ CC       ]   font-dyn.o
[ CC       ]   config.o
[ CC       ]   menu.o
[ CC       ]   debug.o
[ CC       ]   stdio.o
[ CC       ]   audio-lapis.o
[ CC       ]   bitrate.o
[ CC       ]   tweaks.o
[ CC       ]   lens.o
[ CC       ]   property.o
[ CC       ]   propvalues.o
[ CC       ]   gui.o
[ CC       ]   gui-common.o
[ CC       ]   misc.o
[ CC       ]   picstyle.o
[ CC       ]   cfn.o
[ CC       ]   zebra.o
[ CC       ]   shoot.o
[ CC       ]   chdk-gui_draw.o
[ CC       ]   movtweaks.o
[ CC       ]   menuhelp.o
[ MENU IDX ]   menuindexentries.h
No menuindex.txt not running "python menuindex.py"
[ CC       ]   menuindex.o
[ CC       ]   af_patterns.o
[ CC       ]   focus.o
[ CC       ]   notify_box.o
[ CC       ]   bootflags.o
[ CC       ]   dialog_test.o
[ CC       ]   vram.o
[ CC       ]   morse.o
[ CC       ]   liveview.o
[ CC       ]   reloc.o
[ CC       ]   aj_port.o
[ CC       ]   fps-engio.o
[ CC       ]   hdr.o
[ CC       ]   lv-img-engio.o
[ CC       ]   state-object.o
[ CC       ]   tasks.o
[ CC       ]   tskmon.o
[ CC       ]   beep.o
[ CC       ]   vsync-lite.o
[ CC       ]   ph_info_disp.o
[ CC       ]   flexinfo.o
[ CC       ]   ico.o
[ CC       ]   console.o
[ CC       ]   pico.o
../../picoc/pico.c: In function 'PlatformExit':
../../picoc/platform_ml.c:62:1: warning: 'noreturn' function does return [enabled by default]
[ CC       ]   picoc.o
[ CC       ]   chdk-gui_script.o
[ AR       ]   strrchr.o
[ AR       ]   dietlibc.a
[ AR       ]   lib_a-setjmp.o
[ AR       ]   newlib-libc.a
[ LD       ]   magiclantern
[ OBJCOPY  ]   magiclantern.bin
[ STAT     ]   magiclantern.bin
magiclantern.bin: 458456 bytes
[ SYMBOLS  ]   magiclantern.sym
[ CC       ]   reboot.o
[ LD       ]   autoexec

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  EXIDX          0x06fef8 0x00cefef8 0x00cefef8 0x000e0 0x000e0 R   0x4
  LOAD           0x000100 0x00c80100 0x00c80100 0x6fed8 0x7ca91 RWE 0x100
[ OBJCOPY  ]   autoexec.bin
[ STAT     ]   autoexec.bin
autoexec.bin: 458944 bytes
make[1]: Leaving directory `/home/TerryVideo/magic-lantern/platform/600D.102'

TerryVideo@TerryVideo-PC ~/magic-lantern

RenatoPhoto

Hurray!  Looks like it compiled.  I suppose the only way to know if to put in the card and try it!
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

deletedAcc.0021

Quote from: RenatoPhoto on May 09, 2013, 01:27:28 AM
Hurray!  Looks like it compiled.  I suppose the only way to know if to put in the card and try it!

Yep, 1% looked it over and gave me the thumbs up!

Running it now ... works great.