autogen.sh 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. qtmake="/opt/qt/5.13.2/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/ivlog/
  60. $qtmake ivlog.pro
  61. make $MAKEOPT
  62. make clean
  63. cp libivlog.so ./../../../bin/
  64. rm Makefile
  65. rm .qmake.stash
  66. cd ../../../
  67. cd src/common/ivfault/
  68. $qtmake ivfault.pro
  69. make $MAKEOPT
  70. make clean
  71. cp libivfault.so ./../../../bin/
  72. rm Makefile
  73. rm .qmake.stash
  74. cd ../../../
  75. cd src/common/platformif/
  76. $qtmake platformif.pro
  77. make $MAKEOPT
  78. make clean
  79. cp libplatformif.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_ins550d
  135. driver_can_nvidia_agx
  136. driver_can_vci
  137. driver_lidar_vlp16
  138. driver_lidar_vlp32c
  139. #driver_map_trace
  140. #driver_map_xodrload
  141. )
  142. for x in ${driver_app_name[@]}
  143. do
  144. cd src/driver/${x}/
  145. $qtmake ${x}.pro
  146. make $MAKEOPT
  147. make clean
  148. cp ${x} ./../../../bin/
  149. rm Makefile
  150. rm .qmake.stash
  151. rm ${x}
  152. cd ../../../
  153. done
  154. detect_app_name=(
  155. #detection_radar_conti_sr308
  156. detection_radar_delphi_esr
  157. detection_lidar_distributed_server
  158. detection_chassis
  159. #detection_lidar_grid
  160. )
  161. for x in ${detect_app_name[@]}
  162. do
  163. cd src/detection/${x}/
  164. $qtmake ${x}.pro
  165. make $MAKEOPT
  166. make clean
  167. cp ${x} ./../../../bin/
  168. rm Makefile
  169. rm .qmake.stash
  170. rm ${x}
  171. cd ../../../
  172. done
  173. tool_app_name=(
  174. #view_pointcloud
  175. view_gps
  176. view_rawcan
  177. view_radar
  178. IVSysMan
  179. ivmapmake
  180. view_ivlog
  181. tool_querymsg
  182. #tool_xodrobj
  183. ivlog_record
  184. adciv_record
  185. )
  186. for x in ${tool_app_name[@]}
  187. do
  188. cd src/tool/${x}/
  189. $qtmake ${x}.pro
  190. make $MAKEOPT
  191. make clean
  192. cp ${x} ./../../../bin/
  193. rm Makefile
  194. rm .qmake.stash
  195. rm ${x}
  196. cd ../../../
  197. done
  198. ui_app_name=(
  199. ui_ads_hmi
  200. )
  201. for x in ${ui_app_name[@]}
  202. do
  203. cd src/ui/${x}/
  204. $qtmake ${x}.pro
  205. make $MAKEOPT
  206. make clean
  207. cp ${x} ./../../../bin/
  208. rm Makefile
  209. rm .qmake.stash
  210. rm ${x}
  211. cd ../../../
  212. done