autogen.sh 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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/ivbacktrace/
  73. $qtmake ivbacktrace.pro
  74. make $MAKEOPT
  75. check_result $?
  76. make clean
  77. cp libivbacktrace.so ./../../../bin/
  78. rm Makefile
  79. rm .qmake.stash
  80. cd ../../../
  81. cd src/common/platformif/
  82. $qtmake platformif.pro
  83. make $MAKEOPT
  84. check_result $?
  85. make clean
  86. cp libplatformif.so ./../../../bin/
  87. rm Makefile
  88. rm .qmake.stash
  89. cd ../../../
  90. controller_app_name=(
  91. controller_ge3
  92. # controller_vv7
  93. )
  94. for x in ${controller_app_name[@]}
  95. do
  96. cd src/controller/${x}/
  97. $qtmake ${x}.pro
  98. make $MAKEOPT
  99. check_result $?
  100. make clean
  101. cp ${x} ./../../../bin/
  102. rm Makefile
  103. rm .qmake.stash
  104. rm ${x}
  105. cd ../../../
  106. done
  107. decition_app_name=(
  108. decition_brain
  109. #decition_brain_ge3
  110. #decition_brain_qingyuan
  111. #decition_brain_vv7
  112. )
  113. for x in ${decition_app_name[@]}
  114. do
  115. cd src/decition/${x}/
  116. $qtmake ${x}.pro
  117. make $MAKEOPT
  118. check_result $?
  119. make clean
  120. cp ${x} ./../../../bin/
  121. rm Makefile
  122. rm .qmake.stash
  123. rm ${x}
  124. cd ../../../
  125. done
  126. driver_app_name=(
  127. driver_lidar_rs16
  128. # driver_lidar_vlp16
  129. driver_gps_hcp2
  130. #driver_gps_ins550d
  131. driver_can_nvidia_agx
  132. #driver_can_kvaser
  133. driver_radio_p900
  134. # driver_can_vci
  135. driver_map_trace
  136. driver_map_xodrload
  137. )
  138. for x in ${driver_app_name[@]}
  139. do
  140. cd src/driver/${x}/
  141. $qtmake ${x}.pro
  142. make $MAKEOPT
  143. check_result $?
  144. make clean
  145. cp ${x} ./../../../bin/
  146. rm Makefile
  147. rm .qmake.stash
  148. rm ${x}
  149. cd ../../../
  150. done
  151. detect_app_name=(
  152. #detection_radar_conti_sr308
  153. detection_radar_delphi_esr
  154. detection_chassis
  155. detection_lidar_grid
  156. )
  157. for x in ${detect_app_name[@]}
  158. do
  159. cd src/detection/${x}/
  160. $qtmake ${x}.pro
  161. make $MAKEOPT
  162. check_result $?
  163. make clean
  164. cp ${x} ./../../../bin/
  165. rm Makefile
  166. rm .qmake.stash
  167. rm ${x}
  168. cd ../../../
  169. done
  170. tool_app_name=(
  171. #view_pointcloud
  172. view_gps
  173. view_rawcan
  174. view_radar
  175. IVSysMan
  176. ivmapmake
  177. view_ivlog
  178. tool_querymsg
  179. tool_xodrobj
  180. ivlog_record
  181. adciv_record
  182. )
  183. for x in ${tool_app_name[@]}
  184. do
  185. cd src/tool/${x}/
  186. $qtmake ${x}.pro
  187. make $MAKEOPT
  188. check_result $?
  189. make clean
  190. cp ${x} ./../../../bin/
  191. rm Makefile
  192. rm .qmake.stash
  193. rm ${x}
  194. cd ../../../
  195. done
  196. ui_app_name=(
  197. ui_ads_hmi
  198. )
  199. for x in ${ui_app_name[@]}
  200. do
  201. cd src/ui/${x}/
  202. $qtmake ${x}.pro
  203. make $MAKEOPT
  204. check_result $?
  205. make clean
  206. cp ${x} ./../../../bin/
  207. rm Makefile
  208. rm .qmake.stash
  209. rm ${x}
  210. cd ../../../
  211. done