which gcc
xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg
QuoteRosies-Air:~ Fort$ ls -la /usr
total 8
drwxr-xr-x@ 12 root wheel 408 Oct 12 11:45 .
drwxr-xr-x 31 root wheel 1122 Sep 30 21:56 ..
drwxr-xr-x 5 root wheel 170 Aug 22 18:51 X11
lrwxr-xr-x 1 root wheel 3 Sep 30 21:22 X11R6 -> X11
drwxr-xr-x 3 root wheel 102 Aug 26 19:17 adic
drwxr-xr-x 1061 root wheel 36074 Sep 30 21:28 bin
drwxr-xr-x 258 root wheel 8772 Oct 12 11:45 include
drwxr-xr-x 285 root wheel 9690 Oct 12 11:45 lib
drwxr-xr-x 183 root wheel 6222 Sep 30 21:22 libexec
drwxr-xr-x 243 root wheel 8262 Sep 30 21:22 sbin
drwxr-xr-x 46 root wheel 1564 Oct 12 11:45 share
drwxr-xr-x 4 root wheel 136 Sep 17 00:03 standalone
sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
sudo mkdir /usr/local && sudo chflags norestricted /usr/local && sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
Quotedrwxr-xr-x 2 Fort admin 68 Oct 12 12:52 local
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python wget mercurial
pip install docutils
pip2 install docutils
pip3 install docutils
brew install gcc@5
cd ~ && wget -c https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2 && rm gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2
cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
hg clone https://bitbucket.org/hudson/magic-lantern
cd magic-lantern
hg update unified
#
# Host compiler settings
#
HOST_CC=$(shell which gcc)
HOST_LD=$(shell which ld)
HOST_AR=$(shell which ar)
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
ML_MODULES_DYNAMIC += bulb_nd
cd ~/magic-lantern/platform/EOSM.202/
make clean && make zip
./cr2hdr
make raw2dng
brew install mingw-w64
Quotemake cr2hdr.exe
dot_clean -m /Volumes/EOS_DIGITAL
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
ln -s /usr/bin/python /usr/bin/python2
wget https://bootstrap.pypa.io/get-pip.py
sudo -H python get-pip.py
sudo -H pip install docutils
sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
rm get-pip.py
curl https://bitbucket.org/Dannephoto/compiler/raw/default/Compiler.app/Contents/mac_ml.sh > mac_ml.sh
chmod +x mac_ml.sh
./mac_ml.sh
sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
usr/local/bin
and suddenly I can see files in usr/bin
brew tap homebrew/dupes; brew install gcc --use-llvm && for f in /usr/local/bin/*-5; do mv "$f" "${f/-5/}"; done
override r-xr-xr-x Fort/admin for /usr/local/bin/gfortran? (y/n [n])
gmp4 | 4.2 minutes |
mpfr2 | 101 seconds |
libmpc08 | 47 seconds |
isl011 | 34 seconds |
cloog01820 seconds | 20 seconds |
gcc49 | 264.7 minutes |
isl012 | 39 seconds |
binutils-mingw32 | 2.2 minutes |
mingw-headers32 | 17 seconds |
gcc-mingw32 | 6.7 minutes |
runtime-mingw32 | 61.7 minutes |
gcc-cross-mingw32 | 393.3 minutes |
Quote from: dfort on October 15, 2015, 07:45:35 PM
Maybe the 10.11 update addressed that issue? I'm having no problems compiling those command line tools and I just checked cr2hdr and it seems to be working properly.
$ make -C modules/dual_iso/ cr2hdr
Updated HGVERSION
[ README ] module_strings.h
[ gcc ] cr2hdr
clang: error: unknown argument: '-mno-ms-bitfields'
make: *** [cr2hdr] Error 1
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
Quote from: dmilligan on October 18, 2015, 07:59:06 PM
Perhaps you though you were compiling with clang when in fact you were using gcc?
hg clone -r unified https://bitbucket.org/hudson/magic-lantern
cd magic-lantern/platform/
Rosies-Air:platform Fort$ ls
1100D.105 7D_MASTER.203
500D.111 EOSM.202
50D.109 Makefile
550D.109 Makefile.platform
5D2.212 Makefile.platform.base
5D3.113 Makefile.platform.extras
600D.102 Makefile.platform.map
60D.111 README-unmaintained.txt
650D.104 all
6D.116 firmsum.py
700D.114 unmaintained
7D.203
hg update 5D3-123
abort: uncommitted changes
(commit or update --clean to discard changes)
Rosies-Air:platform Fort$ hg update --clean 5D3-123
168 files updated, 0 files merged, 53 files removed, 0 files unresolved
Rosies-Air:platform Fort$ ls
1100D.105 7D.203
500D.111 7D_MASTER.203
50D.109 EOSM.202
550D.109 Makefile
5D2.212 Makefile.platform
5D3.113 Makefile.platform.base
5D3.123 Makefile.platform.extras
600D.102 Makefile.platform.map
60D.111 README-unmaintained.txt
650D.104 all
6D.113 firmsum.py
700D.113 unmaintained
make clean && make zip
hg clone -r EOSM__working https://bitbucket.org/daniel_fort/magic-lantern
hg pull && hg update 5D3-123
cd magic-lantern/platform/5D3.123/
make clean && make zip
Seans-Mac-mini-6:~ SMJ$ cd magic-lantern/platform/5D3.123/
Seans-Mac-mini-6:5D3.123 SMJ$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_123.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/5D3.123/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/5D3.123/stubs.o
[ VERSION ] ../../platform/5D3.123/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
../../src/zebra.c:1134:12: warning: 'zebra_digic_dirty' defined but not used [-Wunused-variable]
static int zebra_digic_dirty = 0;
^
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] ml-cbr.o
[ CC ] raw.o
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
[ CC ] console.o
[ CC ] tcc-glue.o
make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] misc.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ SYMBOLS ] magiclantern.sym
[ CP ] 5D3_123.sym
[ MKDIR ] install
[ CP ] install
[ VERSION ] ../../platform/5D3.123/version.bin
[ OBJCOPY ] magiclantern.bin
[ STAT ] magiclantern.bin
magiclantern.bin: 471120 bytes
[ CC ] reboot.o
[ LD ] autoexec
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x073148 0x000dc548 0x000dc548 0x00008 0x00008 R 0x4
LOAD 0x000100 0x00069500 0x00069500 0x73050 0x870f4 RWE 0x100
[ OBJCOPY ] autoexec.bin
[ STAT ] autoexec.bin
autoexec.bin: 471760 bytes
cp autoexec.bin /Users/SMJ/magic-lantern/platform/5D3.123/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/fonts
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/settings
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/data
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/cropmks
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/scripts
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/logs
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/doc
cp ../../data/fonts/*.rbf /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/fonts/
cp ../../data/vram/*.lut /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/data/
cp ../../data/cropmks/*.bmp /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/cropmks/
cp ../../scripts/*.lua /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/scripts/
cp ../../scripts/*.c /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/scripts/
cp ../../scripts/*.py /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/scripts/
make -C ../../modules
Building module raw_rec...
Building module file_man...
Building module pic_view...
Building module ettr...
Building module dual_iso...
Updated HGVERSION
[ README ] module_strings.h
[ CC ] dual_iso.o
[ MODULE ] dual_iso.mo
[ STRIP ] dual_iso.mo
[ EXPORTS ] dual_iso.sym
0000136c dual_iso_calc_dr_improvement
000013c4 dual_iso_set_enabled
000013e4 dual_iso_is_enabled
000013f4 dual_iso_is_active
00001414 dual_iso_get_dr_improvement
00001594 dual_iso_get_recovery_iso
000015b4 dual_iso_set_recovery_iso
[ DEPENDS ] dual_iso.dep
Will load on:
5D3.123
Not checked (compile ML for these cameras first):
1100D, 500D, 50D, 550D, 5D2, 5D3.113, 600D, 60D, 650D, 6D, 700D, 7D, EOSM
[ gcc ] cr2hdr
clang: error: unknown argument: '-mno-ms-bitfields'
make[4]: *** [cr2hdr] Error 1
********************************************************
WARNING: module dual_iso failed to build, deleting
********************************************************
[ RM ] dual_iso.o dual_iso.mo dual_iso.sym dual_iso.dep module_strings.h *.o *.d *.dep *.sym hgstamp
[ RM ] cr2hdr cr2hdr.exe
Building module autoexpo...
Building module arkanoid...
Building module silent...
Building module dot_tune...
Building module deflick...
Building module mlv_play...
Building module mlv_rec...
Building module mlv_snd...
make -C ../../modules install
Building module raw_rec...
Building module file_man...
Building module pic_view...
Building module ettr...
Building module dual_iso...
Updated HGVERSION
[ README ] module_strings.h
[ CC ] dual_iso.o
[ MODULE ] dual_iso.mo
[ STRIP ] dual_iso.mo
[ EXPORTS ] dual_iso.sym
0000136c dual_iso_calc_dr_improvement
000013c4 dual_iso_set_enabled
000013e4 dual_iso_is_enabled
000013f4 dual_iso_is_active
00001414 dual_iso_get_dr_improvement
00001594 dual_iso_get_recovery_iso
000015b4 dual_iso_set_recovery_iso
[ DEPENDS ] dual_iso.dep
Will load on:
5D3.123
Not checked (compile ML for these cameras first):
1100D, 500D, 50D, 550D, 5D2, 5D3.113, 600D, 60D, 650D, 6D, 700D, 7D, EOSM
[ gcc ] cr2hdr
clang: error: unknown argument: '-mno-ms-bitfields'
make[4]: *** [cr2hdr] Error 1
********************************************************
WARNING: module dual_iso failed to build, deleting
********************************************************
[ RM ] dual_iso.o dual_iso.mo dual_iso.sym dual_iso.dep module_strings.h *.o *.d *.dep *.sym hgstamp
[ RM ] cr2hdr cr2hdr.exe
Building module autoexpo...
Building module arkanoid...
Building module silent...
Building module dot_tune...
Building module deflick...
Building module mlv_play...
Building module mlv_rec...
Building module mlv_snd...
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/modules || echo "no problem"
cp ../modules/*/*.mo /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/modules/ || echo "no problem"
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/doc
cp -v ../../doc/cam/* /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/doc
cp: ../../doc/cam/*: No such file or directory
make: [installdoc] Error 1 (ignored)
cp ../../doc/README.user /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/README
cp ../../doc/INSTALL.pdf /Users/SMJ/magic-lantern/platform/5D3.123/zip || echo "warning Unable to copy INSTALL.pdf"
cp: ../../doc/INSTALL.pdf: No such file or directory
warning Unable to copy INSTALL.pdf
cp ../../doc/UserGuide.pdf /Users/SMJ/magic-lantern/platform/5D3.123/zip || echo "warning Unable to copy UserGuide.pdf"
cp: ../../doc/UserGuide.pdf: No such file or directory
warning Unable to copy UserGuide.pdf
cp ../../src/logo.bmp /Users/SMJ/magic-lantern/platform/5D3.123/zip/ML/docs || echo "warning Unable to copy logo.bmp"
[ LD ] autoexec-fir
[ OBJCOPY ] autoexec-fir.bin
[ STAT ] autoexec-fir.bin
autoexec-fir.bin: 471760 bytes
python ../../../dumper/build_fir.py -r ../../../dumper/5D300123.FIR autoexec-fir.bin ML5D3123.FIR
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '../../../dumper/build_fir.py': [Errno 2] No such file or directory
make: [build_fir] Error 2 (ignored)
[ RM ] magiclantern-Nightly.2015Oct27.5D3123.zip
chmod -x /Users/SMJ/magic-lantern/platform/5D3.123/zip/autoexec.bin
cd /Users/SMJ/magic-lantern/platform/5D3.123/zip; zip -z ../magiclantern-Nightly.2015Oct27.5D3123.zip < \
../../../src/zip.txt -r .\
@printf "[ RM dir ] %s\n" " /Users/SMJ/magic-lantern/platform/5D3.123/zip/";
zip warning: name not matched: @printf
zip warning: name not matched: [ RM dir ] %s\n
zip warning: name not matched: /Users/SMJ/magic-lantern/platform/5D3.123/zip/
adding: autoexec.bin (deflated 49%)
adding: ML/ (stored 0%)
adding: ML/cropmks/ (stored 0%)
adding: ML/cropmks/CineSco2.bmp (deflated 87%)
adding: ML/cropmks/CrssMtr2.bmp (deflated 94%)
adding: ML/cropmks/Passport.bmp (deflated 72%)
adding: ML/cropmks/PhiPhoto.bmp (deflated 62%)
adding: ML/cropmks/PhiVideo.bmp (deflated 68%)
adding: ML/data/ (stored 0%)
adding: ML/data/apsc8p.lut (deflated 17%)
adding: ML/data/apsc8r.lut (deflated 7%)
adding: ML/data/ff8p.lut (deflated 17%)
adding: ML/data/ff8r.lut (deflated 11%)
adding: ML/doc/ (stored 0%)
adding: ML/docs (deflated 94%)
adding: ML/fonts/ (stored 0%)
adding: ML/fonts/arghlf22.rbf (deflated 90%)
adding: ML/fonts/argnor23.rbf (deflated 84%)
adding: ML/fonts/argnor28.rbf (deflated 84%)
adding: ML/fonts/argnor32.rbf (deflated 86%)
adding: ML/fonts/term12.rbf (deflated 64%)
adding: ML/fonts/term20.rbf (deflated 81%)
adding: ML/logs/ (stored 0%)
adding: ML/modules/ (stored 0%)
adding: ML/modules/5D3_123.sym (deflated 65%)
adding: ML/modules/arkanoid.mo (deflated 51%)
adding: ML/modules/autoexpo.mo (deflated 58%)
adding: ML/modules/deflick.mo (deflated 53%)
adding: ML/modules/dot_tune.mo (deflated 51%)
adding: ML/modules/ettr.mo (deflated 56%)
adding: ML/modules/file_man.mo (deflated 52%)
adding: ML/modules/mlv_play.mo (deflated 62%)
adding: ML/modules/mlv_rec.mo (deflated 53%)
adding: ML/modules/mlv_snd.mo (deflated 56%)
adding: ML/modules/pic_view.mo (deflated 48%)
adding: ML/modules/raw_rec.mo (deflated 52%)
adding: ML/modules/silent.mo (deflated 52%)
adding: ML/README (deflated 61%)
adding: ML/scripts/ (stored 0%)
adding: ML/scripts/brack.c (deflated 52%)
adding: ML/scripts/clock.c (deflated 60%)
adding: ML/scripts/dump.lua (deflated 11%)
adding: ML/scripts/dumpcfg.lua (deflated 28%)
adding: ML/scripts/hello.c (deflated 27%)
adding: ML/scripts/hello.py (deflated 42%)
adding: ML/scripts/img.c (deflated 53%)
adding: ML/scripts/keys.c (deflated 55%)
adding: ML/scripts/print.lua (deflated 62%)
adding: ML/scripts/sokoban.c (deflated 73%)
adding: ML/scripts/test.c (deflated 69%)
adding: ML/scripts/wb_shoot.lua (deflated 47%)
adding: ML/settings/ (stored 0%)
adding: ML5D3123.FIR (deflated 0%)
enter new zip file comment (end with .):
Seans-Mac-mini-6:5D3.123 SMJ$
Quote from: dmilligan on October 18, 2015, 07:59:06 PM
I just tried again compiling with clang and as expected I got this:Code Select$ make -C modules/dual_iso/ cr2hdr
Updated HGVERSION
[ README ] module_strings.h
[ gcc ] cr2hdr
clang: error: unknown argument: '-mno-ms-bitfields'
make: *** [cr2hdr] Error 1Code Select
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
Perhaps you though you were compiling with clang when in fact you were using gcc?
brew tap homebrew/dupes; brew install gcc --use-llvm && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
Seans-Mac-mini-6:~ DeafEyeJedi$ cat <<'EOF' > mac_ml.sh
> #!/bin/sh
> set -e
>
> # mac_ml.sh
> #
> # Script to almost automatically install
> # and configure a Magic Lantern development
> # environment on a Macintosh.
> #
> # Reference:
> # http://magiclantern.fm/forum/index.php?topic=16012.0
> #
> # Daniel Fort (dfort) - 2015-10-15
> # Thanks to Danne for his input
>
> if ! test -d /usr/local; then
> echo "/usr/local directory not found."
> echo "Follow the steps at the beginning of"
> echo "tutorial to create /usr/local and"
> echo "then re-run this script."
> exit 1
> fi
>
> echo "/usr/local found -- "
> echo "continuing with installation."
>
> cd ~
> sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
> sudo mkdir -p /usr/local/ && sudo chflags norestricted /usr/local/ && sudo chown $(whoami):admin /usr/local/ && echo sudo chown -R $(whoami):admin /usr/local/
> xcode-select --install
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
> brew install python wget mercurial
> pip install docutils
> brew tap homebrew/dupes; brew install gcc --use-llvm && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
> cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
> for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
> hg clone -r unified https://bitbucket.org/hudson/magic-lantern
> exit 0
> EOF
Seans-Mac-mini-6:~ DeafEyeJedi$ bash mac_ml.sh && rm mac_ml.sh
/usr/local found --
continuing with installation.
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
sudo chown -R DeafEyeJedi:admin /usr/local/
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Seans-Mac-mini-6:~ DeafEyeJedi$
Quote from: Danne on October 28, 2015, 06:19:08 PM
The script is mostly dforts work. I merely lined up what is already in the first post. Get back on how it worked :)
Last login: Wed Oct 28 10:16:24 on ttys000
Seans-Mac-mini-6:~ DeafEyeJedi$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Seans-Mac-mini-6:~ DeafEyeJedi$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
Password:
Sorry, try again.
Password:
Seans-Mac-mini-6:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Seans-Mac-mini-6:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Warning: This script will remove:
/usr/local/.git/
/usr/local/.gitignore
/usr/local/.yardopts
/usr/local/CODEOFCONDUCT.md
/usr/local/CONTRIBUTING.md
/usr/local/Cellar/
/usr/local/LICENSE.txt
/usr/local/Library/
/usr/local/README.md
/usr/local/SUPPORTERS.md
/usr/local/bin/brew
/usr/local/share/doc/homebrew/
/usr/local/share/man/man1/brew.1
Are you sure you want to uninstall Homebrew? [y/N] y
==> Removing Homebrew installation...
==> Removing empty directories...
==> Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/bin/
/usr/local/cuda/
/usr/local/etc/
/usr/local/foundry/
/usr/local/include/
/usr/local/lib/
/usr/local/share/
You may consider to remove them by yourself.
You may want to restore /usr/local's original permissions
sudo chmod 0755 /usr/local
sudo chgrp wheel /usr/local
Seans-Mac-mini-6:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown DeafEyeJedi /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 3800, done.
remote: Compressing objects: 100% (3642/3642), done.
remote: Total 3800 (delta 40), reused 506 (delta 22), pack-reused 0
Receiving objects: 100% (3800/3800), 3.24 MiB | 4.98 MiB/s, done.
Resolving deltas: 100% (40/40), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
Checking out files: 100% (3804/3804), done.
HEAD is now at a3e97b0 ldc: update 0.16.1 bottle.
==> Installation successful!
==> Next steps
Run `brew help` to get started
Seans-Mac-mini-6:~ DeafEyeJedi$ brew install python wget mercurial
==> Installing dependencies for python: readline, sqlite, gdbm, openssl
==> Installing python dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-6.3.8.yosemite.bot
######################################################################## 100.0%
==> Pouring readline-6.3.8.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/readline/lib
CPPFLAGS: -I/usr/local/opt/readline/include
==> Summary
Last login: Wed Oct 28 11:12:10 on ttys000
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/5D3.123/
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_123.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/5D3.123/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/5D3.123/stubs.o
[ VERSION ] ../../platform/5D3.123/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
../../src/zebra.c:1133:12: warning: 'zebra_digic_dirty' defined but not used [-Wunused-variable]
static int zebra_digic_dirty = 0;
^
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] ml-cbr.o
[ CC ] raw.o
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
[ CC ] console.o
[ CC ] tcc-glue.o
make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] misc.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ SYMBOLS ] magiclantern.sym
[ CP ] 5D3_123.sym
[ MKDIR ] install
[ CP ] install
[ VERSION ] ../../platform/5D3.123/version.bin
make: truncate: No such file or directory
make: *** [../../platform/5D3.123/version.bin] Error 1
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$
Last login: Wed Oct 28 11:27:06 on ttys000
Seans-Mac-mini-6:~ DeafEyeJedi$ hg clone -r unified https://bitbucket.org/nikfreak/magic-lantern/
destination directory: magic-lantern
adding changesets
adding manifests
adding file changes
added 11300 changesets with 25057 changes to 2724 files
updating to branch unified
1569 files updated, 0 files merged, 0 files removed, 0 files unresolved
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/
Seans-Mac-mini-6:platform DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/
Seans-Mac-mini-6:magic-lantern DeafEyeJedi$ hg pull && hg update 5D3-123
pulling from https://bitbucket.org/nikfreak/magic-lantern/
searching for changes
adding changesets
adding manifests
adding file changes
added 1662 changesets with 3167 changes to 532 files (+21 heads)
(run 'hg heads' to see heads)
254 files updated, 0 files merged, 96 files removed, 0 files unresolved
Seans-Mac-mini-6:magic-lantern DeafEyeJedi$ cd magic-lantern/platform/5D3.123/
-bash: cd: magic-lantern/platform/5D3.123/: No such file or directory
Seans-Mac-mini-6:magic-lantern DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/5D3.123/
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_123.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/5D3.123/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.123/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/5D3.123/stubs.o
[ VERSION ] ../../platform/5D3.123/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ MENU IDX ] ../../src/menuindexentries.h
No menuindex.txt! The "Complete user guide" menu is empty!
Run make docq to update menuindex.txt.
/bin/sh: truncate: command not found
make: *** [../../src/menuindexentries.h] Error 127
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/EOSM.202/
Seans-Mac-mini-6:EOSM.202 DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/5D3.123/
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$ make clean
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_123.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM dir ] zip
[ RM ] *.zip
Seans-Mac-mini-6:5D3.123 DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/EOSM.202/
Seans-Mac-mini-6:EOSM.202 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] EOSM_202.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/EOSM.202/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/EOSM.202/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/EOSM.202/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/EOSM.202/stubs.o
[ VERSION ] ../../platform/EOSM.202/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate.o
In file included from ../../src/bitrate.c:5:0:
../../src/bitrate.c: In function 'time_indicator_show':
../../src/bitrate.c:397:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int fnts = FONT(FONT_SMALL, COLOR_WHITE, mvr_config.actual_qscale_maybe == -16 ? COLOR_RED : COLOR_BLACK);
^
../../src/bmp.h:174:13: note: in definition of macro 'FONT'
| ((bg) & 0xFF) << 8 \
^
../../src/bitrate.c:402:23: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
mvr_config.actual_qscale_maybe < 0 ? "-" : "+",
^
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ MENU IDX ] ../../src/menuindexentries.h
No menuindex.txt! The "Complete user guide" menu is empty!
Run make docq to update menuindex.txt.
/bin/sh: truncate: command not found
make: *** [../../src/menuindexentries.h] Error 127
Seans-Mac-mini-6:EOSM.202 DeafEyeJedi$
Quotemake: truncate: No such file or directory
brew install https://raw.githubusercontent.com/artw/homebrew/master/Library/Formula/truncate.rb
Last login: Thu Oct 29 00:41:13 on ttys000
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/EOSM.202/
Seans-Mac-mini-6:EOSM.202 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] EOSM_202.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk ../../build_tools/xor_chk.exe
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/EOSM.202/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/EOSM.202/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/EOSM.202/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/EOSM.202/stubs.o
[ VERSION ] ../../platform/EOSM.202/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate.o
In file included from ../../src/bitrate.c:5:0:
../../src/bitrate.c: In function 'time_indicator_show':
../../src/bitrate.c:400:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int fnts = FONT(FONT_SMALL, COLOR_WHITE, mvr_config.actual_qscale_maybe == -16 ? COLOR_RED : COLOR_BLACK);
^
../../src/bmp.h:174:13: note: in definition of macro 'FONT'
| ((bg) & 0xFF) << 8 \
^
../../src/bitrate.c:405:23: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
mvr_config.actual_qscale_maybe < 0 ? "-" : "+",
^
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
../../src/fps-engio.c:237:6: error: #error fixme: FPS_TIMER_B_MIN and FPS_TIMER_B_MIN are plain wrong
#error fixme: FPS_TIMER_B_MIN and FPS_TIMER_B_MIN are plain wrong
^
../../src/fps-engio.c:295:12: warning: 'fps_timer_b_method' defined but not used [-Wunused-variable]
static int fps_timer_b_method = 0;
^
make: *** [fps-engio.o] Error 1
Seans-Mac-mini-6:EOSM.202 DeafEyeJedi$
QuoteThe definition of insanity is doing the same thing and expecting different results.
../../src/fps-engio.c:237:6: error: #error fixme: FPS_TIMER_B_MIN and FPS_TIMER_B_MIN are plain wrong #error fixme: FPS_TIMER_B_MIN and FPS_TIMER_B_MIN are plain wrong
^
#elif defined(CONFIG_EOSM)
#define TG_FREQ_BASE 32000000
#define FPS_TIMER_A_MIN 520
#undef FPS_TIMER_B_MIN
#define FPS_TIMER_B_MIN MIN(fps_timer_b_orig, 1970)
#error fixme: FPS_TIMER_B_MIN and FPS_TIMER_B_MIN are plain wrong
hg clone -r EOSM__working https://bitbucket.org/daniel_fort/magic-lantern
hg pull && hg update 5D3-123
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/
Seans-Mac-mini-6:magic-lantern DeafEyeJedi$ hg pull && hg update 5D3-123
pulling from https://bitbucket.org/daniel_fort/magic-lantern
searching for changes
adding changesets
adding manifests
adding file changes
added 1523 changesets with 2869 changes to 642 files (+30 heads)
(run 'hg heads' to see heads)
170 files updated, 0 files merged, 53 files removed, 0 files unresolved
Seans-Mac-mini-6:magic-lantern DeafEyeJedi$ cd
Seans-Mac-mini-6:~ DeafEyeJedi$ cd magic-lantern/platform/5D3.113/
Seans-Mac-mini-6:5D3.113 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_123.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/SMJ/magic-lantern/platform/5D3.113/zip
[ RM dir ] /Users/SMJ/magic-lantern/platform/5D3.113/zip/
mkdir -p /Users/SMJ/magic-lantern/platform/5D3.113/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/5D3.123/stubs.o
[ VERSION ] ../../platform/5D3.123/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
../../src/zebra.c:1134:12: warning: 'zebra_digic_dirty' defined but not used [-Wunused-variable]
static int zebra_digic_dirty = 0;
^
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] ml-cbr.o
[ CC ] raw.o
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
[ CC ] console.o
[ CC ] tcc-glue.o
make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ SYMBOLS ] magiclantern.sym
[ CP ] 5D3_123.sym
[ MKDIR ] install
[ CP ] install
[ VERSION ] ../../platform/5D3.123/version.bin
make: truncate: No such file or directory
make: *** [../../platform/5D3.123/version.bin] Error 1
Seans-Mac-mini-6:5D3.113 DeafEyeJedi$
hg pull && hg update 5D3-123
Last login: Thu Oct 29 16:27:20 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
Password:
Apples-Macintosh-10:~ DeafEyeJedi$
[Restored Oct 29, 2015, 4:31:36 PM]
Last login: Thu Oct 29 16:31:36 on console
Restored session: Thu Oct 29 16:29:05 PDT 2015
Apples-Macintosh-10:~ DeafEyeJedi$
[Restored Oct 29, 2015, 4:35:02 PM]
Last login: Thu Oct 29 16:35:01 on console
Restored session: Thu Oct 29 16:32:12 PDT 2015
Apples-Macintosh-10:~ DeafEyeJedi$ sudo mkdir /usr/local && sudo chflags norestricted /usr/local && sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
Password:
mkdir: /usr/local: File exists
Apples-Macintosh-10:~ DeafEyeJedi$
[Restored Oct 29, 2015, 4:38:02 PM]
Last login: Thu Oct 29 16:38:00 on console
Restored session: Thu Oct 29 16:35:54 PDT 2015
Apples-Macintosh-10:~ DeafEyeJedi$
[Restored Oct 29, 2015, 4:40:10 PM]
Last login: Thu Oct 29 16:40:08 on console
Restored session: Thu Oct 29 16:38:14 PDT 2015
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
Apples-Macintosh-10:~ DeafEyeJedi$
Last login: Thu Oct 29 18:56:58 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
Password:
Apples-Macintosh-10:~ DeafEyeJedi$ sudo mkdir /usr/local && sudo chflags norestricted /usr/local && sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
mkdir: /usr/local: File exists
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
Apples-Macintosh-10:~ DeafEyeJedi$
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python wget mercurial
brew tap homebrew/dupes; brew install gcc --use-llvm && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
pip install docutils
Last login: Fri Oct 30 23:15:27 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Failed to locate Homebrew!
Apples-Macintosh-10:~ DeafEyeJedi$
Apples-Macintosh-10:~ DeafEyeJedi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Counting objects: 3803, done.
remote: Compressing objects: 100% (3645/3645), done.
remote: Total 3803 (delta 39), reused 513 (delta 22), pack-reused 0
Receiving objects: 100% (3803/3803), 3.25 MiB | 4.66 MiB/s, done.
Resolving deltas: 100% (39/39), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
HEAD is now at 5ddbedc emacs_requirement: set $EMACS
==> Installation successful!
==> Next steps
Run `brew help` to get started
Apples-Macintosh-10:~ DeafEyeJedi$
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
brew tap homebrew/dupes; brew install gcc --use-llvm --without-multilib && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
brew uninstall gcc
and then ran the Brew Install script that you suggested (Thanks again for that) and here's what I got so far even tho Terminal is still "rendering" for the longest I've ever seen (in fact it's still running and I see my disk drive space is being used) but not sure where is all of this going into... I don't see GCC in the Root as of yet...Last login: Sat Oct 31 09:50:10 on console
Apples-Macintosh-10:~ DeafEyeJedi$ brew uninstall gcc
Uninstalling /usr/local/Cellar/gcc/5.2.0... (1353 files, 248M)
Apples-Macintosh-10:~ DeafEyeJedi$ brew tap homebrew/dupes; brew install gcc --use-llvm --without-multilib && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
Warning: homebrew/dupes already tapped!
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
==> Downloading from http://gnu.mirror.vexxhost.com/gcc/gcc-5.2.0/gcc-5.2.0.tar.
######################################################################## 100.0%
==> Patching
patching file gcc/jit/Make-lang.in
patching file gcc/jit/jit-playback.c
Hunk #1 succeeded at 2459 with fuzz 2 (offset 43 lines).
==> ../configure --build=x86_64-apple-darwin15.0.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
Last login: Sat Oct 31 10:04:28 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ brew uninstall gcc
Error: No such keg: /usr/local/Cellar/gcc
Apples-Macintosh-10:~ DeafEyeJedi$
Quote from: DeafEyeJedi on October 31, 2015, 06:16:00 PM
Question -- Am I allowed to closed the Terminal window even while it's still "running" because I don't think this is right?
Last login: Sun Nov 1 10:04:35 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ brew tap homebrew/dupes; brew install gcc --use-llvm --without-multilib && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
Warning: homebrew/dupes already tapped!
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-5.2.0.tar.bz2
==> Patching
patching file gcc/jit/Make-lang.in
patching file gcc/jit/jit-playback.c
Hunk #1 succeeded at 2459 with fuzz 2 (offset 43 lines).
==> ../configure --build=x86_64-apple-darwin15.0.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
==> make install
/usr/local/Cellar/gcc/5.2.0: 1285 files, 215M, built in 24.6 minutes
Apples-Macintosh-10:~ DeafEyeJedi$ cd magic-lantern/platform/7D.203/
Apples-Macintosh-10:7D.203 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 7D_203.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk ../../build_tools/xor_chk.exe
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/appleuser/magic-lantern/platform/7D.203/zip
[ RM dir ] /Users/appleuser/magic-lantern/platform/7D.203/zip/
mkdir -p /Users/appleuser/magic-lantern/platform/7D.203/zip
[ CPP ] magiclantern.lds
/bin/sh: /Users/appleuser/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-gcc-4.8.3: No such file or directory
make: *** [magiclantern.lds] Error 1
Apples-Macintosh-10:7D.203 DeafEyeJedi$
/bin/sh: /Users/appleuser/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-gcc-4.8.3: No such file or directory
cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
which gcc
gcc --version
gcc (Homebrew gcc 5.2.0) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
Apples-Macintosh-10:~ DeafEyeJedi$ cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
--2015-11-02 08:08:30-- https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
Resolving launchpad.net... 91.189.89.222, 91.189.89.223
Connecting to launchpad.net|91.189.89.222|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://launchpadlibrarian.net/162333029/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 [following]
--2015-11-02 08:08:32-- https://launchpadlibrarian.net/162333029/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
Resolving launchpadlibrarian.net... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65325285 (62M) [application/x-tar]
Saving to: 'gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2'
gcc-arm-none-eabi-4_8-2013 100%[=========================================>] 62.30M 2.51MB/s in 51s
2015-11-02 08:09:25 (1.22 MB/s) - 'gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2' saved [65325285/65325285]
Apples-Macintosh-10:~ DeafEyeJedi$ which gcc
/usr/local/bin/gcc
Apples-Macintosh-10:~ DeafEyeJedi$ gcc --version
gcc (Homebrew gcc 5.2.0 --without-multilib) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
********************************************************
WARNING: module arkanoid failed to build, deleting
********************************************************
[ RM ] arkanoid.o arkanoid.mo arkanoid.sym arkanoid.dep module_strings.h *.o *.d *.dep *.sym hgstamp
********************************************************
WARNING: module silent failed to build, deleting
********************************************************
[ RM ] silent.o silent.mo silent.sym silent.dep module_strings.h *.o *.d *.dep *.sym hgstamp
********************************************************
WARNING: module mlv_play failed to build, deleting
********************************************************
[ RM ] mlv_play.o video.bmp.rsc mlv_play.mo mlv_play.sym mlv_play.dep module_strings.h *.o *.d *.dep *.sym hgstamp
rst2html: command not found.
which rst2html
pip install docutils
for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
Last login: Mon Nov 2 08:25:57 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ which rst2html
Apples-Macintosh-10:~ DeafEyeJedi$ pip install docutils
Requirement already satisfied (use --upgrade to upgrade): docutils in /usr/local/lib/python2.7/site-packages
Apples-Macintosh-10:~ DeafEyeJedi$ pip install docutils --upgrade
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(54, 'Connection reset by peer'))': /simple/docutils/
Requirement already up-to-date: docutils in /usr/local/lib/python2.7/site-packages
Apples-Macintosh-10:~ DeafEyeJedi$
Apples-Macintosh-10:~ DeafEyeJedi$ cd magic-lantern/platform/EOSM.202/
Apples-Macintosh-10:EOSM.202 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] EOSM_202.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk ../../build_tools/xor_chk.exe
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:79: remove /Users/appleuser/magic-lantern/platform/EOSM.202/zip
[ RM dir ] /Users/appleuser/magic-lantern/platform/EOSM.202/zip/
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/EOSM.202/stubs.o
[ VERSION ] ../../platform/EOSM.202/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate.o
In file included from ../../src/bitrate.c:5:0:
../../src/bitrate.c: In function 'time_indicator_show':
../../src/bitrate.c:400:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
int fnts = FONT(FONT_SMALL, COLOR_WHITE, mvr_config.actual_qscale_maybe == -16 ? COLOR_RED : COLOR_BLACK);
^
../../src/bmp.h:174:13: note: in definition of macro 'FONT'
| ((bg) & 0xFF) << 8 \
^
../../src/bitrate.c:405:23: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
mvr_config.actual_qscale_maybe < 0 ? "-" : "+",
^
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
../../src/fps-engio.c:294:12: warning: 'fps_timer_b_method' defined but not used [-Wunused-variable]
static int fps_timer_b_method = 0;
^
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
../../src/zebra.c:173:12: warning: 'transparent_overlay_hidden' defined but not used [-Wunused-variable]
static int transparent_overlay_hidden = 0;
^
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] ml-cbr.o
[ CC ] raw.o
../../src/raw.c: In function 'raw_update_params_work':
../../src/raw.c:539:10: warning: #warning FIXME: are these values correct for 720p and crop modes? [-Wcpp]
#warning FIXME: are these values correct for 720p and crop modes?
^
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
[ CC ] console.o
[ CC ] tcc-glue.o
make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ SYMBOLS ] magiclantern.sym
[ CP ] EOSM_202.sym
[ MKDIR ] install
[ CP ] install
[ VERSION ] ../../platform/EOSM.202/version.bin
[ OBJCOPY ] magiclantern.bin
[ STAT ] magiclantern.bin
magiclantern.bin: 441336 bytes
[ CC ] reboot.o
[ CC ] disp_direct.o
[ CC ] font_direct.o
[ CC ] footer.o
[ LD ] autoexec
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x06bcd0 0x00109dd0 0x00109dd0 0x00008 0x00008 R 0x4
LOAD 0x0000e0 0x0009e1e0 0x0009e1e0 0x6bbf8 0x7f20c RWE 0x100
[ XOR_CHK ] ../../build_tools/xor_chk
[ OBJCOPY ] autoexec.bin
[ OBJCOPY ] autoexec.bin
[ XOR_CHK ] autoexec.bin
cp autoexec.bin /Users/appleuser/magic-lantern/platform/EOSM.202/zip/
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/fonts
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/settings
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/data
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/cropmks
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/scripts
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/logs
mkdir -p /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/doc
cp ../../data/fonts/*.rbf /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/fonts/
cp ../../data/vram/*.lut /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/data/
cp ../../data/cropmks/*.bmp /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/cropmks/
cp ../../scripts/*.lua /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/scripts/
cp ../../scripts/*.c /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/scripts/
cp ../../scripts/*.py /Users/appleuser/magic-lantern/platform/EOSM.202/zip/ML/scripts/
make -C ../../modules
Building module raw_rec...
Updated HGVERSION
[ README ] module_strings.h
$//"README.rst | grep -v -E "^:([^:])+:.+$" | rst2html --no-xml-declaration | python ../html2text.py -b 700 | sed "s/
/bin/sh: rst2html: command not found
(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x100c72cf8>)
make[4]: *** [module_strings.h] Error 1
********************************************************
WARNING: module raw_rec failed to build, deleting
********************************************************
[ RM ] raw_rec.o raw_rec.mo raw_rec.sym raw_rec.dep module_strings.h *.o *.d *.dep *.sym hgstamp
[ RM ] raw2dng raw2dng.exe dng2raw dng2raw.exe
/bin/sh: rst2html: command not found
which rst2html
which rst2html.py
/usr/local/bin/rst2html.py
for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
brew tap homebrew/dupes; brew install gcc --use-llvm && for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}"; done
Warning: Tap homebrew/dupes already tapped.
Warning: gcc-5.3.0 already installed
mv: rename /usr/local/bin/*-5 to /usr/local/bin/*: No such file or directory
$ gcc --version
gcc (Homebrew gcc 5.2.0) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
make mlv_dump
[ HOST_CC ] mlv_dump.host.o
clang: error: unknown argument: '-mno-ms-bitfields'
make: *** [mlv_dump.host.o] Error 1
make cr2hdr
Updated HGVERSION
[ README ] module_strings.h
cat README.rst | grep -v -E "^:([^:])+:.+$" | rst2html --no-xml-declaration | py$//" ../html2text.py -b 700 | sed "s/
Traceback (most recent call last):
File "/opt/local/bin/rst2html", line 17, in <module>
from docutils.core import publish_cmdline, default_description
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/core.py", line 20, in <module>
from docutils import frontend, io, utils, readers, writers
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/frontend.py", line 41, in <module>
import docutils.utils
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
import docutils.io
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x10e4cd320>)
make: *** [module_strings.h] Error 1
make raw2dng
Makefile:27: warning: overriding commands for target `raw2dng.exe'
Makefile:22: warning: ignoring old commands for target `raw2dng.exe'
[ HOST_CC ] raw2dng
[ HOST_CC ] raw2dng
clang: error: unknown argument: '-mno-ms-bitfields'
make: *** [raw2dng] Error 1
HOST_CC = gcc5
gcc gcc-ar gcc-nm gcc-ranlib
HOST_CC = gcc5
make mlv_dump
[ HOST_CC ] mlv_dump.host.o
/bin/sh: gcc5: command not found
make: *** [mlv_dump.host.o] Error 127
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
[ HOST_CC ] mlv_dump.host.o
gcc-ar: Cannot find plugin 'liblto_plugin.so'
make: *** [mlv_dump.host.o] Error 1
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
[ HOST_CC ] mlv_dump.host.o
clang: error: unknown argument: '-mno-ms-bitfields'
make: *** [mlv_dump.host.o] Error 1
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
[ HOST_CC ] mlv_dump.host.o
gcc-nm: Cannot find plugin 'liblto_plugin.so'
make: *** [mlv_dump.host.o] Error 1
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
[ HOST_CC ] mlv_dump.host.o
gcc-ranlib: Cannot find plugin 'liblto_plugin.so'
make: *** [mlv_dump.host.o] Error 1
Daniels-MacBook-Pro:mlv_rec Daniel$
for f in /usr/local/bin/*-5; do mv -n "$f" "${f/-5/}";
/usr/local/bin/gcc --version
HOST_CC = gcc-5
$gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
$gcc-5 --version
gcc (Homebrew gcc 5.3.0) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
brew uninstall gcc
brew install gcc
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
gcc-5 --version
HOST=gcc-5
make mlv_dump
still it couldn,t find the correct gcc-5.echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
cat ~/.profile
# MacPorts Installer addition on 2015-10-02_at_10:36:46: adding an appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
mlv_rec Daniel$ export PATH="/usr/local/bin:$PATH" make mlv_dump
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
Daniels-MacBook-Pro:mlv_rec Daniel$ export PATH="/usr/local/bin:$PATH" make mlv_dump
Daniels-MacBook-Pro:mlv_rec Daniel$ make mlv_dump
[ HOST_CC ] mlv_dump.host.o
mlv_dump.c: In function 'chroma_smooth':
mlv_dump.c:946:31: warning: passing argument 1 of 'chroma_smooth_2x2' from incompatible pointer type [-Wincompatible-pointer-types]
chroma_smooth_2x2(aux, aux2, raw2ev, ev2raw);
cat ~/.profile
command or the export PATH="/usr/local/bin:$PATH"
that fixed the issue. Apples-Macintosh-10:~ DeafEyeJedi$ cd magic-lantern/platform/5D3.113/
Apples-Macintosh-10:5D3.113 DeafEyeJedi$ make clean && make zip
[ RM ] *.o *.d autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_113.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk ../../build_tools/xor_chk.exe
[ RM dir ] zip
[ RM ] *.zip
../../Makefile.inc:80: remove /Users/appleuser/magic-lantern/platform/5D3.113/zip
[ RM dir ] /Users/appleuser/magic-lantern/platform/5D3.113/zip/
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ AS ] ../../platform/5D3.113/stubs.o
[ VERSION ] ../../platform/5D3.113/version.c
[ CC ] version.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ CC ] menuindex.o
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] ml-cbr.o
[ CC ] raw.o
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
[ CC ] console.o
[ CC ] tcc-glue.o
make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ SYMBOLS ] magiclantern.sym
[ CP ] 5D3_113.sym
[ MKDIR ] install
[ CP ] install
[ VERSION ] ../../platform/5D3.113/version.bin
[ OBJCOPY ] magiclantern.bin
[ STAT ] magiclantern.bin
magiclantern.bin: 484288 bytes
[ CC ] reboot.o
[ CC ] disp_direct.o
[ CC ] font_direct.o
[ CC ] footer.o
[ LD ] autoexec
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x0764b8 0x000df8b8 0x000df8b8 0x00008 0x00008 R 0x4
LOAD 0x000100 0x00069500 0x00069500 0x763c0 0x8a0f4 RWE 0x100
[ XOR_CHK ] ../../build_tools/xor_chk
[ OBJCOPY ] autoexec.bin
[ OBJCOPY ] autoexec.bin
[ XOR_CHK ] autoexec.bin
cp autoexec.bin /Users/appleuser/magic-lantern/platform/5D3.113/zip/
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/fonts
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/settings
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/data
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/cropmks
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/scripts
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/scripts/lib
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/logs
mkdir -p /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/doc
cp ../../data/fonts/*.rbf /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/fonts/
cp ../../data/vram/*.lut /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/data/
cp ../../data/cropmks/*.bmp /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/cropmks/
cp ../../scripts/*.lua /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/scripts/
cp ../../scripts/lib/*.lua /Users/appleuser/magic-lantern/platform/5D3.113/zip/ML/scripts/lib/
make -C ../../modules
Building module raw_rec...
Updated HGVERSION
[ README ] module_strings.h
cat README.rst | grep -v -E "^:([^:])+:.+$" | rst2html --no-xml-declaration | py$//" ../html2text.py -b 700 | sed "s/
/bin/sh: rst2html: command not found
(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x10f30fcf8>)
make[4]: *** [module_strings.h] Error 1
********************************************************
WARNING: module raw_rec failed to build, deleting
********************************************************
[ RM ] raw_rec.o raw_rec.mo raw_rec.sym raw_rec.dep module_strings.h *.o *.d *.dep *.sym hgstamp
[ RM ] raw2dng raw2dng.exe dng2raw dng2raw.exe
Building module file_man...
Updated HGVERSION
[ README ] module_strings.h
cat README.rst | grep -v -E "^:([^:])+:.+$" | rst2html --no-xml-declaration | py$//" ../html2text.py -b 700 | sed "s/
/bin/sh: rst2html: command not found
(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x103a85cf8>)
make[4]: *** [module_strings.h] Error 1
********************************************************
WARNING: module file_man failed to build, deleting
********************************************************
[ RM ] file_man.o file_man.mo file_man.sym file_man.dep module_strings.h *.o *.d *.dep *.sym hgstamp
Building module pic_view...
Updated HGVERSION
[ README ] module_strings.h
cat README.rst | grep -v -E "^:([^:])+:.+$" | rst2html --no-xml-declaration | py$//" ../html2text.py -b 700 | sed "s/
/bin/sh: rst2html: command not found
Quote from: DeafEyeJedi on December 19, 2015, 03:04:31 AMCode Select/bin/sh: rst2html: command not found
QuoteThat is one of the most common issues--Code Selectrst2html: command not found.
Are you sure you followed all of my instructions?
Try this:Code Selectwhich rst2html
If you get nothing -- Did you install docutils? That's where we get rst2html.Code Selectpip install docutils
and then make soft links to all the python scripts that end in .py with:Code Selectfor f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
#
# Host compiler settings
#
HOST_CC=$(shell which gcc)
HOST_LD=$(shell which ld)
HOST_AR=$(shell which ar)
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=$(shell which ld)
HOST_AR=$(shell which ar)
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
ln -s /usr/local/bin/gcc-5 /usr/local/bin/gcc
xcode-select --install
for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
[ LUAC ] syntax_check.log
/bin/sh: luac: command not found
brew install lua
Quote from: dmilligan on October 25, 2016, 09:52:49 PM
I think homebrew is still on Lua 5.2.x and we are using 5.3.x. So you'll need to specifically tell brew you want Lua 5.3.
brew uninstall lua
brew install lua53
brew install lua53 --universal
Last login: Tue Nov 8 11:14:36 on ttys000
Seans-Mac-mini-385:~ DeafEyeJedi$ hg clone -r unified https://bitbucket.org/rbrune/magic-lantern/branch/crop_rec_raw_video_10bit_12bit
destination directory: crop_rec_raw_video_10bit_12bit
adding changesets
adding manifests
adding file changes
added 12169 changesets with 26665 changes to 2912 files
updating to branch unified
1729 files updated, 0 files merged, 0 files removed, 0 files unresolved
Seans-Mac-mini-385:~ DeafEyeJedi$ cd ~/magic-lantern/platform/7D.203/
Seans-Mac-mini-385:7D.203 DeafEyeJedi$ make clean && make zip
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Seans-Mac-mini-385:7D.203 DeafEyeJedi$
Last login: Tue Nov 8 12:24:37 on ttys000
Apples-Macintosh-10:~ DeafEyeJedi$ hg clone -r https://bitbucket.org/rbrune/magic-lantern/branch/crop_rec_raw_video_10bit_12bit
hg clone: invalid arguments
hg clone [OPTION]... SOURCE [DEST]
make a copy of an existing repository
options ([+] can be repeated):
-U --noupdate the clone will include an empty working directory
(only a repository)
-u --updaterev REV revision, tag, or branch to check out
-r --rev REV [+] include the specified changeset
-b --branch BRANCH [+] clone only the specified branch
--pull use pull protocol to copy metadata
--uncompressed use uncompressed transfer (fast over LAN)
-e --ssh CMD specify ssh command to use
--remotecmd CMD specify hg command to run on the remote side
--insecure do not verify server certificate (ignoring web.cacerts
config)
(use "hg clone -h" to show more help)
Apples-Macintosh-10:~ DeafEyeJedi$ destination directory: crop_rec_raw_video_10bit_12bit
https://bitbucket.org/rbrune/magic-lantern
which gcc-5
brew search gcc
Quotecosmo0920/mingw_w64/i686-w64-mingw32-gcc ✔
cosmo0920/mingw_w64/x86-64-w64-mingw32-gcc
gcc ✔
homebrew/dupes/apple-gcc42 ✔
homebrew/versions/gcc43
homebrew/versions/gcc44
homebrew/versions/gcc45
homebrew/versions/gcc46
homebrew/versions/gcc47
homebrew/versions/gcc48
homebrew/versions/gcc49 ✔
homebrew/versions/gcc5 ✔
homebrew/versions/gcc6
homebrew/versions/llvm-gcc28
Caskroom/cask/gcc-arm-embedded
brew link gcc5
which gcc-5
Quote/usr/local/bin/gcc-5
Quote from: dfort on November 08, 2016, 10:04:59 PM
Ok, you almost got it. Let's do this the way I would--not that I'm an expert but this seems to work for me.
Quote from: dfort on November 08, 2016, 10:04:59 PM
We're going to clone rbrune's magic-lantern repository--hope that's ok with you Rafael. The reason we're cloning instead of forking is because we want to see his updates in SourceTree as he pushes his commits. Also, we won't be making any pull requests. That's another topic.
(https://c7.staticflickr.com/6/5822/30564650470_146fd8ca80.jpg)
Go to rburne's bitbucket page and copy the URL.Code Selecthttps://bitbucket.org/rbrune/magic-lantern
(https://c8.staticflickr.com/6/5456/30866025255_ca179e82f7.jpg)
Paste the address into SourceTree.
(https://c3.staticflickr.com/6/5736/30829575946_3733ff1610.jpg)
Note that it will create a local repository with the same name as rbrune's repository name, magic-lantern. This could be confusing if you are cloning and forking various repositories so in order to keep things organized we'll append rburne to your local repository.
(https://c6.staticflickr.com/6/5824/30866025565_3304257b16.jpg)
Quote from: dfort on November 08, 2016, 10:04:59 PM
When you open up his repository in SourceTree you'll see his latest commits at the top but caution because you aren't in the right branch yet, you're in the default branch--check the panel on the left.
(https://c3.staticflickr.com/6/5613/30829576306_c413868fbc.jpg)
Double click either on the panel on the left or the graphic display of his workflow to get into the branch that you want. In this case you'll want his crop_rec_raw_video_10bit_12bit branch.
(https://c2.staticflickr.com/6/5662/30866025785_ed6f72505d.jpg)
Ok, now you can navigate through the local repository with the terminal, saved in your home directory if you followed this tutorial.
Quote from: dfort on November 08, 2016, 10:04:59 PM
I've got an idea what's going on with gcc-5 because of something that happened to me just this morning. Try this first:Code Selectwhich gcc-5
If you get nothing, check that it is installed:Code Selectbrew search gcc
This is what I got:
Note that the check marks show what's installed. If you have a check mark on gcc6 and gcc that means that you're linked to gcc6. That isn't working with ML at this time so link to gcc5:Code Selectbrew link gcc5
Now try this again:Code Selectwhich gcc-5
Last login: Tue Nov 8 12:25:43 on ttys001
Apples-Macintosh-10:~ DeafEyeJedi$ which gcc-5
Apples-Macintosh-10:~ DeafEyeJedi$ brew search gcc
gcc ✔ homebrew/dupes/apple-gcc42
homebrew/versions/gcc43 homebrew/versions/gcc49
homebrew/versions/gcc44 homebrew/versions/gcc5
homebrew/versions/gcc45 homebrew/versions/gcc6
homebrew/versions/gcc46 homebrew/versions/llvm-gcc28
homebrew/versions/gcc47 Caskroom/cask/gcc-arm-embedded
homebrew/versions/gcc48
Apples-Macintosh-10:~ DeafEyeJedi$ brew link gcc5
Error: No such keg: /usr/local/Cellar/gcc5
Quote from: dfort on November 08, 2016, 10:04:59 PM
Got all that? Ok--let's see if you can compile all those platforms. They should all work except for 1100D.105 and don't bother with 7D_MASTER.203, not sure what that one is for.
brew tap homebrew/dupes; brew install homebrew/versions/gcc5
Apples-Macintosh-10:~ DeafEyeJedi$ which gcc-5
Apples-Macintosh-10:~ DeafEyeJedi$ brew search gcc
gcc ✔ homebrew/versions/gcc47
homebrew/dupes/apple-gcc42 homebrew/versions/gcc48
homebrew/versions/gcc43 homebrew/versions/gcc49
homebrew/versions/gcc44 homebrew/versions/gcc5 ✔
homebrew/versions/gcc45 homebrew/versions/gcc6
homebrew/versions/gcc46 homebrew/versions/llvm-gcc28
Caskroom/cask/gcc-arm-embedded
Apples-Macintosh-10:~ DeafEyeJedi$
which gcc-5
Quote/usr/local/bin/gcc-5
brew link gcc5
which gcc-5
Last login: Wed Nov 9 09:18:28 on ttys004
Apples-Macintosh-10:~ DeafEyeJedi$ which gcc-5
Apples-Macintosh-10:~ DeafEyeJedi$ brew link gcc5
Error: Operation already in progress for gcc5
Another active Homebrew process is already using gcc5.
Please wait for it to finish or terminate it to continue.
Apples-Macintosh-10:~ DeafEyeJedi$
🍺 /usr/local/Cellar/gcc5/5.4.0: 1,391 files, 246.6M, built in 37 minutes 31 seconds
Apples-Macintosh-10:~ DeafEyeJedi$
Apples-Macintosh-10:~ DeafEyeJedi$ which gcc-5
/usr/local/bin/gcc-5
Apples-Macintosh-10:~ DeafEyeJedi$
cr2hdr.c:2548:59: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2574:21: error: function definition is not allowed here
{
^
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
Quote from: dfort on November 09, 2016, 07:31:46 PM
I don't think that's the error.
I might have skipped an important step--did you make your Makefile.user file? If it isn't in there it will use the Apple clang compiler.
Makefile.userCode Select#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
Building module dual_iso...
Updated HGVERSION
[ README ] module_strings.h
Help page 1: Quick start
Help page 2: Tips and tricks
[ CC ] dual_iso.o
[ HGDIFF ] hgdiff.tmp
[ MODULE ] dual_iso.mo
[ STRIP ] dual_iso.mo
[ OBJCOPY ] dual_iso.mo
[ EXPORTS ] dual_iso.sym
0000132c dual_iso_calc_dr_improvement
00001384 dual_iso_set_enabled
000013a4 dual_iso_is_enabled
000013b4 dual_iso_is_active
000013d4 dual_iso_get_dr_improvement
00001554 dual_iso_get_recovery_iso
00001574 dual_iso_set_recovery_iso
[ DEPENDS ] dual_iso.dep
Will load on:
5D3
Not checked (compile ML for these cameras first):
1100D, 500D, 50D, 550D, 5D2, 600D, 60D, 650D, 6D, 700D, 7D, EOSM
[ gcc ] cr2hdr
cr2hdr.c:1351:46: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist rggb.m"));
^
cr2hdr.c:1351:46: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:1489:46: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist bddb.m"));
^
cr2hdr.c:1489:46: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:1765:51: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist iso-curve.m"));
^
cr2hdr.c:1765:51: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2201:55: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist fullres-curve.m"));
^
cr2hdr.c:2201:55: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2535:56: warning: if statement has empty body [-Wempty-body]
if(system("dcraw -d -r 1 1 1 1 edges.dng"));
^
cr2hdr.c:2535:56: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2548:59: warning: if statement has empty body [-Wempty-body]
if(system("dcraw -d -r 1 1 1 1 edge-map.dng"));
^
cr2hdr.c:2548:59: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2574:21: error: function definition is not allowed here
{
^
cr2hdr.c:2588:31: warning: implicit declaration of function 'edge_interp' is
invalid in C99 [-Wimplicit-function-declaration]
int pi0 = edge_interp(dir);
^
cr2hdr.c:2841:51: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist mix-curve.m"));
^
cr2hdr.c:2841:51: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:3325:55: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist soft-film.m"));
^
cr2hdr.c:3325:55: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:3669:34: warning: if statement has empty body [-Wempty-body]
if(system("octave wb.m"));
^
cr2hdr.c:3669:34: note: put the semicolon on a separate line to silence this
warning
10 warnings and 1 error generated.
dcraw-bridge.c:101:3: warning: unused variable 'unique'
[-Wunused-const-variable]
} unique[] = {
^
1 warning generated.
amaze_demosaic_RT.c:983:10: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-hvwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:983:10: note: use function 'fabs' instead
if (fabsf(0.5-hvwt[indx>>1])<fab...
^~~~~
fabs
amaze_demosaic_RT.c:983:35: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-hvwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:983:35: note: use function 'fabs' instead
...if (fabsf(0.5-hvwt[indx>>1])<fabsf(0.5-hvwtalt)) {hvwt[indx>>1]=hvwtalt;...
^~~~~
fabs
amaze_demosaic_RT.c:1215:10: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-pmwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:1215:10: note: use function 'fabs' instead
if (fabsf(0.5-pmwt[indx>>1])<fab...
^~~~~
fabs
amaze_demosaic_RT.c:1215:35: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-pmwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:1215:35: note: use function 'fabs' instead
...if (fabsf(0.5-pmwt[indx>>1])<fabsf(0.5-hvwt[indx>>1]) )
^~~~~
fabs
4 warnings generated.
make[4]: *** [cr2hdr] Error 1
********************************************************
WARNING: module dual_iso failed to build, deleting
********************************************************
[ RM ] dual_iso.o dual_iso.mo dual_iso.sym dual_iso.dep module_strings.h hgdiff.tmp *.o *.d *.dep *.sym hgstamp
[ RM ] cr2hdr cr2hdr.exe dcraw dcraw.c dcraw.exe exiftool.exe exiftool.tar.gz exiftool exiftool.zip cr2hdr.zip cr2hdr-win.zip cr2hdr-win_exiftool-perl-script.zip
cd ~/magic-lantern-rbrune/modules/dual_iso
make clean
make cr2hdr
# this is a very simple makefile for modules
TOP_DIR=../..
# define the module name - make sure name is max 8 characters
MODULE_NAME=dual_iso
MODULE_OBJS=dual_iso.o
# include modules environment
include $(TOP_DIR)/modules/Makefile.modules
# include cr2hdr makefile rules
include Makefile.cr2hdr
# include Makefile.cr2hdr
Quote from: dfort on November 10, 2016, 05:17:55 AM
Try navigating into the dual_iso directory and compile cr2hdr. Do it one step at a time and watch for error messages.
In the terminal, change to the dual_iso directory.Code Selectcd ~/magic-lantern-rbrune/modules/dual_iso
Clean out any prior builds.Code Selectmake clean
Now compile just cr2hdrCode Selectmake cr2hdr
See how that works.
Apples-Macintosh-10:~ DeafEyeJedi$ cd ~/magic-lantern-rbrune/modules/dual_iso
Apples-Macintosh-10:dual_iso DeafEyeJedi$ make clean
[ RM ] dual_iso.o dual_iso.mo dual_iso.sym dual_iso.dep module_strings.h hgdiff.tmp *.o *.d *.dep *.sym hgstamp
[ RM ] cr2hdr cr2hdr.exe dcraw dcraw.c dcraw.exe exiftool.exe exiftool.tar.gz exiftool exiftool.zip cr2hdr.zip cr2hdr-win.zip cr2hdr-win_exiftool-perl-script.zip
rm -rf lib
Apples-Macintosh-10:dual_iso DeafEyeJedi$ make cr2hdr
Updated HGVERSION
[ README ] module_strings.h
Help page 1: Quick start
Help page 2: Tips and tricks
[ gcc ] cr2hdr
cr2hdr.c:1351:46: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist rggb.m"));
^
cr2hdr.c:1351:46: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:1489:46: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist bddb.m"));
^
cr2hdr.c:1489:46: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:1765:51: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist iso-curve.m"));
^
cr2hdr.c:1765:51: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2201:55: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist fullres-curve.m"));
^
cr2hdr.c:2201:55: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2535:56: warning: if statement has empty body [-Wempty-body]
if(system("dcraw -d -r 1 1 1 1 edges.dng"));
^
cr2hdr.c:2535:56: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2548:59: warning: if statement has empty body [-Wempty-body]
if(system("dcraw -d -r 1 1 1 1 edge-map.dng"));
^
cr2hdr.c:2548:59: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:2574:21: error: function definition is not allowed here
{
^
cr2hdr.c:2588:31: warning: implicit declaration of function 'edge_interp' is
invalid in C99 [-Wimplicit-function-declaration]
int pi0 = edge_interp(dir);
^
cr2hdr.c:2841:51: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist mix-curve.m"));
^
cr2hdr.c:2841:51: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:3325:55: warning: if statement has empty body [-Wempty-body]
if(system("octave --persist soft-film.m"));
^
cr2hdr.c:3325:55: note: put the semicolon on a separate line to silence this
warning
cr2hdr.c:3669:34: warning: if statement has empty body [-Wempty-body]
if(system("octave wb.m"));
^
cr2hdr.c:3669:34: note: put the semicolon on a separate line to silence this
warning
10 warnings and 1 error generated.
dcraw-bridge.c:101:3: warning: unused variable 'unique'
[-Wunused-const-variable]
} unique[] = {
^
1 warning generated.
amaze_demosaic_RT.c:983:10: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-hvwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:983:10: note: use function 'fabs' instead
if (fabsf(0.5-hvwt[indx>>1])<fab...
^~~~~
fabs
amaze_demosaic_RT.c:983:35: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-hvwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:983:35: note: use function 'fabs' instead
...if (fabsf(0.5-hvwt[indx>>1])<fabsf(0.5-hvwtalt)) {hvwt[indx>>1]=hvwtalt;...
^~~~~
fabs
amaze_demosaic_RT.c:1215:10: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-pmwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:1215:10: note: use function 'fabs' instead
if (fabsf(0.5-pmwt[indx>>1])<fab...
^~~~~
fabs
amaze_demosaic_RT.c:1215:35: warning: absolute value function 'fabsf' given an
argument of type 'double' but has parameter of type 'float' which may
cause truncation of value [-Wabsolute-value]
if (fabsf(0.5-pmwt[indx>>1])<fab...
^
amaze_demosaic_RT.c:1215:35: note: use function 'fabs' instead
...if (fabsf(0.5-pmwt[indx>>1])<fabsf(0.5-hvwt[indx>>1]) )
^~~~~
fabs
4 warnings generated.
make: *** [cr2hdr] Error 1
Apples-Macintosh-10:dual_iso DeafEyeJedi$
Quote from: dfort on November 10, 2016, 05:17:55 AM
I'm not sure what was the rational for compiling cr2hdr every time you want to build ML for your camera but that's where the problem seems to be. Everything else uses the ARM cross-compiler but the command line tools that obviously need to be built with the host compiler. If you're feeling adventurous try this. Open the Makefile that is in the modules/dual_iso directory with a text editor:
MakefileCode Select# this is a very simple makefile for modules
TOP_DIR=../..
# define the module name - make sure name is max 8 characters
MODULE_NAME=dual_iso
MODULE_OBJS=dual_iso.o
# include modules environment
include $(TOP_DIR)/modules/Makefile.modules
# include cr2hdr makefile rules
include Makefile.cr2hdr
And comment out that last line:Code Select# include Makefile.cr2hdr
That will skip building cr2hdr and the dual_iso module will compile for your camera.
Building module dual_iso...
[ HGDIFF ] hgdiff.tmp
[ MODULE ] dual_iso.mo
[ STRIP ] dual_iso.mo
[ OBJCOPY ] dual_iso.mo
[ EXPORTS ] dual_iso.sym
0000132c dual_iso_calc_dr_improvement
00001384 dual_iso_set_enabled
000013a4 dual_iso_is_enabled
000013b4 dual_iso_is_active
000013d4 dual_iso_get_dr_improvement
00001554 dual_iso_get_recovery_iso
00001574 dual_iso_set_recovery_iso
[ DEPENDS ] dual_iso.dep
Will load on:
5D3
Not checked (compile ML for these cameras first):
1100D, 500D, 50D, 550D, 5D2, 600D, 60D, 650D, 6D, 700D, 7D, EOSM
Building module silent...
[ HGDIFF ] hgdiff.tmp
[ MODULE ] silent.mo
[ STRIP ] silent.mo
[ OBJCOPY ] silent.mo
[ EXPORTS ] silent.sym
[ DEPENDS ] silent.dep
Will load on:
5D3
Not checked (compile ML for these cameras first):
1100D, 500D, 50D, 550D, 5D2, 600D, 60D, 650D, 6D, 700D, 7D, EOSM
[ XOR_CHK ] ../../build_tools/xor_chk
../../build_tools/xor_chk.c:48:88: warning: format specifies type
'unsigned long' but the argument has type 'uint64_t' (aka
'unsigned long long') [-Wformat]
...error (expected 0x%lX, got 0x%lX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
~~~ ^~~~~~~~~~~~
%llX
1 warning generated.
Building module lua...
[ HGDIFF ] hgdiff.tmp
[ MODULE ] lua.mo
lua/lauxlib.o: In function `panic':
lauxlib.c:(.text+0x360): warning: warning: your code uses stdio (7+k bloat).
dietlibc.a(vfprintf.o): In function `vfprintf':
vfprintf.c:(.text+0x34): warning: warning: the printf functions add several kilobytes of bloat.
ValueError: unknown locale: UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
all:: raw2dng
inside Makefile in raw_rec folder.Quote from: Danne on November 27, 2016, 10:55:40 PM
One other problem is raw_rec failing to build because of the makefile. Simply erase:Code Selectall:: raw2dng
inside Makefile in raw_rec folder.
Quote from: DeafEyeJedi on November 30, 2016, 09:48:50 AM
...is this something that we are required to do on our Mac's even if we aren't getting the raw_rec failing?
Error: i686-w64-mingw32-gcc contains conflicting version recursive dependencies:
isl, [email protected]
QuoteThanks for your report!
But recently homebrew-core got merged mingw-64 Formula which installs cross gcc and binutils at once.
Could you tell to use mingw-w64 instead of my formula?
brew install mingw-w64
pip install docutils
sudo pip install docutils
sudo pip2 install docutils
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
Quote from: dfort on September 24, 2017, 08:36:44 AM
Need to find a virgin Mac to try it out.
Quote
macos-high-sierra:~ tof$ xcode-select --install
macos-high-sierra:~ tof$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
macos-high-sierra:~ tof$ brew install python wget mercurial
macos-high-sierra:~ tof$ pip2 install docutils
macos-high-sierra:~ tof$ brew tap homebrew/dupes; brew install homebrew/versions/gcc5
macos-high-sierra:~ tof$ cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
macos-high-sierra:~ tof$ hg clone https://bitbucket.org/hudson/magic-lantern
macos-high-sierra:~ tof$ cd magic-lantern
macos-high-sierra:magic-lantern tof$ hg update unified
macos-high-sierra:magic-lantern tof$ cat <<'EOT' > Makefile.user
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
EOT
# OPTIONAL cross-compile
macos-high-sierra:~ tof$ brew install mingw-w64
Quote
macos-high-sierra:magic-lantern tof$ brew install xz grep pkg-config glib automake libtool pixman mtools
macos-high-sierra:magic-lantern tof$ hg update qemu
macos-high-sierra:magic-lantern tof$ cd contrib/qemu/
# "Fix" for QEMU on macOS (need custom install.sh : change grep -P to ggrep -P)
# need to PR a great solution not a workarround, like PYTHON=python2, GREP=ggrep
# I don't want to replace macOS grep with GNU grep (prevent eventual bug), if you want: @dfort solution (http://www.magiclantern.fm/forum/index.php?topic=2864.msg185591#msg185591) and ignore last command
macos-high-sierra:qemu tof$ sed -i '' 's/grep/ggrep/g' install.sh
macos-high-sierra:qemu tof$ sed -i '' 's/grep/ggrep/g' scripts/run_canon_fw.sh
macos-high-sierra:qemu tof$ ./install
# Follow next steps from output
QuoteEDIT] Just a thought, @Danne you're good at bash scripting--how about adding user interactive options at the end of the script to add Windows cross compiling and another for setting up a QEMU ready development environment?Sure thing. Shouldn't be hard at all. Will take a look soon.
cat <<'EOF' > mac_ml.sh
#!/bin/sh
# mac_ml.sh
#
# Script to almost automatically install
# and configure a Magic Lantern development
# environment on a Macintosh.
#
# Reference:
# http://magiclantern.fm/forum/index.php?topic=16012.0
#
# Daniel Fort (dfort) - 2015-10-15
# Modified 2016-03-17 - took out ugly gcc hack
# Modified 2017-06-27 - added mingw-w64 for cross compiling Windows binaries
# Modified 2017-06-28 - check if magic-lantern already exists
# Modified 2017-07-12 - write a Makefile.user file
# Modified 2017-09-23 - made mingw-w64 optional
# Modified 2017-09-24 -
#
# Thanks to Danne and kichetof for their input
if ! test -d /usr/local; then
echo "/usr/local directory not found."
echo "Follow the steps at the beginning of"
echo "tutorial to create /usr/local and"
echo "then re-run this script."
exit 1
fi
echo "/usr/local found -- "
echo "continuing with installation."
cd ~
if [ ! -d "/Library/Developer/CommandLineTools" ]; then xcode-select --install; fi
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python wget mercurial
#
# Uncomment the following line if you want to cross compile Windows binaries.
# brew install mingw-w64
#
pip2 install docutils
brew tap homebrew/dupes; brew install homebrew/versions/gcc5
cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
if ! test -d ~/magic-lantern; then
hg clone https://bitbucket.org/hudson/magic-lantern
cd magic-lantern
hg update unified
cat <<'EOT' > Makefile.user
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
EOT
fi
#OPTIONAL 1
clear
read -p $(tput bold)"Would you also like to install the windows cross compiler mingw-w64?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew install mingw-w64
fi
#OPTIONAL 2
clear
read -p $(tput bold)"How about compiling QEMU?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd magic-lantern
brew install xz grep pkg-config glib automake libtool pixman mtools
hg update qemu
cd contrib/qemu/
sed -i '' 's/gggrep/ggrep/g' install.sh
./install.sh
fi
cd ~
exit 0
EOF
bash mac_ml.sh && rm mac_ml.sh
sed -i '' 's/grep/ggrep/g' install.sh
./install.sh
#OPTIONAL 1
clear
read -p $(tput bold)"Would you also like to install the windows cross compiler mingw-w64?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
brew install mingw-w64
fi
#OPTIONAL 2
clear
read -p $(tput bold)"How about compiling QEMU?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd magic-lantern
brew install xz grep pkg-config glib automake libtool pixman mtools
hg update qemu
cd contrib/qemu/
sed -i '' 's/gggrep/ggrep/g' install.sh
./install.sh
fi
This will setup QEMU for emulating Magic Lantern.
Thou shalt not be afraid of compiling stuff on Linux ;)
Continue? [y/n]
pip2 install docutils
for f in /usr/local/bin/*.py; do ln -s $f "${f/.py/}"; done
tof-mbp:qemu tof$ diff run_canon_fw_tof.sh run_canon_fw.sh
3d2
< GREP=${GREP:=grep}
11c10
< SD_DEV=`losetup -j $1 | $GREP -Po "(?<=/dev/)[^ ]*(?=:)"`
---
> SD_DEV=`losetup -j $1 | grep -Po "(?<=/dev/)[^ ]*(?=:)"`
13c12
< if cat /proc/mounts | $GREP /dev/mapper/$SD_DEV; then
---
> if cat /proc/mounts | grep /dev/mapper/$SD_DEV; then
21c20
< if [[ -n $(ls /Volumes | $GREP EOS_DIGITAL*) ]]; then
---
> if [[ -n $(ls /Volumes | grep EOS_DIGITAL*) ]]; then
26,34d24
<
< if [[ -n $(which ggrep) ]]; then
< GREP=ggrep
< else
< echo
< echo "Error: you need GNU grep to run this script"
< echo "brew install grep"
< exit 1
< fi
60c50
< QEMU_EOS_DEBUGMSG=`cat $CAM/debugmsg.gdb | $GREP DebugMsg_log -B 1 | $GREP -Pom1 "(?<=b \*)0x.*"`
---
> QEMU_EOS_DEBUGMSG=`cat $CAM/debugmsg.gdb | grep DebugMsg_log -B 1 | grep -Pom1 "(?<=b \*)0x.*"`
QuoteI didn't change permissions on /usr/local and didn't copy *.pyYeah, me neither, could probably be deleted...
Quote from: Danne on September 24, 2017, 09:09:02 PM
could probably be deleted...
./install.sh: line 38: cd: .git: No such file or directory
Initialized empty Git repository in /Users/Fort/qemu/qemu-2.5.0/.git/
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'Fort@Rosies-Air.(none)')
# get qemu
wget --progress=dot:giga -c http://wiki.qemu-project.org/download/$QEMU_NAME.tar.bz2
tar jxf $QEMU_NAME.tar.bz2
# initialize a git repo, to make it easy to track changes to QEMU source
cd $QEMU_NAME
cd .git && cd .. || (git init && git add . && git commit -q -m "$QEMU_NAME vanilla")
cd ..
*** Please add gcc binaries to your executable PATH:
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up arm-none-eabi-gdb before continuing.
brew reinstall gcc@5
*** Please add gcc binaries to your executable PATH:
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up arm-none-eabi-gdb before continuing.
Quote from: a1ex on September 28, 2017, 09:59:56 PM
And copy-pasting the PATH command doesn't help?
which arm-none-eabi-gdb
/Users/rosiefort/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gdb
*** Installing dependencies for Mac...
*** WARNING: arm-none-eabi-gdb is not installed.
*** Downloading gcc-arm-embedded toolchain and installing it without the package manager.
*** Will be installed in your home directory (Makefile.user.default expects it there).
*** Will download the recommended 5.4-mac from gcc-arm-embedded.
*** Please add gcc binaries to your executable PATH:
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up arm-none-eabi-gdb before continuing.
RosieFoComputer:qemu rosiefort$ which arm-none-eabi-gdb
/Users/rosiefort/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gdb
Quote from: a1ex on September 28, 2017, 10:27:29 PM
Does the Mac run 32-bit binaries? If yes, can you try compiling a 32-bit GDB from source and place that one in PATH?
arm-none-eabi-gdb -v
./configure --target-list=arm-softmmu --disable-docs --enable-sdl
make -j 2
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libqemuutil.a(generated-tracers.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libqemuutil.a(host-utils.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libqemuutil.a(cache-utils.o) has no symbols
LINK qemu-ga
LINK qemu-nbd
Undefined symbols for architecture x86_64:
"_use_rt_clock", referenced from:
_bdrv_acct_start in block.o
_bdrv_acct_done in block.o
_qemu_get_clock_ns in qemu-timer.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [qemu-nbd] Error 1
make: *** Waiting for unfinished jobs....
dans-MacBook-Pro:qemu-1.6.0 dan$
sed -i '' 's/grep/ggrep/g' install.sh
PATH=~/gcc-arm-none-eabi-4_8-2013q4/bin:$PATH
Quote from: Danne on September 29, 2017, 07:43:00 AM
echo " make -j $(sysctl -n hw.physicalcpu)"
echo " make -j`$GREP -c processor /proc/cpuinfo 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"
Quote from: Danne on September 29, 2017, 08:09:36 AMCode Selectsed -i '' 's/grep/ggrep/g' install.sh
sed -i '' 's/grep/ggrep/g' scripts/run_canon_fw.sh
./configure --target-list=arm-softmmu --disable-docs --enable-sdl"
echo " make -j`grep -c processor /proc/cpuinfo`"
echo " make -j`$GREP -c processor /proc/cpuinfo 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd magic-lantern
hg update qemu
cd contrib/qemu/
sed -i '' 's/grep/ggrep/g' install.sh
sed -i '' 's/grep/ggrep/g' scripts/run_canon_fw.sh
./install.sh
fi
echo " make -j`-c processor /proc/cpuinfo 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"
echo " make -j`sysctl -n hw.ncpu`"
hg update qemu -C
*** Installing dependencies for Mac...
*** WARNING: arm-none-eabi-gdb is not installed.
*** Downloading gcc-arm-embedded toolchain and installing it without the package manager.
*** Will be installed in your home directory (Makefile.user.default expects it there).
*** Will download the recommended 5.4-mac from gcc-arm-embedded.
*** Please add gcc binaries to your executable PATH:
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up arm-none-eabi-gdb before continuing.
dans-MacBook-Pro:
sed -i '' 's/grep/ggrep/g' install.sh
sed -i '' 's/grep/ggrep/g' scripts/run_canon_fw.sh
Error: No available formula with the name "ggrep"
Quote from: Danne on September 29, 2017, 09:44:33 AM
I guess if we´re updating to hg update qemu -C which seems needed there´s no need for these?:Code Selectsed -i '' 's/grep/ggrep/g' install.sh
sed -i '' 's/grep/ggrep/g' scripts/run_canon_fw.sh
?
echo 'export PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH' >> ~/.bash_profile
. ~/.bash_profile
Quote from: Danne on September 29, 2017, 09:44:33 AM
As a matter of fact after running sed replace brew complains when running the install.sh scrip.Code SelectError: No available formula with the name "ggrep"
brew list grep
which ggrep
grep -V
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd magic-lantern
hg update qemu -C
cd contrib/qemu/
./install.sh
fi
Continue? [y/n] y
*** Installing dependencies for Mac...
*** WARNING: a valid arm-none-eabi-gdb could not be found.
*** Downloading a toolchain and installing it without the package manager.
*** Will be installed in your home directory (Makefile.user.default expects it there).
*** Will download macx_i386_gcc_arm_none_eabi_4.8.2 from:
https://acroname.com/software/arm-eabi-gcc-toolchain-mac-osx-macos-x-32bit
--2017-09-29 09:58:48-- https://acroname.com/system/files/software/macx_i386_gcc_arm_none_eabi_4.8.2.tgz
Resolving acroname.com... 192.155.81.18
Connecting to acroname.com|192.155.81.18|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24839733 (24M) [application/x-gtar]
Saving to: 'macx_i386_gcc_arm_none_eabi_4.8.2.tgz'
macx_i386_gcc_arm_n 100%[===================>] 23.69M 2.49MB/s in 17s
2017-09-29 09:59:07 (1.42 MB/s) - 'macx_i386_gcc_arm_none_eabi_4.8.2.tgz' saved [24839733/24839733]
/Users/dan/magic-lantern/contrib/qemu
*** Please add gcc binaries to your executable PATH:
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up a valid arm-none-eabi-gdb before continuing.
dans-MBP:qemu dan$
macx_i386_gcc_ar 100%[==========>] 23.69M 2.32MB/s in 14s
2017-09-29 10:47:28 (1.72 MB/s) - 'macx_i386_gcc_arm_none_eabi_4.8.2.tgz' saved [24839733/24839733]
/Users/dan/magic-lantern/contrib/qemu
*** Please add gcc binaries to your executable PATH:
PATH=~/cortex/4.8.2/bin:$PATH
*** Please set up a valid arm-none-eabi-gdb before continuing.
dans-MBP:qemu dan$
*** Installing dependencies for Mac...
*** WARNING: 64-bit GDB is known not to work.
*** WARNING: a valid arm-none-eabi-gdb could not be found.
*** Downloading a toolchain and installing it without the package manager.
*** Will be installed in your home directory (Makefile.user.default expects it there).
*** Will download macx_i386_gcc_arm_none_eabi_4.8.2 from:
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
/Users/dan/magic-lantern/contrib/qemu
*** Please add gcc binaries to your executable PATH:
PATH=~//bin:$PATH
*** WARNING: 64-bit GDB is known not to work.
Continue anyway? [y/N] y
*** Using GDB: /Users/dan/gcc-arm-none-eabi-4_8-2013q3/bin/arm-none-eabi-gdb
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20131129-cvs
*** Using GCC: /Users/dan/gcc-arm-none-eabi-4_8-2013q3/bin/arm-none-eabi-gcc
/Users/dan/magic-lantern/contrib/qemu/install.sh: line 286: syntax error near unexpected token `&'
dans-MBP:qemu dan$
arm-none-eabi-gcc -v |& grep "gcc version"
cd /Users/dan/qemu/qemu-2.5.0
../configure_eos.sh
make -j4
CC arm-softmmu/target-arm/gdbstub.o
CC arm-softmmu/target-arm/psci.o
6 warnings generated.
CC arm-softmmu/target-arm/crypto_helper.o
GEN trace/generated-helpers.c
CC arm-softmmu/gdbstub-xml.o
CC arm-softmmu/trace/generated-helpers.o
LINK arm-softmmu/qemu-system-arm
REZ arm-softmmu/qemu-system-arm
SETFILE arm-softmmu/qemu-system-arm
dans-MBP:qemu-2.5.0 dan$
arm-none-eabi-gcc -v |& grep "gcc version"
arm-none-eabi-gdb -v
gdb
function valid_arm_gdb {
if ! gdb -v &> /dev/null; then
# not installed, or not able to run for any reason
return 1
fi
#!/usr/bin/env bash
set -e
QEMU_NAME=${QEMU_NAME:=qemu-2.5.0}
ML=${ML:=magic-lantern}
GREP=${GREP:=grep}
echo
echo "This will setup QEMU for emulating Magic Lantern."
echo "Thou shalt not be afraid of compiling stuff on Linux ;)"
echo -n "Continue? [y/n] "
read answer
if test "$answer" != "Y" -a "$answer" != "y"; then exit 0; fi
echo
function install_gdb {
echo
echo "*** Will download gcc-arm-none-eabi-5_4-2016q3 from:"
echo " https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"
echo
TOOLCHAIN=gcc-arm-none-eabi-5_4-2016q3
DOWNLOAD=https://developer.arm.com/-/media/Files/downloads/gnu-rm/5_4-2016q3/
UNTAR="tar -jxf"
if [ $(uname) == "Darwin" ]; then
TARBALL=gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2
else
TARBALL=gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
fi
if [ ! -f ~/$TOOLCHAIN/bin/arm-none-eabi-gdb ]; then
cd ~
wget -c $DOWNLOAD$TARBALL && $UNTAR $TARBALL && rm $TARBALL
cd -
else
echo "*** Toolchain already installed in:"
echo " ~/$TOOLCHAIN"
echo
fi
echo "*** Please add gcc binaries to your executable PATH:"
echo " PATH=~/$TOOLCHAIN/bin:\$PATH"
echo
}
function valid_arm_gdb {
if ! gdb -v &> /dev/null; then
# not installed, or not able to run for any reason
return 1
fi
if gdb -v | grep -q "host=x86_64"; then
# 64-bit version - doesn't work
# fixme: this may get printed more than once
echo "*** WARNING: 64-bit GDB is known not to work."
return 1
fi
# assume it's OK
# todo: check version number
return 0
}
function valid_arm_gcc {
if ! gcc -v &> /dev/null; then
# not installed, or not able to run for any reason
return 1
fi
echo "#include <stdlib.h>" > arm-gcc-test.c
if ! gcc -c arm-gcc-test.c; then
echo "*** WARNING: your gcc is unable to compile a simple program."
rm arm-gcc-test.c
return 1
fi
rm arm-gcc-test.c
return 0
}
if [ $(uname) == "Darwin" ]; then
echo "*** Installing dependencies for Mac..."
echo
# fixme: don't these require sudo?
# can we check whether they are already installed, as on Ubuntu?
if ! xcode-select -p &> /dev/null; then
xcode-select --install
fi
# brew is "The missing package manager for macOS"
# https://brew.sh
if ! brew -v &> /dev/null; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
packages="python wget mercurial xz grep pkg-config glib automake libtool pixman mtools"
for pkg in $packages; do
brew list $pkg &> /dev/null || brew install $pkg
done
GREP=ggrep
fi
if apt-get -v &> /dev/null; then
# apt-based system?
# install these packages, if not already
# only request sudo if any of them is missing
# instead of GTK (libgtk2.0-dev), you may prefer SDL (libsdl1.2-dev)
packages="
build-essential mercurial pkg-config libtool
git libglib2.0-dev libpixman-1-dev zlib1g-dev
libgtk2.0-dev xz-utils mtools netcat-openbsd
python python-pip python-docutils"
# if a valid arm-none-eabi-gcc/gdb is already in PATH, try to use that
# otherwise, we'll try to install something
if ! valid_arm_gdb || ! valid_arm_gcc; then
echo "*** You do not seem to have an usable arm-none-eabi-gcc and/or gdb installed."
echo "*** 64-bit GDB is known not to work, so you'll have to install a 32-bit one for now."
echo
echo "*** You have a few options:"
echo
echo "1 - Install gdb-arm-none-eabi:i386 and gcc-arm-none-eabi from Ubuntu repo (recommended)"
echo " This will install 32-bit binaries - will not work under Windows Subsystem for Linux."
echo
echo "2 - Download a 32-bit gcc-arm-embedded and install it without the package manager."
echo " Will be installed in your home directory; to move it, you must edit the Makefiles."
echo " This will install 32-bit binaries - will not work under Windows Subsystem for Linux."
echo
echo "3 - Install gdb-arm-none-eabi from Ubuntu repository (64-bit)"
echo " WARNING: this will not be able to run all our GDB scripts."
echo
if dpkg -l binutils-arm-none-eabi 2>/dev/null | grep -q '^.i'; then
echo "4 - Remove Ubuntu toolchain and install the one from gcc-arm-embedded PPA (gcc 6.x)"
echo " This will:"
echo " - sudo apt-get remove gcc-arm-none-eabi gdb-arm-none-eabi \\"
echo " binutils-arm-none-eabi libnewlib-arm-none-eabi"
else
echo "4 - Install the toolchain from gcc-arm-embedded PPA (gcc 6.x)"
echo " This will:"
fi
echo " - sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
echo " - install the gcc-arm-embedded package."
echo " WARNING: this will not be able to run all our GDB scripts."
echo
echo "5 - Manually install arm-none-eabi-gdb from https://launchpad.net/gcc-arm-embedded"
echo " or any other source, make sure it is in PATH, then run this script again."
if ! gdb -v &> /dev/null; then
echo
else
echo
echo "6 - Just use the current 64-bit toolchain."
echo " WARNING: this will not be able to run all our GDB scripts."
fi
echo
echo -n "Your choice? "
read answer
echo
case $answer in
1)
# Ubuntu's 32-bit arm-none-eabi-gdb works fine
# gcc-arm-none-eabi:i386 does not include libnewlib - Ubuntu bug?
packages="$packages gdb-arm-none-eabi:i386 "
packages="$packages gcc-arm-none-eabi libnewlib-arm-none-eabi"
;;
2)
# 32-bit gdb will be downloaded after installing these packages
packages="$packages libc6:i386 libncurses5:i386"
;;
3)
# Ubuntu's 64-bit arm-none-eabi-gdb works... sort of
# it's unable to run 5D3 1.1.3 GUI and maybe others
packages="$packages gdb-arm-none-eabi:amd64"
packages="$packages gcc-arm-none-eabi:amd64 libnewlib-arm-none-eabi:amd64"
;;
4)
# gcc-arm-embedded conflicts with gcc-arm-none-eabi
# but the dependencies are not configured properly
# so we have to fix the conflict manually...
if dpkg -l binutils-arm-none-eabi 2>/dev/null | grep -q '^.i'; then
echo
echo "*** Please double-check - the following might remove additional packages!"
echo
sudo apt-get remove gcc-arm-none-eabi gdb-arm-none-eabi \
binutils-arm-none-eabi libnewlib-arm-none-eabi
fi
packages="$packages gcc-arm-embedded"
echo
echo "*** Adding the team-gcc-arm-embedded PPA repository..."
echo " sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa"
echo
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
;;
5)
# user will install arm-none-eabi-gdb and run the script again
exit 0
;;
6)
# use the installed version, even though it's known not to work
;;
*)
# invalid choice
exit 1
;;
esac
else
echo "*** You have a valid ARM GCC/GDB already installed - using that one."
fi
echo "*** Checking dependencies for Ubuntu..."
echo
# https://wiki.debian.org/ListInstalledPackages
# dpkg -l also returns packages that are not installed
deps_installed=yes
for package in $packages; do
if ! dpkg -l $package 2>/dev/null | grep -q '^.i'; then
echo Not installed: $package
deps_installed=no
fi
done
if [ "$deps_installed" == "no" ]; then
echo
echo "*** Installing dependencies for Ubuntu..."
echo
sudo apt-get update
sudo apt-get install $packages
echo
fi
deps_installed=yes
for package in $packages; do
if ! dpkg -l $package 2>/dev/null | grep -q '^.i'; then
echo Not installed: $package
deps_installed=no
fi
done
if [ "$deps_installed" == "no" ]; then
echo
echo "*** Error: Ubuntu dependencies could not be installed."
echo
exit 1
fi
fi
# all systems (including Mac, or Ubuntu if the installation from repositories failed)
# this one works on old systems as well, but it won't work under WSL
if ! valid_arm_gdb; then
echo
echo "*** WARNING: a valid arm-none-eabi-gdb could not be found."
echo "*** Downloading a toolchain and installing it without the package manager."
echo "*** Will be installed in your home directory (Makefile.user.default expects it there)."
echo
install_gdb
fi
# make sure we have a valid arm-none-eabi-gdb (regardless of operating system)
if ! valid_arm_gdb; then
if ! arm-none-eabi-gdb -v &> /dev/null; then
echo "*** Please set up a valid arm-none-eabi-gdb before continuing."
exit 1
else
# valid_arm_gdb will print why the current one is not good
echo -n "Continue anyway? [y/N] "
read answer
if test "$answer" != "Y" -a "$answer" != "y"; then exit 1; fi
echo
fi
fi
# same for arm-none-eabi-gcc
if ! valid_arm_gcc; then
echo "*** Please set up a valid arm-none-eabi-gcc before continuing."
exit 1
fi
echo
echo -n "*** Using GDB: "
command -v arm-none-eabi-gdb
arm-none-eabi-gdb -v | head -n1
echo
echo -n "*** Using GCC: "
command -v arm-none-eabi-gcc
arm-none-eabi-gcc -v 2>&1 | grep "gcc version"
echo
# install docutils (for compiling ML modules) and vncdotool (for test suite)
# only install if any of them is missing
pip2 list | grep docutils || rst2html -h > /dev/null || pip2 install docutils
pip2 list | grep vncdotool || vncdotool -h > /dev/null || pip2 install vncdotool
function die { echo "${1:-"Unknown Error"}" 1>&2 ; exit 1; }
pwd | grep $ML/contrib/qemu > /dev/null || die "error: we should be in $ML/contrib/qemu"
# go to the parent of magic-lantern folder
cd ../../..
ls | $GREP $ML > /dev/null || die "error: expecting to find $ML here"
mkdir -p qemu
cd qemu
echo
echo "*** Setting up QEMU in `pwd`..."
echo
# get qemu
wget -q --show-progress --progress=dot:giga -c http://wiki.qemu-project.org/download/$QEMU_NAME.tar.bz2
echo
tar jxf $QEMU_NAME.tar.bz2
echo
# initialize a git repo, to make it easy to track changes to QEMU source
cd $QEMU_NAME
if [ ! -d .git ]; then
git init
# git requires a valid email; if not setup, add one for this directory only
git config user.email || git config user.email [email protected]
git add .
git commit -q -m "$QEMU_NAME vanilla"
fi
cd ..
echo "Copying files..."
# copy our helper scripts
cp -r ../$ML/contrib/qemu/scripts/* .
chmod +x *.sh
# copy our testing scripts
mkdir -p tests
cp -r ../$ML/contrib/qemu/tests/* tests/
chmod +x tests/*.sh
# apply our patch
cd ${QEMU_NAME}
mkdir -p hw/eos
cp -r ../../$ML/contrib/qemu/eos/* hw/eos/
cp -r ../../$ML/src/backtrace.[ch] hw/eos/dbi/
patch -N -p1 < ../../$ML/contrib/qemu/$QEMU_NAME.patch
cd ..
# setup the card image
if [ ! -f "sd.img" ]; then
echo "Setting up SD card image..."
cp -v ../$ML/contrib/qemu/sd.img.xz .
unxz -v sd.img.xz
else
echo "SD image already exists, skipping."
fi
if [ ! -f "cf.img" ]; then
echo "Setting up CF card image..."
cp -v sd.img cf.img
else
echo "CF image already exists, skipping."
fi
echo ""
echo "Next steps:"
echo "==========="
echo
echo "1) Compile QEMU"
echo
echo " cd `pwd`/${QEMU_NAME}"
echo " ../configure_eos.sh"
echo " make -j`$GREP -c processor /proc/cpuinfo 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"
echo
echo "2) Grab a copy of the Canon firmware from your own camera"
echo " (don't request one and don't share it online - it's copyrighted)"
echo
echo " Look on your SD card - you should find ML/LOGS/ROM0.BIN and ROM1.BIN"
echo " Copy them under your camera model's subdirectory, for example:"
echo " `pwd`/60D/"
echo
echo " For models that use a serial flash, you may have to dump its contents"
echo " using the sf_dump module, then copy SFDATA.BIN as well."
echo
echo "3) Mount the included SD (or CF) image (you may use mount.sh)"
echo " and install ML on it, as usual. The card image must be bootable as well."
echo
echo " The included card image is bootable and contains a small autoexec.bin"
echo " that runs on all DIGIC 4/5 cameras and prints some basic info."
echo
echo " To create your own SD/CF image, you need to copy the raw contents"
echo " of the entire card, not just one partition. For example:"
echo " dd if=/dev/mmcblk0 of=sd.img"
echo
echo "4) Start emulation with:"
echo
echo " cd `pwd`/"
echo " ./run_canon_fw.sh 60D"
echo
echo " This will recompile QEMU, but not ML."
echo
echo " Note: Canon GUI emulation (menu navigation, no LiveView) only works on"
echo -n " "; $GREP --color=never -oP "(?<=GUI_CAMS=\( ).*(?=\))" tests/run_tests.sh;
echo
echo "5) Tips & tricks:"
echo " - to enable or disable the boot flag in ROM, use something like:"
echo " ./run_canon_fw.sh 60D,firmware=\"boot=1\""
echo " - to use multiple firmware versions, place the ROMs under e.g. 5D3/113/ROM*.BIN and run:"
echo " ./run_canon_fw.sh 5D3,firmware=\"113;boot=1\""
echo " - to show MMIO activity (registers) and interrupts, use:"
echo " ./run_canon_fw.sh 60D -d io,int"
echo " - to show the executed ASM code, step by step, use:"
echo " ./run_canon_fw.sh 60D -d exec,int -singlestep"
echo " - to trace debug messages and various functions in the firmware, use:"
echo " ./run_canon_fw.sh 60D -s -S & arm-none-eabi-gdb -x 60D/debugmsg.gdb"
echo " - if the above is too slow, compile the dm-spy-experiments branch "
echo " with CONFIG_QEMU=y and CONFIG_DEBUG_INTERCEPT_STARTUP=y and try:"
echo " ./run_canon_fw.sh 60D,firmware=\"boot=1\" -d io,int"
echo " - some camera models require GDB patches to bypass tricky code sequences:"
echo " ./run_canon_fw.sh 700D -s -S & arm-none-eabi-gdb -x 700D/patches.gdb"
echo " - to trace all function calls and export them to IDA:"
echo " ./run_canon_fw.sh 60D -d calls -singlestep"
echo " - you may enable additional debug code (such as printing to QEMU console)"
echo " by compiling ML with CONFIG_QEMU=y in your Makefile.user (also run make clean)."
echo " - caveat: you cannot run autoexec.bin compiled with CONFIG_QEMU on the camera."
echo
echo "Enjoy!"
PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
echo " PATH=~/$TOOLCHAIN/bin:\$PATH"
export PATH=~/$TOOLCHAIN/bin/:$PATH
echo " PATH=~/$TOOLCHAIN/bin/:$PATH"
PATH=~/$TOOLCHAIN/bin/:$PATH
echo " PATH=~/$TOOLCHAIN/bin/:$PATH"
export PATH=~/$TOOLCHAIN/bin/:$PATH
cat <<'EOF' > mac_ml.sh
#!/bin/sh
# mac_ml.sh
#
# Script to almost automatically install
# and configure a Magic Lantern development
# environment on a Macintosh.
#
# Reference:
# http://magiclantern.fm/forum/index.php?topic=16012.0
#
# Daniel Fort (dfort) - 2015-10-15
# Modified 2016-03-17 - took out ugly gcc hack
# Modified 2017-06-27 - added mingw-w64 for cross compiling Windows binaries
# Modified 2017-06-28 - check if magic-lantern already exists
# Modified 2017-07-12 - write a Makefile.user file
# Modified 2017-09-23 - made mingw-w64 (Windows cross compiler) optional
# Modified 2017-09-24 - added interactive options for mingw-w64 and QEMU
# Modified 2017-09-26 - QEMU install.sh now installs dependencies so no need to do it here
# now using gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2
#
# Thanks to Danne and kichetof and of course a1ex for their input
if ! test -d /usr/local; then
echo "/usr/local directory not found."
echo "Follow the steps at the beginning of"
echo "tutorial to create /usr/local and"
echo "then re-run this script."
exit 1
fi
echo "/usr/local found -- "
echo "continuing with installation."
cd ~
if [ ! -d "/Library/Developer/CommandLineTools" ]; then xcode-select --install; fi
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python wget mercurial
#
# Uncomment the following line if you want to cross compile Windows binaries.
# brew install mingw-w64
#
pip2 install docutils
brew tap homebrew/dupes; brew install homebrew/versions/gcc5
cd ~ && \
[ ! -f gcc-arm-none-eabi-4_8-2013q4 ] &&
wget -c https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && \
tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && \
rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
if ! test -d ~/magic-lantern; then
hg clone https://bitbucket.org/hudson/magic-lantern
cd magic-lantern
hg update unified
cat <<'EOT' > Makefile.user
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
EOT
cd ~
fi
#OPTIONAL 1
clear
read -p $(tput bold)"Would you also like to install the windows cross compiler mingw-w64?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
clear
read -p $(tput bold)"Would you also like to compile QEMU?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
clear
echo "
installing mingw-w64"
brew install mingw-w64 || :
#compiling qemu
clear
echo "
compiling qemu"
cd magic-lantern
hg update qemu -C
cd contrib/qemu/
TOOLCHAIN=gcc-arm-none-eabi-5_4-2016q3
export PATH=~/$TOOLCHAIN/bin/:$PATH
./install.sh
else
clear
echo "
installing mingw-w64"
brew install mingw-w64 || :
fi
else
#OPTIONAL 2
clear
read -p $(tput bold)"How about compiling QEMU?$(tput setaf 1)
Y/N?"$(tput sgr0) -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
then
cd magic-lantern
hg update qemu -C
cd contrib/qemu/
TOOLCHAIN=gcc-arm-none-eabi-5_4-2016q3
export PATH=~/$TOOLCHAIN/bin/:$PATH
./install.sh
fi
fi
cd ~
exit 0
EOF
bash mac_ml.sh && rm mac_ml.sh
==> Summary
🍺 /usr/local/Cellar/isl/0.18: 80 files, 3.8MB
==> Installing mingw-w64
==> Downloading https://homebrew.bintray.com/bottles/mingw-w64-5.0.2_3.sierra.bo
######################################################################## 100.0%
==> Pouring mingw-w64-5.0.2_3.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/mingw-w64/5.0.2_3: 7,834 files, 669MB
compiling qemu
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
This will setup QEMU for emulating Magic Lantern.
Thou shalt not be afraid of compiling stuff on Linux ;)
Continue? [y/n] y
*** Setting up QEMU in /Users/SMJ/qemu...
--2017-09-29 08:42:03-- http://wiki.qemu-project.org/download/qemu-1.6.0.tar.bz2
Resolving wiki.qemu-project.org... 172.99.69.163
Connecting to wiki.qemu-project.org|172.99.69.163|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://wiki.qemu.org/download/qemu-1.6.0.tar.bz2 [following]
--2017-09-29 08:42:04-- http://wiki.qemu.org/download/qemu-1.6.0.tar.bz2
Resolving wiki.qemu.org... 172.99.69.163
Reusing existing connection to wiki.qemu-project.org:80.
HTTP request sent, awaiting response... 302 Found
Location: https://wiki.qemu.org/download/qemu-1.6.0.tar.bz2 [following]
--2017-09-29 08:42:06-- https://wiki.qemu.org/download/qemu-1.6.0.tar.bz2
Connecting to wiki.qemu.org|172.99.69.163|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.qemu.org/qemu-1.6.0.tar.bz2 [following]
--2017-09-29 08:42:07-- https://download.qemu.org/qemu-1.6.0.tar.bz2
Resolving download.qemu.org... 172.99.69.163
Connecting to download.qemu.org|172.99.69.163|:443... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
../magic-lantern/contrib/qemu/scripts/copy_back_to_contrib.sh -> ./copy_back_to_contrib.sh
../magic-lantern/contrib/qemu/scripts/gdbopts -> ./gdbopts
../magic-lantern/contrib/qemu/scripts/run_canon_fw.sh -> ./run_canon_fw.sh
../magic-lantern/contrib/qemu/scripts/run_ml.sh -> ./run_ml.sh
../magic-lantern/contrib/qemu/scripts/run_ml_100D.sh -> ./run_ml_100D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_500D.sh -> ./run_ml_500D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_50D.sh -> ./run_ml_50D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_550D.sh -> ./run_ml_550D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_5D2.sh -> ./run_ml_5D2.sh
../magic-lantern/contrib/qemu/scripts/run_ml_5D3.sh -> ./run_ml_5D3.sh
../magic-lantern/contrib/qemu/scripts/run_ml_5D3_123.sh -> ./run_ml_5D3_123.sh
../magic-lantern/contrib/qemu/scripts/run_ml_600D.sh -> ./run_ml_600D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_60D.sh -> ./run_ml_60D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_650D.sh -> ./run_ml_650D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_6D.sh -> ./run_ml_6D.sh
../magic-lantern/contrib/qemu/scripts/run_ml_7D.sh -> ./run_ml_7D.sh
../../magic-lantern/contrib/qemu/hw/eos.c -> hw/arm/eos.c
../../magic-lantern/contrib/qemu/hw/eos.h -> hw/arm/eos.h
patching file hw/arm/Makefile.objs
patching file memory.c
patching file target-arm/cpu.c
Next steps:
===========
1) Compile QEMU
cd /Users/SMJ/qemu/qemu-1.6.0
./configure --target-list=arm-softmmu --disable-docs --enable-sdl
grep: /proc/cpuinfo: No such file or directory
make -j
2) Grab a copy of the Canon firmware from your own camera
(don't request one and don't share it online - it's copyrighted)
Look on your SD card - you should find ML/LOGS/ROM0.BIN and ROM1.BIN
Copy those in /Users/SMJ/qemu/ and then run (for 60D):
cat ROM0.BIN ROM1.BIN > ROM-60D.BIN
3) Enable CONFIG_QEMU=y in your Makefile.user
from magic-lantern directory, then run 'make clean' to make sure
you will rebuild ML from scratch.
4) Create a subdirectory named 'sdcard' or 'cfcard' and copy ML files there.
Make sure all ML files are UPPERCASE (just copy them from a FAT32 card).
You should get something like:
/Users/SMJ/qemu/sdcard/ML/AUTOEXEC.BIN
/Users/SMJ/qemu/sdcard/ML/FONTS/ARGNOR32.RBF
/Users/SMJ/qemu/sdcard/ML/MODULES/ARKANOID.MO
and so on.
5) Start emulation with:
cd /Users/SMJ/qemu/
./run_ml_60D.sh
(this will recompile ML and QEMU - handy if you edit the sources often)
Enjoy!
Seans-Mac-mini-385:~ DeafEyeJedi$
Seans-Mac-mini-385:~ DeafEyeJedi$ cd /Users/SMJ/qemu/qemu-1.6.0
Seans-Mac-mini-385:qemu-1.6.0 DeafEyeJedi$ ./configure --target-list=arm-softmmu --disable-docs --enable-sdl
ERROR: User requested feature sdl
configure was not able to find it
Seans-Mac-mini-385:qemu-1.6.0 DeafEyeJedi$ grep: /proc/cpuinfo: No such file or directory
-bash: grep:: command not found
Seans-Mac-mini-385:qemu-1.6.0 DeafEyeJedi$ make -j
make: *** No rule to make target `/qemu-options.hx', needed by `qemu-options.def'. Stop.
make: *** Waiting for unfinished jobs....
Please call configure before running make!
make: *** [config-host.mak] Error 1
Seans-Mac-mini-385:qemu-1.6.0 DeafEyeJedi$
1) Compile QEMU
cd /Users/SMJ/qemu/qemu-1.6.0
./configure --target-list=arm-softmmu --disable-docs --enable-sdl
grep: /proc/cpuinfo: No such file or directory
make -j
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
cd /usr/local
ls
cd
rm -rf magic-lantern
rm -rf gcc-arm-none-eabi*
*** Please add gcc binaries to your executable PATH.
*** Run this command, or paste it into your .profile and reopen the terminal:
export PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** Please set up a valid arm-none-eabi-gdb before continuing.
export PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
cd ~/magic-lantern
hg update qemu -C
cd contrib/qemu/
./install.sh
*** Will download gcc-arm-none-eabi-5_4-2016q3 from:
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm
*** Toolchain already installed in:
~/gcc-arm-none-eabi-5_4-2016q3
*** Please add gcc binaries to your executable PATH.
*** Run this command, or paste it into your .profile and reopen the terminal:
export PATH=~/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
*** WARNING: 64-bit GDB is known not to work.
Continue anyway? [y/N] y
cd ~/qemu
./run_canon_fw.sh 100D
Quote from: Danne on September 30, 2017, 07:38:12 AM
usr/local
Quote from: kichetof on September 24, 2017, 03:44:08 PM
Virtualization 8)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install mercurial
hg clone https://bitbucket.org/hudson/magic-lantern
cd magic-lantern
hg update qemu -C
cd contrib/qemu
./install.sh
Quote from: a1ex on October 15, 2017, 08:28:37 PM
Thanks kichetof 8)
Warning: Use gcc@5 instead of deprecated homebrew/versions/gcc5
Quote from: dfort on November 17, 2017, 06:58:06 PM
Have you noticed that the script can now install QEMU from soup to nuts?
cat <<'EOT' > Makefile.user
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
EOT
brew install brewsci/science/butterflow
Traceback (most recent call last):
File "/usr/local/Cellar/butterflow/0.2.3_1/libexec/bin/butterflow", line 9, in <module>
load_entry_point('butterflow==0.2.3', 'console_scripts', 'butterflow')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2318, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/cli.py", line 11, in <module>
from butterflow import ocl, avinfo, motion, ocl
ImportError: dlopen(/usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/avinfo.so, 2): Library not loaded: /usr/local/opt/ffmpeg/lib/libavcodec.57.dylib
Referenced from: /usr/local/Cellar/butterflow/0.2.3_1/libexec/lib/python2.7/site-packages/butterflow/avinfo.so
Reason: image not found
/bin/sh: python2: command not found
PYTHON=python2
PYTHON=python
python -c "import sys; print('\n'.join(sys.path))"
brew install python2
Quote
What do you see when running this?Code Selectpython -c "import sys; print('\n'.join(sys.path))"
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/magic_lantern/Library/Python/2.7/lib/python/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/Cellar/numpy/1.14.5/libexec/nose/lib/python2.7/site-packages
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
[ XOR_CHK ] ../../build_tools/xor_chk
In file included from /usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5/gcc/x86_64-apple-darwin17.3.0/5.5.0/include/stdint.h:9:0,
from ../../build_tools/xor_chk.c:2:
/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5/gcc/x86_64-apple-darwin17.3.0/5.5.0/include-fixed/stdint.h:27:32: fatal error: sys/_types/_int8_t.h: No such file or directory
compilation terminated.
make: *** [../../build_tools/xor_chk] Error 1
make mlv_dump
Using ~/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc (preferred).
[ HOST_CC ] mlv_dump.host.o
In file included from mlv_dump.c:22:0:
/usr/local/Cellar/gcc@5/5.5.0_2/lib/gcc/5/gcc/x86_64-apple-darwin17.3.0/5.5.0/include-fixed/math.h:45:23: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
make: *** [mlv_dump.host.o] Error 1
Quote from: Danne on October 29, 2018, 04:17:33 PM
Could you try uninstall command line tools and reinstall them?
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ CC ] disp_direct.o
[ CC ] font_direct.o
[ CC ] footer.o
[ XOR_CHK ] ../../build_tools/xor_chk
/bin/sh: cc-5: command not found
make[1]: *** [../../build_tools/xor_chk] Error 127
make[1]: *** Waiting for unfinished jobs....
make: *** [600D.102] Error 2
$(call build,XOR_CHK,$(HOST_CC) $< -o $@)
$(call build,XOR_CHK,gcc-5 $< -o $@)
#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
# CONFIG_QEMU = y
# LOG_INTERRUPTS = y
# CONSOLE_DEBUG = y
# CONFIG_DEBUGMSG = y
# CONFIG_DEBUG_INTERCEPT_STARTUP = y
# CONFIG_DEBUG_INTERCEPT = y
# CONFIG_GDB = y
# CONFIG_GDBSTUB = y
# CONFIG_MMIO_TRACE=y
# Recovery branch options:
# CONFIG_BOOT_FULLFAT=y
# CONFIG_BOOT_DUMPER=y
# CONFIG_BOOT_SROM_DUMPER=y
# VERSION = $(call eval_once,VERSION,raw_video_10bit_12bit_LVState.$(shell LC_TIME=EN date +'%Y%b%d').$(MODEL)$(FW_VERSION))
ML_MODULES += \
mlv_rec \
pic_view \
ettr \
dot_tune \
autoexpo \
arkanoid \
deflick \
img_name \
bench \
selftest \
adv_int \
edmac \
ime_base \
ime_null \
ime_rot \
ime_std \
img_name \
io_crypt \
iso_regs \
mem_spy \
mpu_dump \
plot \
raw_diag \
sf_dump \
trace \
bulb_nd \
bolt_rec \
adtg_gui \
raw_twk \
edmac \
filepref \
Quote from: dfort on February 25, 2019, 10:18:11 PM
Did you make a Makefile.user file? The advantage of doing this is that it isn't tracked so you can customize your build environment without making any changes to the source code. You can put in several options in there and uncomment them as needed. Here's what's in mine:
Makefile.user.defaultCode Select#
# Host compiler settings
#
HOST_CC=gcc-5
HOST_LD=gcc-5
HOST_AR=$(shell which ar)
# CONFIG_QEMU = y
# LOG_INTERRUPTS = y
# CONSOLE_DEBUG = y
# CONFIG_DEBUGMSG = y
# CONFIG_DEBUG_INTERCEPT_STARTUP = y
# CONFIG_DEBUG_INTERCEPT = y
# CONFIG_GDB = y
# CONFIG_GDBSTUB = y
# CONFIG_MMIO_TRACE=y
# Recovery branch options:
# CONFIG_BOOT_FULLFAT=y
# CONFIG_BOOT_DUMPER=y
# CONFIG_BOOT_SROM_DUMPER=y
# VERSION = $(call eval_once,VERSION,raw_video_10bit_12bit_LVState.$(shell LC_TIME=EN date +'%Y%b%d').$(MODEL)$(FW_VERSION))
You can do the same with the modules. Here, I was testing a bunch of modules in one of the bleeding edge branches to see if they will compile.
Makefile.modules.userCode SelectML_MODULES += \
mlv_rec \
pic_view \
ettr \
dot_tune \
autoexpo \
arkanoid \
deflick \
img_name \
bench \
selftest \
adv_int \
edmac \
ime_base \
ime_null \
ime_rot \
ime_std \
img_name \
io_crypt \
iso_regs \
mem_spy \
mpu_dump \
plot \
raw_diag \
sf_dump \
trace \
bulb_nd \
bolt_rec \
adtg_gui \
raw_twk \
edmac \
filepref \
Quote from: scrax on February 25, 2019, 11:40:21 PM
but when compiling $(HOST_CC) became "cc-5" instead of "gcc-5" so had to put manually in the build_tools/Makefile
which gcc
/usr/bin/gcc
which cc
/usr/bin/cc
which cc-5 <-- I don't have this on my system
which clang
/usr/bin/clang
which gcc-5
/usr/local/bin/gcc-5 <-- Hombrew compiler
Quote from: dfort on February 26, 2019, 02:50:19 AMYes is same here no cc-5 an other compiler are in same places as yours.
Hum--doesn't make sense. Have you tried it without Makefile.user.default? As far as I know it is really only needed when compiling cr2hdr. Everything else should work out of the box on the Mac. Maybe the Homebrew compiler is configured in a way that clashes with the Apple compiler?Code Selectwhich gcc
/usr/bin/gcc
which cc
/usr/bin/cc
which cc-5 <-- I don't have this on my system
which clang
/usr/bin/clang
which gcc-5
/usr/local/bin/gcc-5 <-- Hombrew compiler
which clang gcc gcc-5 cc cc-5
/usr/bin/clang
/usr/bin/gcc
/usr/local/bin/gcc-5
/usr/bin/cc
make mlv_dump
...
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
make mlv_dump HOST_CC=gcc-5
Quote from: dfort on February 26, 2019, 04:23:43 AM
@DeafEyeJedi - The branch you are looking for is crop_rec_4k_mlv_snd_isogain_1x3_presets in Danne's repository (https://bitbucket.org/Dannephoto/magic-lantern/branch/crop_rec_4k_mlv_snd_isogain_1x3_presets).
Quote from: dfort on February 26, 2019, 04:23:43 AM
@scrax - Just noticed you're a developer so you probably know more about this than I do but here's what is going on at my end when I tried to replicate the error.
hg clone https://[email protected]/Dannephoto/magic-lantern magic-lantern_dannephoto
gcc
csrutil disable
sudo chflags norestricted /usr/local && sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local
csrutil enable
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python wget mercurial
pip install docutils
pip2 install docutils
pip3 install docutils
cd ~ && wget -c https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2 && rm gcc-arm-none-eabi-5_4-2016q3-20160926-mac.tar.bz2
cd ~ && wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && tar -jxf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2 && rm gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
hg clone https://bitbucket.org/hudson/magic-lantern
cd magic-lantern
hg update unified
make 600D
hg update qemu -c
cd contrib/qemu/
./install.sh
make -C ../magic-lantern/platform/600D.102 install_qemu
./run_canon_fw.sh 600D,firmware="boot=1"
Quote from: scrax on February 28, 2019, 03:03:29 PM
...skipped the homebrew compiler part...
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
brew update
brew upgrade
Quote from: dfort on April 09, 2019, 05:38:43 AM
For the most part skipping the Homebrew gcc-5 installation isn't a problem, the Mac clang compiler works fine. However, there are a few utilities like cr2hdr and (I believe) io-decrypt that won't compile with clang.
brew install cr2hdr
==> Downloading https://bitbucket.org/hudson/magic-lantern/get/7a3b5fa3f4c6.zip
Already downloaded: ~/Library/Caches/Homebrew/downloads/d3c1cf4d6a2a8d9314ef76c703162e322414dd166d057626813089071420a00d--hudson-magic-lantern-7a3b5fa3f4c6.zip
==> make cr2hdr
Last 15 lines from ~/Library/Logs/Homebrew/cr2hdr/01.make:
make cr2hdr
Please configure a valid ARM cross-compiler.
If arm-none-eabi-gcc is in your executable path, it will be used.
Preferred: gcc 5_4-2016q3 32-bit from https://launchpad.net/gcc-arm-embedded
Also fine: gcc-arm-embedded 6.x, Linaro arm-eabi 7.x, gcc-arm-none-eabi from Ubuntu,
gcc-arm-embedded from team-gcc-arm-embedded PPA on Ubuntu, others may work as well.
For GDB+QEMU, you *must* use a 32-bit version, e.g. gdb-arm-none-eabi:i386,
gcc-arm-embedded:i386 from PPA, 32-bit arm-none-eabi-gdb from gcc-arm-embedded.
Unfortunately, Linaro's arm-eabi-gdb does not work, whether 32 or 64 bit.
../../Makefile.setup.toolchain:42: *** . Stop.
READ THIS: https://docs.brew.sh/Troubleshooting
class Cr2hdr < Formula
depends_on "dcraw"
depends_on "exiftool"
desc "Dual ISO file coverter"
homepage "https://www.magiclantern.fm"
head "https://bitbucket.org/hudson/magic-lantern",
:branch => "unified"
url "https://bitbucket.org/hudson/magic-lantern/get/7a3b5fa3f4c6.zip"
version "2.3"
sha256 "7d5f10df15e243af51543ef6ad26989ab015d2d35a84228f099143587dfebc11"
def install
cd "modules/dual_iso" do
system "make cr2hdr"
bin.install "cr2hdr"
end
end
def caveats
<<-EOS.undent
Before you can use cr2hdr you must install Adobe DNG Converter
$ brew install caskroom/cask/brew-cask
$ brew cask install adobe-dng-converter
EOS
end
test do
system "#{bin}/cr2hdr"
end
end
brew install --HEAD cr2hdr
brew install --HEAD raw2dng
abort: no repository found in '/private/tmp/cr2hdr-20190417-3613-cq0pzx/hudson-magic-lantern-7a3b5fa3f4c6/modules/dual_iso' (.hg not found)!
(<type 'exceptions.SystemExit'>, SystemExit(1,), <traceback object at 0x10b3765f0>)
[ gcc ] cr2hdr
cr2hdr.c:58:10: fatal error: 'module_strings.h' file not found
#include "module_strings.h"
Quote from: dfort on April 17, 2019, 01:03:10 AM
Hum--interesting (https://github.com/ebeigarts/homebrew-magic-lantern):Code Selectbrew install --HEAD cr2hdr
brew install --HEAD raw2dng
Though it is a bit outdated. Last commit was 5 years ago.
brew tap ebeigarts/homebrew-magic-lantern
==> Tapping ebeigarts/magic-lantern
Cloning into '/usr/local/Homebrew/Library/Taps/ebeigarts/homebrew-magic-lantern'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (8/8), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ebeigarts/homebrew-magic-lantern/magic_lantern_formula.rb
formulae require at least a URL
Error: Cannot tap ebeigarts/magic-lantern: invalid syntax in tap!
Quote from: dfort on April 17, 2019, 02:38:14 AM
I didn't try it. Looked at the scripts and it needs a lot of work. cr2hdr requires dcraw and exiftool but these Homebrew scripts use Adobe DNG Converter. Not sure how it is supposed to work. I never had any luck writing my own Homebrew taps.
QuoteDNG compression (requires Adobe DNG Converter):
--compress : Lossless DNG compression
--compress-lossy: Lossy DNG compression (be careful, may destroy shadow detail)
xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg
brew update
brew upgrade
#
# Host compiler settings
#
# HOST_CC=gcc-5
# HOST_LD=gcc-5
DeafEyeJedi@Apples-Macintosh-10 ~ % brew update
brew upgrade
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/homebrew-dupes/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/homebrew-versions/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions failed!
==> Upgrading 21 outdated packages:
gmp 6.1.1 -> 6.1.2_2
wget 1.18 -> 1.20.3_1
ffmpeg 3.4.2 -> 4.2.1_1
llvm@7 7.0.1 -> 7.1.0
gcc@5 5.4.0 -> 5.5.0_3
pixman 0.34.0_1 -> 0.38.4
mpfr 3.1.5 -> 4.0.2
glib 2.54.2 -> 2.62.2
llvm 7.0.1 -> 9.0.0
gcc 6.2.0 -> 9.2.0_1
grep 3.1 -> 3.3
mercurial 3.9.2 -> 5.1.1_2
libtasn1 4.13 -> 4.14
isl 0.17.1 -> 0.21
pcre 8.41 -> 8.43
x264 r2854 -> r2917_1
openssl 1.0.2s -> 1.0.2t
libusb 1.0.22 -> 1.0.23
mtools 4.0.18 -> 4.0.23
git 2.22.0_1 -> 2.23.0_1
libmpc 1.0.3 -> 1.1.0
==> Upgrading llvm@7
==> Downloading https://homebrew.bintray.com/bottles/[email protected].
==> Downloading from https://akamai.bintray.com/51/5140804e0811f7fd438e4f71f482b
######## 11.8%
icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
If you need to have icu4c first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc
For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
For pkg-config to find icu4c you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
Quote from: DeafEyeJedi on November 05, 2019, 10:58:39 PMWhat happens when running my Compiler.app on Catalina? It should run all scripts and install dependencies if missing.
Still trying to wrap my head around getting the compiling environment back up and running again while on Catalina...
Quote from: DeafEyeJedi on November 05, 2019, 10:58:39 PM
Still trying to wrap my head around getting the compiling environment back up and running again while on Catalina...
...Code Selecticu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).
...
Quote from: dfort on November 08, 2019, 03:25:46 PM
Not sure what icu4c is for or how you got it on your system but it isn't needed to compile ML. Maybe it will be easier to wipe out your Homebrew installation and make a fresh start. Danne's compiling app and my installation instructions should still work on Catalina -- with the modifications noted on Reply #208 (https://www.magiclantern.fm/forum/index.php?topic=16012.msg221238#msg221238)
DeafEyeJedi@Apples-Macintosh-10 ~ % brew update
brew upgrade
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/homebrew-dupes/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
fatal: unable to access 'https://github.com/Homebrew/homebrew-versions/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Fetching /usr/local/Homebrew failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes failed!
Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-versions failed!
DeafEyeJedi@Apples-Macintosh-10 ~ %
Quote from: dfort on November 09, 2019, 04:25:49 PMI´m compiling on Catalina Mlv App is working, dualiso etc(64bit). Didn´t run mlv app compiler on a vanilla catalina install though so dependencies were already installed before os update.
Have you tried the MLV App binary that's posted on the download site? Not sure if everything works on Catalina, there may still be some issues with dual_iso. IDK--better to ask on the MLV App topic.
../../build_tools/xor_chk.c:48:88: warning: format
specifies type 'unsigned long' but the argument
has type 'uint64_t' (aka 'unsigned long long')
[-Wformat]
...0x%lX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
Quote
printf("Footer magic error (expected 0x%lX, got 0x%lX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
Quote
printf("Footer magic error (expected 0x%llX, got 0x%llX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
Using ~/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc (preferred).
[ RM ] *.o *.d *.i *.s autoexec autoexec.bin magiclantern magiclantern.bin
[ RM ] 5D3_113.sym magiclantern.sym
[ RM ] magiclantern.bin autoexec autoexec.map location.map
[ RM ] autoexec-fir autoexec-fir.bin
[ RM ] magiclantern.lds
[ RM ] dietlibc.a newlib-libc.a newlib-libm.a gcc-libgcc.a
[ RM ] version.c version.bin
[ RM ] ../../build_tools/xor_chk ../../build_tools/xor_chk.exe
[ RM dir ] zip
[ RM ] *.zip
Using ~/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc (preferred).
../../Makefile.inc:70: removing ../../platform/*/magiclantern.sym
[ RM dir ] /Users/xxxx/ML repos/magic-lantern_danne_9Dec2019/platform/5D3.113/zip/
[ MKDIR ] ML directory structure...
[ CPP ] magiclantern.lds
[ AS ] entry.o
[ RM ] ../../platform/*/magiclantern.sym
mkdir -p /Users/xxxx/ML repos/magic-lantern_danne_9Dec2019/platform/5D3.113/zip
[ AS ] ../../platform/5D3.113/stubs.o
[ VERSION ] ../../platform/5D3.113/version.c
[ CC ] backtrace.o
[ CC ] boot-hack.o
[ CC ] fio-ml.o
[ CC ] mem.o
../../src/mem.c: In function 'mem_total_display':
../../src/mem.c:1389:13: warning: unused variable 'total' [-Wunused-variable]
int total = alloc_total_with_memcheck / 1024;
^
[ CC ] ico.o
[ CC ] edmac.o
[ CC ] menu.o
[ CC ] debug.o
[ CC ] rand.o
[ CC ] posix.o
[ CC ] util.o
[ CC ] imath.o
[ CC ] electronic_level.o
[ CC ] cfn.o
[ CC ] gui.o
[ CC ] picstyle.o
[ CC ] exmem.o
[ CC ] bmp.o
[ CC ] rbf_font.o
[ CC ] config.o
[ CC ] stdio.o
[ CC ] bitrate-5d3.o
[ CC ] lcdsensor.o
[ CC ] tweaks.o
[ CC ] tweaks-eyefi.o
[ CC ] lens.o
[ CC ] property.o
[ CC ] propvalues.o
[ CC ] gui-common.o
[ CC ] chdk-gui_draw.o
[ CC ] movtweaks.o
[ CC ] menuhelp.o
[ MENU IDX ] ../../src/menuindexentries.h
No menuindex.txt! The "Complete user guide" menu is empty!
Run make docq to update menuindex.txt.
[ CC ] focus.o
[ CC ] notify_box.o
[ CC ] bootflags.o
[ CC ] dialog_test.o
[ CC ] vram.o
[ CC ] greenscreen.o
[ CC ] fps-engio.o
[ CC ] shoot.o
[ CC ] hdr.o
[ CC ] lv-img-engio.o
../../src/shoot.c: In function '_prop_handler_PROP_LV_DISPSIZE':
../../src/shoot.c:688:9: warning: unused variable 'new_zoom' [-Wunused-variable]
int new_zoom = zoom;
^
../../src/shoot.c: In function 'shoot_task':
../../src/shoot.c:6310:21: warning: unused variable 'd' [-Wunused-variable]
int dt = get_interval_time();
^
[ CC ] state-object.o
[ CC ] tasks.o
[ CC ] vsync-lite.o
[ CC ] tskmon.o
[ CC ] battery.o
../../src/tskmon.c: In function 'null_pointer_check':
../../src/tskmon.c:242:66: warning: signed and unsigned type in conditional expression [-Wsign-compare]
int id = tskmon_last_task ? tskmon_last_task->taskId : -1;
^
[ CC ] imgconv.o
[ CC ] histogram.o
[ CC ] falsecolor.o
[ CC ] audio-ak.o
[ CC ] zebra.o
[ CC ] vectorscope.o
[ CC ] beep.o
[ CC ] crop-mode-hack.o
[ CC ] ph_info_disp.o
[ CC ] flexinfo.o
[ CC ] screenshot.o
[ CC ] fileprefix.o
[ CC ] lvinfo.o
[ CC ] builtin-enforcing.o
[ CC ] powersave.o
[ CC ] ml-cbr.o
[ CC ] raw.o
[ CC ] chdk-dng.o
[ CC ] edmac-memcpy.o
../../src/edmac-memcpy.c: In function 'edmac_memcpy_init':
../../src/edmac-memcpy.c:91:57: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
static int AbortEDmac_check __attribute__((used)) = &AbortEDmac;
^
../../src/chdk-dng.c:209:16: warning: 'cam_apex_shutte' defined but not used [-Wunused-variable]
static int32_t cam_apex_shutter[2] = { 0, 96 }; // Shutter speed in APEX units
^
../../src/chdk-dng.c:210:16: warning: 'cam_apex_aperture' defined but not used [-Wunused-variable]
static int32_t cam_apex_aperture[2] = { 0, 96 }; // Aperture in APEX units
^
[ CC ] patch.o
[ CC ] console.o
[ CC ] tcc-glue.o
/Library/Developer/CommandLineTools/usr/bin/make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] strncpy.o
[ AR ] lib_a-setjmp.o
[ AR ] lib_a-memcpy.o
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ VERSION ] ../../platform/5D3.113/version.bin
[ CC ] disp_direct.o
[ CC ] font_direct.o
[ CC ] cache.o
[ CC ] footer.o
[ XOR_CHK ] ../../build_tools/xor_chk
cp ../../data/fonts/*.rbf /Users/xxxx/ML repos/magic-lantern_danne_9Dec2019/platform/5D3.113/zip/ML/fonts/
cp: /Users/xxxx/ML is a directory (not copied).
make: *** [install_extra_data] Error 1
make: *** Waiting for unfinished jobs....
../../build_tools/xor_chk.c:48:88: warning: format
specifies type 'unsigned long' but the argument
has type 'uint64_t' (aka 'unsigned long long')
[-Wformat]
...0x%lX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
rosiefort@rosiefocomputer magic-lantern-Danne % hg up 19253
rosiefort@rosiefocomputer magic-lantern-Danne % cd platform/5D3.113
rosiefort@rosiefocomputer 5D3.113 % make
...
/Library/Developer/CommandLineTools/usr/bin/make -C ../../tcc
make[1]: Nothing to be done for `all'.
[ CC ] module.o
[ CC ] video_hacks.o
[ CC ] afma.o
[ CC ] asm.o
[ AR ] strrchr.o
[ AR ] dietlibc.a
[ AR ] lib_a-setjmp.o
[ AR ] newlib-libc.a
[ CP ] newlib-libm.a
[ CP ] gcc-libgcc.a
[ LD ] magiclantern
[ OBJCOPY ] magiclantern.bin
[ STAT ] magiclantern.bin
magiclantern.bin: 482956 bytes
[ CC ] reboot.o
[ CC ] disp_direct.o
[ CC ] font_direct.o
[ CC ] cache.o
[ CC ] footer.o
[ LD ] autoexec
[ XOR_CHK ] ../../build_tools/xor_chk
../../build_tools/xor_chk.c:48:88: warning: format specifies type
'unsigned long' but the argument has type 'uint64_t' (aka
'unsigned long long') [-Wformat]
...error (expected 0x%lX, got 0x%lX)\n", 0xCCCCCCCCE12FFF13, footer_magic);
~~~ ^~~~~~~~~~~~
%llX
1 warning generated.
[ OBJCOPY ] autoexec.bin
[ XOR_CHK ] autoexec.bin
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000100 0x00069500 0x00069500 0x75e8c 0x8b014 RWE 0x100
Tip: to compile faster, try one of these:
make -j8
export MAKEFLAGS='-j8'
[ SYMBOLS ] magiclantern.sym
[ CP ] 5D3_113.sym
Quote
[ XOR_CHK ] ../../build_tools/xor_chk
cp ../../data/fonts/*.rbf /Users/xxxx/ML repos/magic-lantern_danne_9Dec2019/platform/5D3.113/zip/ML/fonts/
cp: /Users/xxxx/ML is a directory (not copied).
make: *** [install_extra_data] Error 1
make: *** Waiting for unfinished jobs....
QuoteI would rename that dir so it doesn't have a space in it.
make
Using ~/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gcc (preferred).
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
chsh -s /bin/bash
brew install libressl,
brew install openssl
xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg
Last login: Thu Jun 4 12:45:37 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Macs-MacBook-Pro:~ mac$ brew install libressl,
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
vlang
==> Updated Formulae
adios2 faudio logstash
asciidoc gauge nexus
aws-cdk gnutls octant
axel grafana odin
docker-compose jenkins sslyze
docker-compose-completion klavaro
fastlane libwebsockets
Error: No available formula with the name "libressl,"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
This similarly named formula was found:
libressl
To install it, run:
brew install libressl
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
Macs-MacBook-Pro:~ mac$ brew install openssl
Warning: [email protected] 1.1.1g is already installed and up-to-date
To reinstall 1.1.1g, run `brew reinstall [email protected]`
Macs-MacBook-Pro:~ mac$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Macs-MacBook-Pro:~ mac$ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg
The file /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg does not exist.
Macs-MacBook-Pro:~ mac$
Last login: Thu Jun 4 14:56:39 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Macs-MacBook-Pro:~ mac$ brew install curl-openssl
Warning: curl-openssl 7.70.0 is already installed and up-to-date
To reinstall 7.70.0, run `brew reinstall curl-openssl`
Macs-MacBook-Pro:~ mac$ brew reinstall curl-openssl
==> Downloading https://homebrew.bintray.com/bottles/curl-openssl-7.70.0.catalin
Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/a66b27f37e4acebbe48ead1f40397229240a9adc414140de664caba036e996ce--curl-openssl-7.70.0.catalina.bottle.tar.gz
==> Reinstalling curl-openssl
==> Pouring curl-openssl-7.70.0.catalina.bottle.tar.gz
==> Caveats
curl-openssl is keg-only, which means it was not symlinked into /usr/local,
because macOS provides curl.
If you need to have curl-openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/curl-openssl/bin:$PATH"' >> ~/.profile
For compilers to find curl-openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/curl-openssl/lib"
export CPPFLAGS="-I/usr/local/opt/curl-openssl/include"
==> Summary
🍺 /usr/local/Cellar/curl-openssl/7.70.0: 457 files, 3.4MB
Macs-MacBook-Pro:~ mac$
🍺 /usr/local/Cellar/curl-openssl/7.70.0: 457 files, 3.4MB
Macs-MacBook-Pro:~ mac$ brew upgrade git
Warning: git 2.27.0 already installed
Macs-MacBook-Pro:~ mac$
Last login: Thu Jun 4 14:57:25 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
/Users/mac/Desktop/Mlv_App_compiler.app/Contents/main.command ; exit;
Macs-MacBook-Pro:~ mac$ /Users/mac/Desktop/Mlv_App_compiler.app/Contents/main.command ; exit;
updating MLV-App-master source
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:
git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only
You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.
Already up to date.
Recent commits:
23a46a0 (HEAD -> master, origin/master, origin/HEAD) Update README.md
af9caa8 Too much invisible...
87370c9 Added Transfer Function LineEdit for testing
a04936c remove all puts and prints
6277c35 Transfer function as a string. Mostly working. Only BMDFilm needs figuring out.
f56f841 Make tinyexpr compile with MLVApp
65a6d70 Added macro's for custom wb
c10890f Added tinyexpr
811d810 Added error message into copy action
4a08a9c Export/Copy the current receipt if nothing selected
----------------
MLV App compiler(thanks to Ilia3101,masc,bouncyball)
----------------
current branch: master
(c) compile MLV App
(op) compile MLV App with openmp(macOS 10.10 and onwards)
(b) check out branches
(U) update dependencies(if compiling fails)
(m) make clean
(q) quit this compiler
Please enter your selection number below and press enter:
Macs-MacBook-Pro:~ mac$ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg
The file /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.*.pkg does not exist.
Macs-MacBook-Pro:~ mac$
----------------
MLV App compiler(thanks to Ilia3101,masc,bouncyball)
----------------
current branch: master
(c) compile MLV App
(op) compile MLV App with openmp(macOS 10.10 and onwards)
(b) check out branches
(U) update dependencies(if compiling fails)
(m) make clean
(q) quit this compiler
Please enter your selection number below and press enter:
U
Updating!
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
Warning: qt 5.14.2 is already installed and up-to-date
To reinstall 5.14.2, run `brew reinstall qt`
Warning: qt5 5.14.2 already installed
fatal: not a git repository (or any of the parent directories): .git
----------------
MLV App compiler(thanks to Ilia3101,masc,bouncyball)
----------------
current branch:
(c) compile MLV App
(op) compile MLV App with openmp(macOS 10.10 and onwards)
(b) check out branches
(U) update dependencies(if compiling fails)
(m) make clean
(q) quit this compiler
Please enter your selection number below and press enter:
U
Updating!
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
HEAD is now at 49324ad17 Merge pull request #7689 from Moisan/fix_audit_release
Updated 1 tap (homebrew/core).
==> New Formulae
airshare
==> Updated Formulae
dita-ot gopass jolie vim
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
Warning: qt 5.14.2 is already installed and up-to-date
To reinstall 5.14.2, run `brew reinstall qt`
Warning: qt5 5.14.2 already installed
fatal: not a git repository (or any of the parent directories): .git
brew reinstall curl
chsh -s /bin/bash
cd Mlv_app_master && \
$(ls -d /usr/local/Cellar/qt/5* | head -1 | tr -d ':')/bin/qmake ~/MLV-App-master/platform/qt/MLVApp.pro QMAKE_CC=/usr/local/opt/llvm@7/bin/clang QMAKE_CXX=/usr/local/opt/llvm@7/bin/clang++ QMAKE_LINK=/usr/local/opt/llvm@7/bin/clang++ QMAKE_CFLAGS+=-fopenmp QMAKE_CXXFLAGS+=-fopenmp INCLUDEPATH+=-I/usr/local/opt/llvm@7/include LIBS+=-L/usr/local/opt/llvm@7/lib LIBS+=-lgomp QMAKE_MACOSX_DEPLOYMENT_TARGET=10.8 -spec macx-clang CONFIG+=x86_64 CONFIG+=release && /usr/bin/make -j4 && $(ls -d /usr/local/Cellar/qt/5* | head -1 | tr -d ':')/bin/macdeployqt ~/MLV-App-master/platform/Mlv_app_master/MLV\ App.app && \
make clean && \
/usr/local/opt/llvm@7/bin/clang
clang-7: error: no input files
Last login: Thu Jun 4 23:45:30 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Macs-MacBook-Pro:~ mac$ brew reinstall curl
==> Downloading https://homebrew.bintray.com/bottles/curl-7.70.0.catalina.bottle
Already downloaded: /Users/mac/Library/Caches/Homebrew/downloads/0dd6194ae8605b961d6c4d53d4fade5e478c2d6b45e59f64c83df221fc609920--curl-7.70.0.catalina.bottle.tar.gz
==> Reinstalling curl
==> Pouring curl-7.70.0.catalina.bottle.tar.gz
==> Caveats
curl is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
If you need to have curl first in your PATH run:
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.profile
For compilers to find curl you may need to set:
export LDFLAGS="-L/usr/local/opt/curl/lib"
export CPPFLAGS="-I/usr/local/opt/curl/include"
zsh completions have been installed to:
/usr/local/opt/curl/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/curl/7.70.0: 459 files, 3.2MB
Macs-MacBook-Pro:~ mac$
Macs-MacBook-Pro:~ mac$ chsh -s /bin/bash
Changing shell for mac.
Password for mac:
chsh: no changes made
Macs-MacBook-Pro:~ mac$
cd Mlv_app_master && \
$(ls -d /usr/local/Cellar/qt/5* | head -1 | tr -d ':')/bin/qmake ~/MLV-App-master/platform/qt/MLVApp.pro QMAKE_CC=/usr/local/opt/llvm@7/bin/clang QMAKE_CXX=/usr/local/opt/llvm@7/bin/clang++ QMAKE_LINK=/usr/local/opt/llvm@7/bin/clang++ QMAKE_CFLAGS+=-fopenmp QMAKE_CXXFLAGS+=-fopenmp INCLUDEPATH+=-I/usr/local/opt/llvm@7/include LIBS+=-L/usr/local/opt/llvm@7/lib LIBS+=-lgomp QMAKE_MACOSX_DEPLOYMENT_TARGET=10.8 -spec macx-clang CONFIG+=x86_64 CONFIG+=release && /usr/bin/make -j4 && $(ls -d /usr/local/Cellar/qt/5* | head -1 | tr -d ':')/bin/macdeployqt ~/MLV-App-master/platform/Mlv_app_master/MLV\ App.app && \make clean && \
clang-7: error: no input files
Quote from: Danne on June 05, 2020, 09:24:45 AM
You need to add your password when changing to bash.
Quote from: Danne on June 05, 2020, 09:24:45 AM
I think you need to uninstall command line tools and reinstall it.
Quote from: Danne on June 05, 2020, 09:24:45 AM
Well. Good luck for now. If you summarize your errors and try to solve them one by one it should work. Also compare the compiling string for "c" option which seems to work.
Quote from: DeafEyeJedi on June 05, 2020, 11:52:48 PM
Trying to refrain myself from downgrading this MBP to MoJave.
MODULE_CFLAGS += -I../../src/
ML_MODULES ?= \
mlv_lite \
mlv_play \
mlv_snd \
dual_iso \
silent \
lua \
crop_rec \
sd_uhs \
file_man \