autogen.sh 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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/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_hesai40p
  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_radar_delphi_esr
  160. #detection_state_delphi_ins500d
  161. #detection_ndt_matching_gpu_multi
  162. )
  163. for x in ${detect_app_name[@]}
  164. do
  165. cd src/detection/${x}/
  166. $qtmake ${x}.pro
  167. make $MAKEOPT
  168. make clean
  169. cp ${x} ./../../../bin/
  170. rm Makefile
  171. rm .qmake.stash
  172. rm ${x}
  173. cd ../../../
  174. done
  175. fusion_app_name=(
  176. #fusion_gpsndt
  177. )
  178. for x in ${fusion_app_name[@]}
  179. do
  180. cd src/fusion/${x}/
  181. $qtmake ${x}.pro
  182. make $MAKEOPT
  183. make clean
  184. cp ${x} ./../../../bin/
  185. rm Makefile
  186. rm .qmake.stash
  187. rm ${x}
  188. cd ../../../
  189. done
  190. tool_app_name=(
  191. #view_pointcloud
  192. adcndtmultimapping
  193. pointcloudviewer
  194. view_gps
  195. view_rawcan
  196. view_radar
  197. IVSysMan
  198. #ivmapmake
  199. ivweb
  200. view_ivlog
  201. #tool_querymsg
  202. #tool_xodrobj
  203. ivlog_record
  204. adciv_record
  205. view_pcdmap
  206. view_ivlog
  207. adciv_replay
  208. ivmapmake
  209. )
  210. for x in ${tool_app_name[@]}
  211. do
  212. cd src/tool/${x}/
  213. $qtmake ${x}.pro
  214. make $MAKEOPT
  215. make clean
  216. cp ${x} ./../../../bin/
  217. rm Makefile
  218. rm .qmake.stash
  219. rm ${x}
  220. cd ../../../
  221. done
  222. ui_app_name=(
  223. ui_ads_hmi
  224. )
  225. for x in ${ui_app_name[@]}
  226. do
  227. cd src/ui/${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