autogen2.sh 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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/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/ivbacktrace/
  76. $qtmake ivbacktrace.pro
  77. make $MAKEOPT
  78. make clean
  79. cp libivbacktrace.so ./../../../bin/
  80. rm Makefile
  81. rm .qmake.stash
  82. cd ../../../
  83. cd src/common/ivexit/
  84. $qtmake ivexit.pro
  85. make $MAKEOPT
  86. make clean
  87. cp libivexit.so ./../../../bin/
  88. rm Makefile
  89. rm .qmake.stash
  90. cd ../../../
  91. controller_app_name=(
  92. #controller_ge3
  93. #controller_vv7
  94. )
  95. for x in ${controller_app_name[@]}
  96. do
  97. cd src/controller/${x}/
  98. $qtmake ${x}.pro
  99. make $MAKEOPT
  100. make clean
  101. cp ${x} ./../../../bin/
  102. rm Makefile
  103. rm .qmake.stash
  104. rm ${x}
  105. cd ../../../
  106. done
  107. decition_app_name=(
  108. #decition_brain
  109. #decition_brain_ge3
  110. #decition_brain_qingyuan
  111. #decition_brain_vv7
  112. )
  113. for x in ${decition_app_name[@]}
  114. do
  115. cd src/decition/${x}/
  116. $qtmake ${x}.pro
  117. make $MAKEOPT
  118. make clean
  119. cp ${x} ./../../../bin/
  120. rm Makefile
  121. rm .qmake.stash
  122. rm ${x}
  123. cd ../../../
  124. done
  125. driver_app_name=(
  126. driver_lidar_vlp16
  127. driver_lidar_vlp32c
  128. driver_lidar_merge
  129. driver_rpc_client
  130. driver_rpc_server
  131. )
  132. for x in ${driver_app_name[@]}
  133. do
  134. cd src/driver/${x}/
  135. $qtmake ${x}.pro
  136. make $MAKEOPT
  137. make clean
  138. cp ${x} ./../../../bin/
  139. rm Makefile
  140. rm .qmake.stash
  141. rm ${x}
  142. cd ../../../
  143. done
  144. detect_app_name=(
  145. detection_lidar_cnn_segmentation
  146. detection_lidar_ukf_pda
  147. )
  148. for x in ${detect_app_name[@]}
  149. do
  150. cd src/detection/${x}/
  151. $qtmake ${x}.pro
  152. make $MAKEOPT
  153. make clean
  154. cp ${x} ./../../../bin/
  155. rm Makefile
  156. rm .qmake.stash
  157. rm ${x}
  158. cd ../../../
  159. done
  160. tool_app_name=(
  161. #view_pointcloud
  162. pointcloudviewer
  163. #view_radar
  164. IVSysMan
  165. #ivmapmake
  166. ivweb
  167. #view_ivlog
  168. #tool_querymsg
  169. #tool_xodrobj
  170. ivlog_record
  171. adciv_record
  172. view_ivlog
  173. adciv_replay
  174. )
  175. for x in ${tool_app_name[@]}
  176. do
  177. cd src/tool/${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. ui_app_name=(
  188. #ui_ads_hmi
  189. )
  190. for x in ${ui_app_name[@]}
  191. do
  192. cd src/ui/${x}/
  193. $qtmake ${x}.pro
  194. make $MAKEOPT
  195. make clean
  196. cp ${x} ./../../../bin/
  197. rm Makefile
  198. rm .qmake.stash
  199. rm ${x}
  200. cd ../../../
  201. done