autogen.sh 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. #qtmake="/opt/qt/5.10.1/gcc_64/bin/qmake"
  2. qtmake=" "
  3. if [ ${#qtmake} -lt 5 ]; then
  4. echo "now need find qmake "
  5. optfiles=`find /opt -name 'qmake'`
  6. for entry in $optfiles
  7. do
  8. x=${entry:0-17:17}
  9. if [ "$x" == "/gcc_64/bin/qmake" ]; then
  10. qtmake="$entry"
  11. echo " -----find qmake"
  12. echo "$qtmake"
  13. fi
  14. done
  15. fi
  16. if [ ${#qtmake} -lt 5 ]; then
  17. echo "maybe agx,find qmake in usr folder "
  18. optfiles=`find /usr -name 'qmake'`
  19. for entry in $optfiles
  20. do
  21. x=${entry:0-14:14}
  22. if [ "$x" == "/qt5/bin/qmake" ]; then
  23. qtmake="$entry"
  24. echo " -----find qmake"
  25. echo "$qtmake"
  26. fi
  27. done
  28. fi
  29. MAKEOPT=-j2
  30. cd ../../
  31. mkdir bin
  32. cd src/include/proto
  33. sh ./protomake.sh
  34. cd ../../../
  35. cd src/include/proto3
  36. sh ./protomake.sh
  37. cd ../../../
  38. cd src/common/modulecomm/
  39. $qtmake modulecomm.pro
  40. make $MAKEOPT
  41. make clean
  42. cp libmodulecomm.so ./../../../bin/
  43. rm Makefile
  44. rm .qmake.stash
  45. cd ../../../
  46. cd src/common/xmlparam/
  47. $qtmake xmlparam.pro
  48. make $MAKEOPT
  49. make clean
  50. cp libxmlparam.so ./../../../bin/
  51. rm Makefile
  52. rm .qmake.stash
  53. cd ../../../
  54. cd src/common/ndt_cpu/
  55. $qtmake ndt_cpu.pro
  56. make $MAKEOPT
  57. make clean
  58. cp libndt_cpu.so ./../../../bin/
  59. rm Makefile
  60. rm .qmake.stash
  61. cd ../../../
  62. #cd src/common/ndt_gpu/
  63. #$qtmake ndt_gpu.pro
  64. #make $MAKEOPT
  65. #make clean
  66. #cp libndt_gpu.so ./../../../bin/
  67. #rm Makefile
  68. #rm .qmake.stash
  69. #cd ../../../
  70. cd src/common/ivlog/
  71. $qtmake ivlog.pro
  72. make $MAKEOPT
  73. make clean
  74. cp libivlog.so ./../../../bin/
  75. rm Makefile
  76. rm .qmake.stash
  77. cd ../../../
  78. cd src/common/ivfault/
  79. $qtmake ivfault.pro
  80. make $MAKEOPT
  81. make clean
  82. cp libivfault.so ./../../../bin/
  83. rm Makefile
  84. rm .qmake.stash
  85. cd ../../../
  86. cd src/common/ivbacktrace/
  87. $qtmake ivbacktrace.pro
  88. make $MAKEOPT
  89. make clean
  90. cp libivbacktrace.so ./../../../bin/
  91. rm Makefile
  92. rm .qmake.stash
  93. cd ../../../
  94. cd src/common/ivexit/
  95. $qtmake ivexit.pro
  96. make $MAKEOPT
  97. make clean
  98. cp libivexit.so ./../../../bin/
  99. rm Makefile
  100. rm .qmake.stash
  101. cd ../../../
  102. controller_app_name=(
  103. controller_bus
  104. controller_jinlong_peisong
  105. controller_midcar
  106. controller_problue
  107. controller_ge3
  108. controller_vv7
  109. controller_tju_vv7
  110. )
  111. for x in ${controller_app_name[@]}
  112. do
  113. cd src/controller/${x}/
  114. $qtmake ${x}.pro
  115. make $MAKEOPT
  116. make clean
  117. cp ${x} ./../../../bin/
  118. rm Makefile
  119. rm .qmake.stash
  120. rm ${x}
  121. cd ../../../
  122. done
  123. decition_app_name=(
  124. decition_brain
  125. )
  126. for x in ${decition_app_name[@]}
  127. do
  128. cd src/decition/${x}/
  129. $qtmake ${x}.pro
  130. make $MAKEOPT
  131. make clean
  132. cp ${x} ./../../../bin/
  133. rm Makefile
  134. rm .qmake.stash
  135. rm ${x}
  136. cd ../../../
  137. done
  138. driver_app_name=(
  139. driver_camera_usb
  140. driver_can_kvaser
  141. driver_can_vci
  142. driver_can_nvidia_agx
  143. #driver_cloud_grpc_client
  144. #driver_cloud_grpc_pc
  145. #driver_cloud_grpc_server
  146. driver_gps_ins550d
  147. driver_gps_hcp2
  148. driver_lidar_bk16
  149. driver_lidar_hesai40line
  150. driver_lidar_hesai40p
  151. driver_lidar_hesaipandar64
  152. driver_lidar_rs16
  153. driver_lidar_rs32
  154. driver_lidar_vlp16
  155. driver_lidar_vlp32c
  156. driver_lidar_vtdpoint
  157. driver_map_trace
  158. driver_map_xodrload
  159. driver_piccompress
  160. driver_radio_p900
  161. #driver_rpc_client
  162. #driver_rpc_server
  163. driver_vbox_gaohong
  164. )
  165. for x in ${driver_app_name[@]}
  166. do
  167. cd src/driver/${x}/
  168. $qtmake ${x}.pro
  169. make $MAKEOPT
  170. make clean
  171. cp ${x} ./../../../bin/
  172. rm Makefile
  173. rm .qmake.stash
  174. rm ${x}
  175. cd ../../../
  176. done
  177. detect_app_name=(
  178. detection_chassis
  179. detection_gps_hcp2
  180. detection_gps_vtd
  181. #detection_lidar_cnn_segmentation
  182. detection_lidar_cnntogrid
  183. detection_lidar_grid
  184. detection_lidar_ukf_pda
  185. detection_mobileye
  186. #detection_ndt_matching_gpu_multi
  187. detection_radar_delphi_esr
  188. detection_state_delphi_ins500d
  189. )
  190. for x in ${detect_app_name[@]}
  191. do
  192. cd src/detection/${x}/
  193. $qtmake ${x}.pro
  194. make $MAKEOPT
  195. make clean
  196. cp ${x} ./../../../bin/
  197. rm Makefile
  198. rm .qmake.stash
  199. rm ${x}
  200. cd ../../../
  201. done
  202. fusion_app_name=(
  203. fusion_gpsndt
  204. fusion_pointcloud_bus
  205. )
  206. for x in ${fusion_app_name[@]}
  207. do
  208. cd src/fusion/${x}/
  209. $qtmake ${x}.pro
  210. make $MAKEOPT
  211. make clean
  212. cp ${x} ./../../../bin/
  213. rm Makefile
  214. rm .qmake.stash
  215. rm ${x}
  216. cd ../../../
  217. done
  218. tool_app_name=(
  219. adciv_record
  220. adciv_replay
  221. adcndtmultimapping
  222. bqev_lidar_cnn_detect_view
  223. bqev_multilidarcalib
  224. bqev_pcdview
  225. ivmapmake
  226. ivmapmake_sharemem
  227. IVSysMan
  228. map_lanetoxodr
  229. map_mobieye
  230. PerceptionShow
  231. picview
  232. pointcloudviewer
  233. #RemoteCtrl
  234. tool_calcmd5
  235. tool_querymsg
  236. tool_xodrobj
  237. view_gps
  238. view_ivlog
  239. view_pcdmap
  240. view_radar
  241. view_rawcan
  242. tool_configivsysman
  243. )
  244. for x in ${tool_app_name[@]}
  245. do
  246. cd src/tool/${x}/
  247. $qtmake ${x}.pro
  248. make $MAKEOPT
  249. make clean
  250. cp ${x} ./../../../bin/
  251. rm Makefile
  252. rm .qmake.stash
  253. rm ${x}
  254. cd ../../../
  255. done
  256. ui_app_name=(
  257. ui_ads_hmi
  258. )
  259. for x in ${ui_app_name[@]}
  260. do
  261. cd src/ui/${x}/
  262. $qtmake ${x}.pro
  263. make $MAKEOPT
  264. make clean
  265. cp ${x} ./../../../bin/
  266. rm Makefile
  267. rm .qmake.stash
  268. rm ${x}
  269. cd ../../../
  270. done