p900_agx_gen.sh 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. :<<!
  20. cd src/common/modulecomm/
  21. $qtmake modulecomm.pro
  22. check_result $?
  23. make $MAKEOPT
  24. check_result $?
  25. make clean
  26. cp libmodulecomm.so ./../../../bin/
  27. rm Makefile
  28. rm .qmake.stash
  29. cd ../../../
  30. cd src/common/xmlparam/
  31. $qtmake xmlparam.pro
  32. make $MAKEOPT
  33. check_result $?
  34. make clean
  35. cp libxmlparam.so ./../../../bin/
  36. rm Makefile
  37. rm .qmake.stash
  38. cd ../../../
  39. cd src/common/ivexit/
  40. $qtmake ivexit.pro
  41. make $MAKEOPT
  42. check_result $?
  43. make clean
  44. cp libivexit.so ./../../../bin/
  45. rm Makefile
  46. rm .qmake.stash
  47. cd ../../../
  48. cd src/common/ndt_cpu/
  49. $qtmake ndt_cpu.pro
  50. make $MAKEOPT
  51. check_result $?
  52. make clean
  53. cp libndt_cpu.so ./../../../bin/
  54. rm Makefile
  55. rm .qmake.stash
  56. cd ../../../
  57. cd src/common/ivlog/
  58. $qtmake ivlog.pro
  59. make $MAKEOPT
  60. check_result $?
  61. make clean
  62. cp libivlog.so ./../../../bin/
  63. rm Makefile
  64. rm .qmake.stash
  65. cd ../../../
  66. cd src/common/ivfault/
  67. $qtmake ivfault.pro
  68. make $MAKEOPT
  69. check_result $?
  70. make clean
  71. cp libivfault.so ./../../../bin/
  72. rm Makefile
  73. rm .qmake.stash
  74. cd ../../../
  75. cd src/common/platformif/
  76. $qtmake platformif.pro
  77. make $MAKEOPT
  78. check_result $?
  79. make clean
  80. cp libplatformif.so ./../../../bin/
  81. rm Makefile
  82. rm .qmake.stash
  83. cd ../../../
  84. controller_app_name=(
  85. controller_ge3
  86. controller_vv7
  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. !
  121. driver_app_name=(
  122. i# driver_lidar_rs16
  123. # driver_lidar_vlp16
  124. # driver_gps_hcp2
  125. #driver_gps_ins550d
  126. #driver_can_nvidia_agx
  127. # driver_can_kvaser
  128. driver_radio_p900
  129. # driver_can_vci
  130. driver_map_trace
  131. # driver_map_xodrload
  132. )
  133. for x in ${driver_app_name[@]}
  134. do
  135. cd src/driver/${x}/
  136. $qtmake ${x}.pro
  137. make $MAKEOPT
  138. check_result $?
  139. make clean
  140. cp ${x} ./../../../bin/
  141. rm Makefile
  142. rm .qmake.stash
  143. rm ${x}
  144. cd ../../../
  145. done
  146. :<<!
  147. detect_app_name=(
  148. #detection_radar_conti_sr308
  149. detection_radar_delphi_esr
  150. detection_chassis
  151. detection_lidar_grid
  152. )
  153. for x in ${detect_app_name[@]}
  154. do
  155. cd src/detection/${x}/
  156. $qtmake ${x}.pro
  157. make $MAKEOPT
  158. check_result $?
  159. make clean
  160. cp ${x} ./../../../bin/
  161. rm Makefile
  162. rm .qmake.stash
  163. rm ${x}
  164. cd ../../../
  165. done
  166. tool_app_name=(
  167. #view_pointcloud
  168. # view_gps
  169. # view_rawcan
  170. # tool_mapcreate
  171. # view_radar
  172. # IVSysMan
  173. # ivmapmake
  174. # view_ivlog
  175. # tool_querymsg
  176. # tool_xodrobj
  177. # ivlog_record
  178. # adciv_record
  179. )
  180. for x in ${tool_app_name[@]}
  181. do
  182. cd src/tool/${x}/
  183. $qtmake ${x}.pro
  184. make $MAKEOPT
  185. check_result $?
  186. make clean
  187. cp ${x} ./../../../bin/
  188. rm Makefile
  189. rm .qmake.stash
  190. rm ${x}
  191. cd ../../../
  192. done
  193. ui_app_name=(
  194. ui_ads_hmi
  195. )
  196. for x in ${ui_app_name[@]}
  197. do
  198. cd src/ui/${x}/
  199. $qtmake ${x}.pro
  200. make $MAKEOPT
  201. check_result $?
  202. make clean
  203. cp ${x} ./../../../bin/
  204. rm Makefile
  205. rm .qmake.stash
  206. rm ${x}
  207. cd ../../../
  208. done
  209. !