-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildallpro.sh
190 lines (187 loc) · 3.72 KB
/
buildallpro.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#此脚本只适用于linux下使用
source /opt/fsl-imx-x11/4.1.15-2.1.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi
#!/bin/bash
path=$(pwd)
# 1
echo "building QClock...."
cd $path/QClock/QClock
rm QClock
sync
qmake
make -j 16
make clean
rm Makefile
#2
echo "building QCalendar...."
cd $path/QCalendar/QCalendar
rm QCalendar
sync
qmake
make -j 16
make clean
rm Makefile
#3
echo "building QFileView...."
cd $path/QFileView/QFileView
rm QFileView
sync
qmake
make -j 16
make clean
rm Makefile
#4
echo "building QLed...."
cd $path/QLed/QLed
rm QLed
sync
qmake
make -j 16
make clean
rm Makefile
#5
echo "building QMusicPlayer...."
cd $path/QMusicPlayer/QMusicPlayer
rm QMusicPlayer
sync
qmake
make -j 16
make clean
rm Makefile
#6
echo "building QOnlineWeather...."
cd $path/QOnlineWeather/QOnlineWeather
rm QOnlineWeather
sync
qmake
make -j 16
make clean
rm Makefile
7
echo "building QReader...."
cd $path/QReader/QReader
rm QReader
sync
qmake
make -j 16
make clean
rm Makefile
#8
echo "building QCalculator...."
cd $path/QCalculator/QCalculator
rm QCalculator
sync
qmake
make -j 16
make clean
rm Makefile
#9
echo "building QCamera...."
cd $path/QCamera/QCamera
rm QCamera
sync
qmake
make -j 16
make clean
rm Makefile
#10
echo "building QDesktop...."
cd $path/QDesktop/QDesktop
rm QDesktop
sync
qmake
make -j 16
make clean
rm Makefile
#11
echo "building QImageViewer...."
cd $path/QImageViewer/QImageViewer
rm QImageViewer
sync
qmake
make -j 16
make clean
rm Makefile
#12
echo "building QMediaPlayer...."
cd $path/QMediaPlayer/QMediaPlayer
rm QMediaPlayer
sync
qmake
make -j 16
make clean
rm Makefile
#13
echo "building QNotepad...."
cd $path/QNotepad/QNotepad
rm QNotepad
sync
qmake
make -j 16
make clean
rm Makefile
#14
echo "building QPictureViewer...."
cd $path/QPictureViewer/QPictureViewer
rm QPictureViewer
sync
qmake
make -j 16
make clean
rm Makefile
#15
echo "building QRecorder...."
cd $path/QRecorder/QRecorder
rm QRecorder
sync
qmake
make -j 16
make clean
rm Makefile
#16
echo "building QTemperature...."
cd $path/QTemperature/QTemperature
rm QTemperature
sync
qmake
make -j 16
make clean
rm Makefile
#17
echo "building QWebBrowser...."
cd $path/QWebBrowser/QWebBrowser
rm QWebBrowser
sync
qmake
make -j 16
make clean
rm Makefile
#178
echo "building QAutotest...."
cd $path/QAutotest/QAutotest
rm QAutotest
sync
qmake
make -j 16
make clean
rm Makefile
#image update
cp $path/QWebBrowser/QWebBrowser/QWebBrowser $path/qt5.5.1/apps/QWebBrowser
cp $path/QTemperature/QTemperature/QTemperature $path/qt5.5.1/apps/QTemperature
cp $path/QRecorder/QRecorder/QRecorder $path/qt5.5.1/apps/QRecorder
cp $path/QPictureViewer/QPictureViewer/QPictureViewer $path/qt5.5.1/apps/QPictureViewer
cp $path/QNotepad/QNotepad/QNotepad $path/qt5.5.1/apps/QNotepad
cp $path/QMediaPlayer/QMediaPlayer/QMediaPlayer $path/qt5.5.1/apps/QMediaPlayer
cp $path/QImageViewer/QImageViewer/QImageViewer $path/qt5.5.1/apps/QImageViewer
cp $path/QDesktop/QDesktop/QDesktop $path/qt5.5.1/apps/QDesktop
cp $path/QCamera/QCamera/QCamera $path/qt5.5.1/apps/QCamera
cp $path/QCalculator/QCalculator/QCalculator $path/qt5.5.1/apps/QCalculator
cp $path/QReader/QReader/QReader $path/qt5.5.1/apps/QReader
cp $path/QOnlineWeather/QOnlineWeather/QOnlineWeather $path/qt5.5.1/apps/QOnlineWeather
cp $path/QMusicPlayer/QMusicPlayer/QMusicPlayer $path/qt5.5.1/apps/QMusicPlayer
cp $path/QLed/QLed/QLed $path/qt5.5.1/apps/QLed
cp $path/QFileView/QFileView/QFileView $path/qt5.5.1/apps/QFileView
cp $path/QClock/QClock/QClock $path/qt5.5.1/apps/QClock
cp $path/QCalendar/QCalendar/QCalendar $path/qt5.5.1/apps/QCalendar
cp $path/QAutotest/QAutotest/QAutotest $path/qt5.5.1/apps/QAutotest
echo "构建完成,请把qt5.5.1这个文件夹替换到文件系统的/opt目录下"
cd $path