autogen.sh 4.8 KB

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