autogen.sh 3.4 KB

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