crosscompile osx on ubuntu
1 sudo apt-get update
2 sudo apt-get upgrade
3 wget https://launchpad.net/~flosoft/+archive/cross-apple/+build/2439127/+files/apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
4 hg clone http://crosstool-ng.org/hg/crosstool-ng
5 sudo apt-get install mercurial
6 hg clone http://crosstool-ng.org/hg/crosstool-ng
7 cd crosstool-ng
8 ./bootstrap
9 ./configure --enable-local
10 ls
11 ./bootstrap
12 ls
13 sudo apt-get install autoconf
14 ./bootstrap
15 ./configure --enable-local
16 sudo apt-get install clang
17 ./configure --enable-local
18 sudo apt-get install gperf
19 ./configure --enable-local
20 sudo apt-get install bison
21 ./configure --enable-local
22 sudo apt-get install flex
23 ./configure --enable-local
24 sudo apt-get install makeinfo
25 sudo apt-get install textinfo
26 sudo apt-get install texinfo
27 ./configure --enable-local
28 sudo apt-get install gawk
29 ./configure --enable-local
30 sudo apt-get install make
31 ./configure --enable-local
32 sudo apt-get install libtool
33 ./configure --enable-local
34 sudo apt-get install ncurses
35 sudo apt-get install libncurses5-dev
36 ./configure --enable-local
37 nano ~/.bashrc
38 nano history
39 history
40 make -j5
41 ./ct-ng help
42 ./ct-ng menuconfig
43 ./ct-ng build
44 sudo apt-get install gcc
45 ./ct-ng build
46 sudo apt-get install g++
47 ./ct-ng build
48 ./ct-ng menuconfig
49 cd ..
50 ls
51 deb -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
52 dpkg -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
53 sudo dpkg -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
54 ./ct-ng menuconfig
55 ls
56 cd crosstool-ng/
57 cd ..
58 cd x-tools/
59 ls
60 cd ..
61 cd crosstool-ng/
62 ls
63 ./ct-ng menuconfig
64 nano configure
65 ./bootstrap
66 ./configure --enable-local
67 make -j6
68* ./ct-ng h
69 cd ..
70 rm -rf crosstool-ng/
71 git clone https://github.com/diorcety/crosstool-ng/tree/cctools-llvm
72 hg clone https://github.com/diorcety/crosstool-ng/tree/cctools-llvm
73 apt-get install git
74 sudo apt-get install git
75 git clone https://github.com/diorcety/crosstool-ng/tree/cctools-llvm
76 sudo apt-get install svn
77 sudo apt-get install subversion
78 svn co https://github.com/diorcety/crosstool-ng.git
79 cd crosstool-ng.git/
80 ls
81 cd trunk/
82 ls
83 ./bootstrap
84 ./configure
85 make
86 ./ct-ng menuconfig
87 ./configure --enable-local
88 make
89 ./ct-ng menuconfig
90 cd ..
91 ls
92 cd branches/
93 ls
94 cd darwin
95 ls
96 ./bootstrap
97 ./configure --enable-local
98 ./ct-ng menuconfig
99 make -j6
100 ./ct-ng menuconfig
101 ./configure --help
102 cd docs/
103 ls
104 nano 1\ -\ Introduction.txt
105 nano 2\ -\ Installing\ crosstool-NG.txt
106 cd ..
107 ls
108 cd trunk/
109 ls
110 ls config/kernel
111 cd ..
112 cd branches/
113 ls
114 cd cctools-
115 cd cctools-llvm/
116 ls
117 ./bootstrap
118 ./configure --enable-local
119 make -j6
120 ./ct-ng menuconfig
121 cd ..
122 ls
123 ls x-tools/alphaev4-unknown-elf/
124 ls x-tools/alphaev4-unknown-elf/bin/
125 ls x-tools/alphaev4-unknown-elf/lib
126 ls x-tools/alphaev4-unknown-elf/lib64
127 ls x-tools/alphaev4-unknown-elf/lib64/
128 ls x-tools/alphaev4-unknown-elf/alphaev4-unknown-elf/
129 ls
130 cd crosstool-ng.git/
131 ls
132 cd branches/
133 ls
134 cd ..
135 cd trunk/
136 ls
137 ./ct-ng menuconfig
138 cd ..
139 cd branches/cctools-llvm/
140 ls
141 ls $HOMe
142 ls $HOME
143 ./configure --prefix=$HOME/ct-ng-build
144 make
145 make install
146 cd ..
147 ls
148 cd ct-ng-build/
149 ls
150 ls bin/
151 export PATH="${PATH}":$HOME/ct-ng-build
152 cd ..
153 mkdir $HOME/ct-ng-final
154 cd ct-ng-final/
155 ls
156 ct-ng list-samples
157 cd..
158 cd ..
159 ls ct-ng-build/
160 ls ct-ng-build/bin/
161 nano ~/.bashrc
162 echo $PATH
163 ct-ng
164 export PATH="${PATH}":$HOME/ct-ng-build/bin
165 ct-ng
166 ls
167 cd ct-ng-final/
168 ls
169 ct-ng list-samples
170 ct-ng i686-apple-darwin10
171 ls
172 nano config.gen/
173 nano config
174 ls
175 ls config
176 ls config/binutils
177 ls
178 ls config.gen/
179 ls
180 ct-ng list-samples
181 ls
182 ls config
183 ls config/arch/
184 ls cc
185 nano .config
186 ls
187 cd ..
188 ls
189 ls x-tools/
190 ls x-tools/alphaev4-unknown-elf/
191 cd ct-ng-final/
192 nano .config
193 ls
194 ct-ng build
195 mkdir /home/taadmin/src
196 ct-ng build
197 nano build.log
198 ct-ng list-samples
199 ct-ng ct-ng i686-apple-darwin11
200 ct-ng i686-apple-darwin11
201 ct-ng build
202 ct-ng help
203 ct-ng menuconfig
204 ct-ng i686-apple-darwin10
205 ct-ng menuconfig
206 ct-ng build
207 ct-ng menuconfig
208 ls $HOME
209 ls $HOME\x-tools
210 ls \$HOME/
211 cd ..
212 ls x-tools/
213 ls x-tools/i686-apple-darwin10/
214* ls x-tools/i686-apple-darwin10/
215 cd ct-ng-final/
216 ct-ng menuconfig
217 ct-ng build
218 nano build.log
219 apt-get remove g++
220 sudo apt-get remove g++
221 sudo apt-get remove gcc
222 ct-ng build
223 ct-ng menuconfig
224 ls \$HOME/x-tools
225 ls $HOME/x-tools
226 cd ..
227 ls
228 rm -rf x-tools/
229 dpkg -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
230 sudo dpkg -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
231 ls
232 sudo dpkg -i -R apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
233 ls
234 sudo dpkg -u apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
235 dpkg -l | grep 'apple'
236 sudo dpkg -r apple-uni-sdk-10.6
237 sudo dpkg -i apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
238 ls
239 sudo dpkg -c apple-uni-sdk-10.6_20110407-0.flosoft1_amd64.deb
240 cd ..
241 wget http://adcdownload.apple.com/Developer_Tools/xcode_4.2_for_lion_21264/installxcode_42_lion.dmg
242 history