autogen.sh 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. )
  103. for x in ${controller_app_name[@]}
  104. do
  105. cd src/controller/${x}/
  106. $qtmake ${x}.pro
  107. make $MAKEOPT
  108. make clean
  109. cp ${x} ./../../../bin/
  110. rm Makefile
  111. rm .qmake.stash
  112. rm ${x}
  113. cd ../../../
  114. done
  115. decition_app_name=(
  116. #decition_brain
  117. #decition_brain_ge3
  118. #decition_brain_qingyuan
  119. #decition_brain_vv7
  120. )
  121. for x in ${decition_app_name[@]}
  122. do
  123. cd src/decition/${x}/
  124. $qtmake ${x}.pro
  125. make $MAKEOPT
  126. make clean
  127. cp ${x} ./../../../bin/
  128. rm Makefile
  129. rm .qmake.stash
  130. rm ${x}
  131. cd ../../../
  132. done
  133. driver_app_name=(
  134. driver_gps_hcp2
  135. driver_can_nvidia_agx
  136. driver_can_vci
  137. driver_camera_usb
  138. #driver_lidar_vlp32c
  139. #driver_rpc_client
  140. #driver_rpc_server
  141. #driver_map_trace
  142. driver_map_xodrload
  143. )
  144. for x in ${driver_app_name[@]}
  145. do
  146. cd src/driver/${x}/
  147. $qtmake ${x}.pro
  148. make $MAKEOPT
  149. make clean
  150. cp ${x} ./../../../bin/
  151. rm Makefile
  152. rm .qmake.stash
  153. rm ${x}
  154. cd ../../../
  155. done
  156. detect_app_name=(
  157. detection_mobileye
  158. #detection_ndt_matching_gpu_multi
  159. )
  160. for x in ${detect_app_name[@]}
  161. do
  162. cd src/detection/${x}/
  163. $qtmake ${x}.pro
  164. make $MAKEOPT
  165. make clean
  166. cp ${x} ./../../../bin/
  167. rm Makefile
  168. rm .qmake.stash
  169. rm ${x}
  170. cd ../../../
  171. done
  172. fusion_app_name=(
  173. #fusion_gpsndt
  174. )
  175. for x in ${fusion_app_name[@]}
  176. do
  177. cd src/fusion/${x}/
  178. $qtmake ${x}.pro
  179. make $MAKEOPT
  180. make clean
  181. cp ${x} ./../../../bin/
  182. rm Makefile
  183. rm .qmake.stash
  184. rm ${x}
  185. cd ../../../
  186. done
  187. tool_app_name=(
  188. #view_pointcloud
  189. #adcndtmultimapping
  190. #pointcloudviewer
  191. view_gps
  192. view_rawcan
  193. #view_radar
  194. IVSysMan
  195. #ivmapmake
  196. #ivweb
  197. #view_ivlog
  198. #tool_querymsg
  199. #tool_xodrobj
  200. #ivlog_record
  201. adciv_record
  202. #view_pcdmap
  203. view_ivlog
  204. adciv_replay
  205. map_mobieye
  206. map_lanetoxodr
  207. tool_xodrobj
  208. )
  209. for x in ${tool_app_name[@]}
  210. do
  211. cd src/tool/${x}/
  212. $qtmake ${x}.pro
  213. make $MAKEOPT
  214. make clean
  215. cp ${x} ./../../../bin/
  216. rm Makefile
  217. rm .qmake.stash
  218. rm ${x}
  219. cd ../../../
  220. done
  221. ui_app_name=(
  222. #ui_ads_hmi
  223. )
  224. for x in ${ui_app_name[@]}
  225. do
  226. cd src/ui/${x}/
  227. $qtmake ${x}.pro
  228. make $MAKEOPT
  229. make clean
  230. cp ${x} ./../../../bin/
  231. rm Makefile
  232. rm .qmake.stash
  233. rm ${x}
  234. cd ../../../
  235. done