autogen.sh 3.5 KB

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