autogen.sh 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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-10:10}
  9. if [ "$x" == "/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/common/modulecomm/
  36. $qtmake modulecomm.pro
  37. make $MAKEOPT
  38. make clean
  39. cp libmodulecomm.so ./../../../bin/
  40. rm Makefile
  41. rm .qmake.stash
  42. cd ../../../
  43. cd src/common/xmlparam/
  44. $qtmake xmlparam.pro
  45. make $MAKEOPT
  46. make clean
  47. cp libxmlparam.so ./../../../bin/
  48. rm Makefile
  49. rm .qmake.stash
  50. cd ../../../
  51. cd src/common/ndt_cpu/
  52. $qtmake ndt_cpu.pro
  53. make $MAKEOPT
  54. make clean
  55. cp libndt_cpu.so ./../../../bin/
  56. rm Makefile
  57. rm .qmake.stash
  58. cd ../../../
  59. cd src/common/ndt_gpu/
  60. $qtmake ndt_gpu.pro
  61. make $MAKEOPT
  62. make clean
  63. cp libndt_gpu.so ./../../../bin/
  64. rm Makefile
  65. rm .qmake.stash
  66. cd ../../../
  67. cd src/common/ivlog/
  68. $qtmake ivlog.pro
  69. make $MAKEOPT
  70. make clean
  71. cp libivlog.so ./../../../bin/
  72. rm Makefile
  73. rm .qmake.stash
  74. cd ../../../
  75. cd src/common/ivfault/
  76. $qtmake ivfault.pro
  77. make $MAKEOPT
  78. make clean
  79. cp libivfault.so ./../../../bin/
  80. rm Makefile
  81. rm .qmake.stash
  82. cd ../../../
  83. cd src/common/ivbacktrace/
  84. $qtmake ivbacktrace.pro
  85. make $MAKEOPT
  86. make clean
  87. cp libivbacktrace.so ./../../../bin/
  88. rm Makefile
  89. rm .qmake.stash
  90. cd ../../../
  91. cd src/common/ivexit/
  92. $qtmake ivexit.pro
  93. make $MAKEOPT
  94. make clean
  95. cp libivexit.so ./../../../bin/
  96. rm Makefile
  97. rm .qmake.stash
  98. cd ../../../
  99. controller_app_name=(
  100. #controller_ge3
  101. #controller_vv7
  102. #controller_tju_vv7
  103. )
  104. for x in ${controller_app_name[@]}
  105. do
  106. cd src/controller/${x}/
  107. $qtmake ${x}.pro
  108. make $MAKEOPT
  109. make clean
  110. cp ${x} ./../../../bin/
  111. rm Makefile
  112. rm .qmake.stash
  113. rm ${x}
  114. cd ../../../
  115. done
  116. decition_app_name=(
  117. #decition_brain
  118. #decition_brain_ge3
  119. #decition_brain_qingyuan
  120. #decition_brain_vv7
  121. )
  122. for x in ${decition_app_name[@]}
  123. do
  124. cd src/decition/${x}/
  125. $qtmake ${x}.pro
  126. make $MAKEOPT
  127. make clean
  128. cp ${x} ./../../../bin/
  129. rm Makefile
  130. rm .qmake.stash
  131. rm ${x}
  132. cd ../../../
  133. done
  134. driver_app_name=(
  135. #driver_gps_ins550d
  136. #driver_can_nvidia_agx
  137. #driver_can_vci
  138. driver_lidar_rs16
  139. #driver_lidar_vlp32c
  140. #driver_rpc_client
  141. #driver_rpc_server
  142. #driver_map_trace
  143. #driver_map_xodrload
  144. #driver_gps_hcp2
  145. )
  146. for x in ${driver_app_name[@]}
  147. do
  148. cd src/driver/${x}/
  149. $qtmake ${x}.pro
  150. make $MAKEOPT
  151. make clean
  152. cp ${x} ./../../../bin/
  153. rm Makefile
  154. rm .qmake.stash
  155. rm ${x}
  156. cd ../../../
  157. done
  158. detect_app_name=(
  159. detection_lidar_cnn_segmentation
  160. detection_lidar_cnntogrid
  161. detection_lidar_ukf_pda
  162. #detection_radar_delphi_esr
  163. #detection_state_delphi_ins500d
  164. #detection_ndt_matching_gpu_multi
  165. )
  166. for x in ${detect_app_name[@]}
  167. do
  168. cd src/detection/${x}/
  169. $qtmake ${x}.pro
  170. make $MAKEOPT
  171. make clean
  172. cp ${x} ./../../../bin/
  173. rm Makefile
  174. rm .qmake.stash
  175. rm ${x}
  176. cd ../../../
  177. done
  178. fusion_app_name=(
  179. fusion_pointcloud_bus
  180. #fusion_gpsndt
  181. )
  182. for x in ${fusion_app_name[@]}
  183. do
  184. cd src/fusion/${x}/
  185. $qtmake ${x}.pro
  186. make $MAKEOPT
  187. make clean
  188. cp ${x} ./../../../bin/
  189. rm Makefile
  190. rm .qmake.stash
  191. rm ${x}
  192. cd ../../../
  193. done
  194. tool_app_name=(
  195. bqev_multilidarcalib
  196. bqev_pcdview
  197. pointcloudviewer
  198. #view_gps
  199. #view_rawcan
  200. #view_radar
  201. IVSysMan
  202. #ivmapmake
  203. #ivweb
  204. #view_ivlog
  205. #tool_querymsg
  206. #tool_xodrobj
  207. ivlog_record
  208. adciv_record
  209. #view_pcdmap
  210. view_ivlog
  211. adciv_replay
  212. #ivmapmake
  213. )
  214. for x in ${tool_app_name[@]}
  215. do
  216. cd src/tool/${x}/
  217. $qtmake ${x}.pro
  218. make $MAKEOPT
  219. make clean
  220. cp ${x} ./../../../bin/
  221. rm Makefile
  222. rm .qmake.stash
  223. rm ${x}
  224. cd ../../../
  225. done
  226. ui_app_name=(
  227. ui_ads_hmi
  228. )
  229. for x in ${ui_app_name[@]}
  230. do
  231. cd src/ui/${x}/
  232. $qtmake ${x}.pro
  233. make $MAKEOPT
  234. make clean
  235. cp ${x} ./../../../bin/
  236. rm Makefile
  237. rm .qmake.stash
  238. rm ${x}
  239. cd ../../../
  240. done