autogen.sh 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. qtmake="/usr/lib/aarch64-linux-gnu/qt5/bin/qmake"
  2. #qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
  3. #qtmake="/opt/Qt5.11.2/5.11.2/gcc_64/bin/qmake"
  4. show_error=$1
  5. check_result()
  6. {
  7. if [ "$1" != 0 -a "$show_error" == "s" ];then
  8. echo -e "\e[33m*************************************************\e[0m"
  9. echo -e "\e[31m Please modify build error first,Exit!\e[0m"
  10. echo -e "\e[33m*************************************************\e[0m"
  11. exit 1
  12. fi
  13. }
  14. MAKEOPT=-j8
  15. mkdir bin
  16. cd src/include/proto
  17. sh ./protomake.sh
  18. cd ../../../
  19. cd src/common/modulecomm/
  20. $qtmake modulecomm.pro
  21. check_result $?
  22. make $MAKEOPT
  23. check_result $?
  24. make clean
  25. cp libmodulecomm.so ./../../../bin/
  26. rm Makefile
  27. rm .qmake.stash
  28. cd ../../../
  29. cd src/common/xmlparam/
  30. $qtmake xmlparam.pro
  31. make $MAKEOPT
  32. check_result $?
  33. make clean
  34. cp libxmlparam.so ./../../../bin/
  35. rm Makefile
  36. rm .qmake.stash
  37. cd ../../../
  38. cd src/common/ivexit/
  39. $qtmake ivexit.pro
  40. make $MAKEOPT
  41. check_result $?
  42. make clean
  43. cp libivexit.so ./../../../bin/
  44. rm Makefile
  45. rm .qmake.stash
  46. cd ../../../
  47. cd src/common/ndt_cpu/
  48. $qtmake ndt_cpu.pro
  49. make $MAKEOPT
  50. check_result $?
  51. make clean
  52. cp libndt_cpu.so ./../../../bin/
  53. rm Makefile
  54. rm .qmake.stash
  55. cd ../../../
  56. cd src/common/ivlog/
  57. $qtmake ivlog.pro
  58. make $MAKEOPT
  59. check_result $?
  60. make clean
  61. cp libivlog.so ./../../../bin/
  62. rm Makefile
  63. rm .qmake.stash
  64. cd ../../../
  65. cd src/common/ivfault/
  66. $qtmake ivfault.pro
  67. make $MAKEOPT
  68. check_result $?
  69. make clean
  70. cp libivfault.so ./../../../bin/
  71. rm Makefile
  72. rm .qmake.stash
  73. cd ../../../
  74. cd src/common/platformif/
  75. $qtmake platformif.pro
  76. make $MAKEOPT
  77. check_result $?
  78. make clean
  79. cp libplatformif.so ./../../../bin/
  80. rm Makefile
  81. rm .qmake.stash
  82. cd ../../../
  83. controller_app_name=(
  84. # controller_ge3
  85. # controller_vv7
  86. controller_problue
  87. )
  88. for x in ${controller_app_name[@]}
  89. do
  90. cd src/controller/${x}/
  91. $qtmake ${x}.pro
  92. make $MAKEOPT
  93. check_result $?
  94. make clean
  95. cp ${x} ./../../../bin/
  96. rm Makefile
  97. rm .qmake.stash
  98. rm ${x}
  99. cd ../../../
  100. done
  101. decition_app_name=(
  102. decition_brain
  103. #decition_brain_ge3
  104. #decition_brain_qingyuan
  105. #decition_brain_vv7
  106. )
  107. for x in ${decition_app_name[@]}
  108. do
  109. cd src/decition/${x}/
  110. $qtmake ${x}.pro
  111. make $MAKEOPT
  112. check_result $?
  113. make clean
  114. cp ${x} ./../../../bin/
  115. rm Makefile
  116. rm .qmake.stash
  117. rm ${x}
  118. cd ../../../
  119. done
  120. fusion_app_name=(
  121. fusion_radar_merge
  122. )
  123. for x in ${fusion_app_name[@]}
  124. do
  125. cd src/fusion/${x}/
  126. $qtmake ${x}.pro
  127. make $MAKEOPT
  128. check_result $?
  129. make clean
  130. cp ${x} ./../../../bin/
  131. rm Makefile
  132. rm .qmake.stash
  133. rm ${x}
  134. cd ../../../
  135. done
  136. driver_app_name=(
  137. # driver_lidar_rs16
  138. # driver_lidar_vlp16
  139. #driver_gps_hcp2
  140. driver_gps_ins550d
  141. driver_can_nvidia_agx
  142. # driver_can_kvaser
  143. # driver_radio_p900
  144. driver_can_vci
  145. driver_map_trace
  146. driver_map_xodrload
  147. )
  148. for x in ${driver_app_name[@]}
  149. do
  150. cd src/driver/${x}/
  151. $qtmake ${x}.pro
  152. make $MAKEOPT
  153. check_result $?
  154. make clean
  155. cp ${x} ./../../../bin/
  156. rm Makefile
  157. rm .qmake.stash
  158. rm ${x}
  159. cd ../../../
  160. done
  161. detect_app_name=(
  162. #detection_radar_conti_sr308
  163. detection_radar_delphi_esr_front
  164. detection_radar_delphi_esr_rear
  165. detection_chassis
  166. detection_lidar_distributed_server
  167. # detection_lidar_grid
  168. )
  169. for x in ${detect_app_name[@]}
  170. do
  171. cd src/detection/${x}/
  172. $qtmake ${x}.pro
  173. make $MAKEOPT
  174. check_result $?
  175. make clean
  176. cp ${x} ./../../../bin/
  177. rm Makefile
  178. rm .qmake.stash
  179. rm ${x}
  180. cd ../../../
  181. done
  182. tool_app_name=(
  183. #view_pointcloud
  184. view_gps
  185. view_rawcan
  186. view_radar
  187. IVSysMan
  188. ivmapmake
  189. view_ivlog
  190. tool_querymsg
  191. tool_xodrobj
  192. ivlog_record
  193. adciv_record
  194. )
  195. for x in ${tool_app_name[@]}
  196. do
  197. cd src/tool/${x}/
  198. $qtmake ${x}.pro
  199. make $MAKEOPT
  200. check_result $?
  201. make clean
  202. cp ${x} ./../../../bin/
  203. rm Makefile
  204. rm .qmake.stash
  205. rm ${x}
  206. cd ../../../
  207. done
  208. ui_app_name=(
  209. ui_ads_hmi
  210. )
  211. for x in ${ui_app_name[@]}
  212. do
  213. cd src/ui/${x}/
  214. $qtmake ${x}.pro
  215. make $MAKEOPT
  216. check_result $?
  217. make clean
  218. cp ${x} ./../../../bin/
  219. rm Makefile
  220. rm .qmake.stash
  221. rm ${x}
  222. cd ../../../
  223. done