autogen.sh 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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 pilotlib
  32. mkdir pilotbin
  33. cd src/include/proto
  34. sh ./protomake.sh
  35. cd ../../../
  36. cd src/include/proto3
  37. sh ./protomake.sh
  38. cd ../../../
  39. cd src/common/modulecomm/
  40. $qtmake modulecomm.pro
  41. make $MAKEOPT
  42. make clean
  43. cp libmodulecomm.so ./../../../bin/
  44. rm Makefile
  45. rm .qmake.stash
  46. cd ../../../
  47. cd src/common/xmlparam/
  48. $qtmake xmlparam.pro
  49. make $MAKEOPT
  50. make clean
  51. cp libxmlparam.so ./../../../bin/
  52. rm Makefile
  53. rm .qmake.stash
  54. cd ../../../
  55. cd src/common/ndt_cpu/
  56. $qtmake ndt_cpu.pro
  57. make $MAKEOPT
  58. make clean
  59. cp libndt_cpu.so ./../../../bin/
  60. rm Makefile
  61. rm .qmake.stash
  62. cd ../../../
  63. cd src/common/ivchart/
  64. $qtmake ivchart.pro
  65. make $MAKEOPT
  66. make clean
  67. cp libivchart.so ./../../../bin/
  68. rm Makefile
  69. rm .qmake.stash
  70. cd ../../../
  71. cd src/common/ivservice/
  72. $qtmake ivservice.pro
  73. make $MAKEOPT
  74. make clean
  75. cp libivservice.so ./../../../bin/
  76. rm Makefile
  77. rm .qmake.stash
  78. cd ../../../
  79. #cd src/common/ndt_gpu/
  80. #$qtmake ndt_gpu.pro
  81. #make $MAKEOPT
  82. #make clean
  83. #cp libndt_gpu.so ./../../../bin/
  84. #rm Makefile
  85. #rm .qmake.stash
  86. #cd ../../../
  87. cd src/common/ivlog/
  88. $qtmake ivlog.pro
  89. make $MAKEOPT
  90. make clean
  91. cp libivlog.so ./../../../bin/
  92. rm Makefile
  93. rm .qmake.stash
  94. cd ../../../
  95. cd src/common/ivfault/
  96. $qtmake ivfault.pro
  97. make $MAKEOPT
  98. make clean
  99. cp libivfault.so ./../../../bin/
  100. rm Makefile
  101. rm .qmake.stash
  102. cd ../../../
  103. cd src/common/ivbacktrace/
  104. $qtmake ivbacktrace.pro
  105. make $MAKEOPT
  106. make clean
  107. cp libivbacktrace.so ./../../../bin/
  108. rm Makefile
  109. rm .qmake.stash
  110. cd ../../../
  111. cd src/common/ivexit/
  112. $qtmake ivexit.pro
  113. make $MAKEOPT
  114. make clean
  115. cp libivexit.so ./../../../bin/
  116. rm Makefile
  117. rm .qmake.stash
  118. cd ../../../
  119. cd src/common/makeprotointerface/
  120. $qtmake makeprotointerface.pro
  121. make $MAKEOPT
  122. make clean
  123. cp makeprotointerface ./../../../bin/
  124. rm Makefile
  125. rm .qmake.stash
  126. cd ../../../
  127. PWD=`pwd`
  128. PROTOPATH=$PWD/src/include/proto
  129. MSGTYPEPATH=$PWD/src/include/msgtype
  130. PROFOLDERPATH=$PWD/src/common
  131. echo $PROTOPATH
  132. echo $MSGTYPEPATH
  133. echo $PROFOLDERPATH
  134. $PWD/bin/makeprotointerface $PROTOPATH $MSGTYPEPATH $PROFOLDERPATH
  135. cp $PWD/src/common/ivprotoif/ivprotoif.h $PWD/include
  136. cd src/common/ivprotoif/
  137. $qtmake ivprotoif.pro
  138. make $MAKEOPT
  139. make clean
  140. cp libivprotoif.so ./../../../bin/
  141. rm Makefile
  142. rm .qmake.stash
  143. cd ../../../
  144. cp bin/lib* pilotlib/
  145. controller_app_name=(
  146. controller_bus
  147. controller_jinlong_peisong
  148. controller_midcar
  149. controller_problue
  150. controller_ge3
  151. controller_vv7
  152. controller_tju_vv7
  153. controller_hapo
  154. #controller_yuhesen
  155. )
  156. for x in ${controller_app_name[@]}
  157. do
  158. cd src/controller/${x}/
  159. $qtmake ${x}.pro
  160. make $MAKEOPT
  161. make clean
  162. cp ${x} ./../../../pilotbin/
  163. rm Makefile
  164. rm .qmake.stash
  165. rm ${x}
  166. cd ../../../
  167. done
  168. decition_app_name=(
  169. #decition_brain
  170. decition_brain_sf
  171. )
  172. for x in ${decition_app_name[@]}
  173. do
  174. cd src/decition/${x}/
  175. $qtmake ${x}.pro
  176. make $MAKEOPT
  177. make clean
  178. cp ${x} ./../../../pilotbin/
  179. rm Makefile
  180. rm .qmake.stash
  181. rm ${x}
  182. cd ../../../
  183. done
  184. driver_app_name=(
  185. #driver_camera_usb
  186. #driver_can_kvaser
  187. #driver_can_vci
  188. driver_can_nvidia_agx
  189. driver_camera_ioctl
  190. #driver_cloud_grpc_client
  191. #driver_cloud_grpc_pc
  192. #driver_cloud_grpc_server
  193. #driver_gps_ins550d
  194. driver_gps_hcp2
  195. #driver_lidar_bk16
  196. driver_lidar_hesai40line
  197. driver_lidar_hesai40p
  198. driver_lidar_hesaipandar64
  199. driver_lidar_rs16
  200. driver_lidar_rs32
  201. #driver_lidar_vlp16
  202. #driver_lidar_vlp32c
  203. #driver_lidar_vtdpoint
  204. driver_lidar_rsm1
  205. driver_map_trace
  206. driver_map_xodrload
  207. #driver_piccompress
  208. #driver_radio_p900
  209. driver_ntrip_client
  210. #driver_odomtogpsimu
  211. driver_rpc_client
  212. driver_rpc_server
  213. #driver_vbox_gaohong
  214. driver_ota_client
  215. #driver_grpc_client
  216. driver_grpc_server
  217. driver_group_grpc_client
  218. )
  219. for x in ${driver_app_name[@]}
  220. do
  221. cd src/driver/${x}/
  222. $qtmake ${x}.pro
  223. make $MAKEOPT
  224. make clean
  225. cp ${x} ./../../../pilotbin/
  226. rm Makefile
  227. rm .qmake.stash
  228. rm ${x}
  229. cd ../../../
  230. done
  231. detect_app_name=(
  232. detection_chassis
  233. #detection_gps_hcp2
  234. #detection_gps_vtd
  235. #detection_lidar_cnn_segmentation
  236. #detection_lidar_cnntogrid
  237. #detection_lidar_grid
  238. #detection_lidar_ukf_pda
  239. detection_mobileye
  240. #detection_ndt_matching_gpu_multi
  241. detection_radar_delphi_esr
  242. #detection_state_delphi_ins500d
  243. )
  244. for x in ${detect_app_name[@]}
  245. do
  246. cd src/detection/${x}/
  247. $qtmake ${x}.pro
  248. make $MAKEOPT
  249. make clean
  250. cp ${x} ./../../../pilotbin/
  251. rm Makefile
  252. rm .qmake.stash
  253. rm ${x}
  254. cd ../../../
  255. done
  256. fusion_app_name=(
  257. #fusion_gpsndt
  258. #fusion_pointcloud_bus
  259. )
  260. for x in ${fusion_app_name[@]}
  261. do
  262. cd src/fusion/${x}/
  263. $qtmake ${x}.pro
  264. make $MAKEOPT
  265. make clean
  266. cp ${x} ./../../../pilotbin/
  267. rm Makefile
  268. rm .qmake.stash
  269. rm ${x}
  270. cd ../../../
  271. done
  272. tool_app_name=(
  273. adciv_record
  274. adciv_replay
  275. #adcndtmultimapping
  276. #bqev_lidar_cnn_detect_view
  277. #bqev_multilidarcalib
  278. #bqev_pcdview
  279. ivmapmake
  280. ivmapmake_sharemem
  281. IVSysMan
  282. #map_lanetoxodr
  283. #map_mobieye
  284. #PerceptionShow
  285. #picview
  286. #pointcloudviewer
  287. #RemoteCtrl
  288. #tool_calcmd5
  289. tool_querymsg
  290. tool_xodrobj
  291. view_gps
  292. view_ivlog
  293. #view_pcdmap
  294. view_radar
  295. #view_rawcan
  296. tool_configivsysman
  297. #ivdiagnosis
  298. #map_rtkdatafromveh
  299. #picview_civetweb
  300. #tool_trace2vectormap
  301. #view_group_grpc
  302. view_ivchart
  303. view_message
  304. )
  305. for x in ${tool_app_name[@]}
  306. do
  307. cd src/tool/${x}/
  308. $qtmake ${x}.pro
  309. make $MAKEOPT
  310. make clean
  311. cp ${x} ./../../../pilotbin/
  312. rm Makefile
  313. rm .qmake.stash
  314. rm ${x}
  315. cd ../../../
  316. done
  317. ui_app_name=(
  318. ui_ads_hmi
  319. )
  320. for x in ${ui_app_name[@]}
  321. do
  322. cd src/ui/${x}/
  323. $qtmake ${x}.pro
  324. make $MAKEOPT
  325. make clean
  326. cp ${x} ./../../../pilotbin/
  327. rm Makefile
  328. rm .qmake.stash
  329. rm ${x}
  330. cd ../../../
  331. done
  332. cd pilotbin
  333. mkdir lib
  334. cp ../pilotlib/* lib/
  335. for x in ${ui_app_name[@]}
  336. do
  337. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  338. done
  339. for x in ${controller_app_name[@]}
  340. do
  341. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  342. done
  343. for x in ${decition_app_name[@]}
  344. do
  345. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  346. done
  347. for x in ${driver_app_name[@]}
  348. do
  349. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  350. done
  351. for x in ${detect_app_name[@]}
  352. do
  353. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  354. done
  355. for x in ${tool_app_name[@]}
  356. do
  357. patchelf --set-rpath '$ORIGIN/lib/' ${x}
  358. done