autogen.sh 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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=-j8
  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/ivchart/
  63. $qtmake ivchart.pro
  64. make $MAKEOPT
  65. make clean
  66. cp libivchart.so ./../../../bin/
  67. rm Makefile
  68. rm .qmake.stash
  69. cd ../../../
  70. cd src/common/ivservice/
  71. $qtmake ivservice.pro
  72. make $MAKEOPT
  73. make clean
  74. cp libivservice.so ./../../../bin/
  75. rm Makefile
  76. rm .qmake.stash
  77. cd ../../../
  78. #cd src/common/ndt_gpu/
  79. #$qtmake ndt_gpu.pro
  80. #make $MAKEOPT
  81. #make clean
  82. #cp libndt_gpu.so ./../../../bin/
  83. #rm Makefile
  84. #rm .qmake.stash
  85. #cd ../../../
  86. cd src/common/ivlog/
  87. $qtmake ivlog.pro
  88. make $MAKEOPT
  89. make clean
  90. cp libivlog.so ./../../../bin/
  91. rm Makefile
  92. rm .qmake.stash
  93. cd ../../../
  94. cd src/common/ivfault/
  95. $qtmake ivfault.pro
  96. make $MAKEOPT
  97. make clean
  98. cp libivfault.so ./../../../bin/
  99. rm Makefile
  100. rm .qmake.stash
  101. cd ../../../
  102. cd src/common/ivbacktrace/
  103. $qtmake ivbacktrace.pro
  104. make $MAKEOPT
  105. make clean
  106. cp libivbacktrace.so ./../../../bin/
  107. rm Makefile
  108. rm .qmake.stash
  109. cd ../../../
  110. cd src/common/ivexit/
  111. $qtmake ivexit.pro
  112. make $MAKEOPT
  113. make clean
  114. cp libivexit.so ./../../../bin/
  115. rm Makefile
  116. rm .qmake.stash
  117. cd ../../../
  118. cd src/common/makeprotointerface/
  119. $qtmake makeprotointerface.pro
  120. make $MAKEOPT
  121. make clean
  122. cp makeprotointerface ./../../../bin/
  123. rm Makefile
  124. rm .qmake.stash
  125. cd ../../../
  126. controller_app_name=(
  127. controller_bus
  128. controller_jinlong_peisong
  129. controller_midcar
  130. controller_problue
  131. controller_ge3
  132. controller_vv7
  133. controller_tju_vv7
  134. controller_hapo
  135. #controller_yuhesen
  136. )
  137. for x in ${controller_app_name[@]}
  138. do
  139. cd src/controller/${x}/
  140. $qtmake ${x}.pro
  141. make $MAKEOPT
  142. make clean
  143. cp ${x} ./../../../bin/
  144. rm Makefile
  145. rm .qmake.stash
  146. rm ${x}
  147. cd ../../../
  148. done
  149. decition_app_name=(
  150. decition_brain
  151. decition_brain_sf
  152. )
  153. for x in ${decition_app_name[@]}
  154. do
  155. cd src/decition/${x}/
  156. $qtmake ${x}.pro
  157. make $MAKEOPT
  158. make clean
  159. cp ${x} ./../../../bin/
  160. rm Makefile
  161. rm .qmake.stash
  162. rm ${x}
  163. cd ../../../
  164. done
  165. driver_app_name=(
  166. driver_camera_usb
  167. #driver_can_kvaser
  168. #driver_can_vci
  169. driver_can_nvidia_agx
  170. driver_camera_ioctl
  171. #driver_cloud_grpc_client
  172. #driver_cloud_grpc_pc
  173. #driver_cloud_grpc_server
  174. driver_gps_ins550d
  175. driver_gps_hcp2
  176. driver_lidar_bk16
  177. driver_lidar_hesai40line
  178. driver_lidar_hesai40p
  179. driver_lidar_hesaipandar64
  180. driver_lidar_rs16
  181. driver_lidar_rs32
  182. driver_lidar_vlp16
  183. driver_lidar_vlp32c
  184. driver_lidar_vtdpoint
  185. driver_lidar_rsm1
  186. driver_map_trace
  187. driver_map_xodrload
  188. driver_piccompress
  189. driver_radio_p900
  190. driver_ntrip_client
  191. driver_odomtogpsimu
  192. #driver_rpc_client
  193. #driver_rpc_server
  194. driver_vbox_gaohong
  195. driver_ota_client
  196. driver_grpc_client
  197. driver_grpc_server
  198. driver_group_grpc_client
  199. )
  200. for x in ${driver_app_name[@]}
  201. do
  202. cd src/driver/${x}/
  203. $qtmake ${x}.pro
  204. make $MAKEOPT
  205. make clean
  206. cp ${x} ./../../../bin/
  207. rm Makefile
  208. rm .qmake.stash
  209. rm ${x}
  210. cd ../../../
  211. done
  212. detect_app_name=(
  213. detection_chassis
  214. detection_gps_hcp2
  215. detection_gps_vtd
  216. #detection_lidar_cnn_segmentation
  217. detection_lidar_cnntogrid
  218. detection_lidar_grid
  219. detection_lidar_ukf_pda
  220. detection_mobileye
  221. #detection_ndt_matching_gpu_multi
  222. detection_radar_delphi_esr
  223. detection_state_delphi_ins500d
  224. )
  225. for x in ${detect_app_name[@]}
  226. do
  227. cd src/detection/${x}/
  228. $qtmake ${x}.pro
  229. make $MAKEOPT
  230. make clean
  231. cp ${x} ./../../../bin/
  232. rm Makefile
  233. rm .qmake.stash
  234. rm ${x}
  235. cd ../../../
  236. done
  237. fusion_app_name=(
  238. fusion_gpsndt
  239. fusion_pointcloud_bus
  240. )
  241. for x in ${fusion_app_name[@]}
  242. do
  243. cd src/fusion/${x}/
  244. $qtmake ${x}.pro
  245. make $MAKEOPT
  246. make clean
  247. cp ${x} ./../../../bin/
  248. rm Makefile
  249. rm .qmake.stash
  250. rm ${x}
  251. cd ../../../
  252. done
  253. tool_app_name=(
  254. adciv_record
  255. adciv_replay
  256. adcndtmultimapping
  257. bqev_lidar_cnn_detect_view
  258. bqev_multilidarcalib
  259. bqev_pcdview
  260. ivmapmake
  261. ivmapmake_sharemem
  262. IVSysMan
  263. map_lanetoxodr
  264. map_mobieye
  265. PerceptionShow
  266. picview
  267. pointcloudviewer
  268. #RemoteCtrl
  269. tool_calcmd5
  270. tool_querymsg
  271. tool_xodrobj
  272. view_gps
  273. view_ivlog
  274. view_pcdmap
  275. view_radar
  276. view_rawcan
  277. tool_configivsysman
  278. ivdiagnosis
  279. map_rtkdatafromveh
  280. picview_civetweb
  281. tool_trace2vectormap
  282. view_group_grpc
  283. view_ivchart
  284. view_message
  285. )
  286. for x in ${tool_app_name[@]}
  287. do
  288. cd src/tool/${x}/
  289. $qtmake ${x}.pro
  290. make $MAKEOPT
  291. make clean
  292. cp ${x} ./../../../bin/
  293. rm Makefile
  294. rm .qmake.stash
  295. rm ${x}
  296. cd ../../../
  297. done
  298. ui_app_name=(
  299. ui_ads_hmi
  300. )
  301. for x in ${ui_app_name[@]}
  302. do
  303. cd src/ui/${x}/
  304. $qtmake ${x}.pro
  305. make $MAKEOPT
  306. make clean
  307. cp ${x} ./../../../bin/
  308. rm Makefile
  309. rm .qmake.stash
  310. rm ${x}
  311. cd ../../../
  312. done