p900_gen.sh 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
  2. #qtmake="/opt/Qt5.11.2/5.11.2/gcc_64/bin/qmake"
  3. show_error=$1
  4. check_result()
  5. {
  6. if [ "$1" != 0 -a "$show_error" == "s" ];then
  7. echo -e "\e[33m*************************************************\e[0m"
  8. echo -e "\e[31m Please modify build error first,Exit!\e[0m"
  9. echo -e "\e[33m*************************************************\e[0m"
  10. exit 1
  11. fi
  12. }
  13. MAKEOPT=-j8
  14. mkdir bin
  15. cd src/include/proto
  16. sh ./protomake.sh
  17. cd ../../../
  18. :<<!
  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. )
  87. for x in ${controller_app_name[@]}
  88. do
  89. cd src/controller/${x}/
  90. $qtmake ${x}.pro
  91. make $MAKEOPT
  92. check_result $?
  93. make clean
  94. cp ${x} ./../../../bin/
  95. rm Makefile
  96. rm .qmake.stash
  97. rm ${x}
  98. cd ../../../
  99. done
  100. decition_app_name=(
  101. decition_brain
  102. #decition_brain_ge3
  103. #decition_brain_qingyuan
  104. #decition_brain_vv7
  105. )
  106. for x in ${decition_app_name[@]}
  107. do
  108. cd src/decition/${x}/
  109. $qtmake ${x}.pro
  110. make $MAKEOPT
  111. check_result $?
  112. make clean
  113. cp ${x} ./../../../bin/
  114. rm Makefile
  115. rm .qmake.stash
  116. rm ${x}
  117. cd ../../../
  118. done
  119. !
  120. driver_app_name=(
  121. # driver_lidar_rs16
  122. # driver_lidar_vlp16
  123. # driver_gps_hcp2
  124. #driver_gps_ins550d
  125. #driver_can_nvidia_agx
  126. # driver_can_kvaser
  127. driver_radio_p900
  128. # driver_can_vci
  129. # driver_map_trace
  130. # driver_map_xodrload
  131. )
  132. for x in ${driver_app_name[@]}
  133. do
  134. cd src/driver/${x}/
  135. $qtmake ${x}.pro
  136. make $MAKEOPT
  137. check_result $?
  138. make clean
  139. cp ${x} ./../../../bin/
  140. rm Makefile
  141. rm .qmake.stash
  142. rm ${x}
  143. cd ../../../
  144. done
  145. :<<!
  146. detect_app_name=(
  147. #detection_radar_conti_sr308
  148. detection_radar_delphi_esr
  149. detection_chassis
  150. detection_lidar_grid
  151. )
  152. for x in ${detect_app_name[@]}
  153. do
  154. cd src/detection/${x}/
  155. $qtmake ${x}.pro
  156. make $MAKEOPT
  157. check_result $?
  158. make clean
  159. cp ${x} ./../../../bin/
  160. rm Makefile
  161. rm .qmake.stash
  162. rm ${x}
  163. cd ../../../
  164. done
  165. tool_app_name=(
  166. #view_pointcloud
  167. # view_gps
  168. # view_rawcan
  169. # tool_mapcreate
  170. # view_radar
  171. # IVSysMan
  172. # ivmapmake
  173. # view_ivlog
  174. # tool_querymsg
  175. # tool_xodrobj
  176. # ivlog_record
  177. # adciv_record
  178. )
  179. for x in ${tool_app_name[@]}
  180. do
  181. cd src/tool/${x}/
  182. $qtmake ${x}.pro
  183. make $MAKEOPT
  184. check_result $?
  185. make clean
  186. cp ${x} ./../../../bin/
  187. rm Makefile
  188. rm .qmake.stash
  189. rm ${x}
  190. cd ../../../
  191. done
  192. ui_app_name=(
  193. ui_ads_hmi
  194. )
  195. for x in ${ui_app_name[@]}
  196. do
  197. cd src/ui/${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. !