autogen.sh 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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/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. controller_app_name=(
  84. #controller_ge3
  85. #controller_vv7
  86. )
  87. for x in ${controller_app_name[@]}
  88. do
  89. cd src/controller/${x}/
  90. $qtmake ${x}.pro
  91. make $MAKEOPT
  92. make clean
  93. cp ${x} ./../../../bin/
  94. rm Makefile
  95. rm .qmake.stash
  96. rm ${x}
  97. cd ../../../
  98. done
  99. decition_app_name=(
  100. #decition_brain
  101. #decition_brain_ge3
  102. #decition_brain_qingyuan
  103. #decition_brain_vv7
  104. )
  105. for x in ${decition_app_name[@]}
  106. do
  107. cd src/decition/${x}/
  108. $qtmake ${x}.pro
  109. make $MAKEOPT
  110. make clean
  111. cp ${x} ./../../../bin/
  112. rm Makefile
  113. rm .qmake.stash
  114. rm ${x}
  115. cd ../../../
  116. done
  117. driver_app_name=(
  118. #driver_gps_ins550d
  119. driver_can_nvidia_agx
  120. #driver_can_vci
  121. #driver_lidar_vlp16
  122. #driver_lidar_vlp32c
  123. #driver_map_trace
  124. #driver_map_xodrload
  125. )
  126. for x in ${driver_app_name[@]}
  127. do
  128. cd src/driver/${x}/
  129. $qtmake ${x}.pro
  130. make $MAKEOPT
  131. make clean
  132. cp ${x} ./../../../bin/
  133. rm Makefile
  134. rm .qmake.stash
  135. rm ${x}
  136. cd ../../../
  137. done
  138. detect_app_name=(
  139. #detection_radar_conti_sr308
  140. detection_radar_delphi_esr
  141. #detection_lidar_distributed_server
  142. #detection_chassis
  143. #detection_lidar_grid
  144. )
  145. for x in ${detect_app_name[@]}
  146. do
  147. cd src/detection/${x}/
  148. $qtmake ${x}.pro
  149. make $MAKEOPT
  150. make clean
  151. cp ${x} ./../../../bin/
  152. rm Makefile
  153. rm .qmake.stash
  154. rm ${x}
  155. cd ../../../
  156. done
  157. tool_app_name=(
  158. #view_pointcloud
  159. view_gps
  160. view_rawcan
  161. view_radar
  162. IVSysMan
  163. ivmapmake
  164. view_ivlog
  165. tool_querymsg
  166. #tool_xodrobj
  167. ivlog_record
  168. adciv_record
  169. )
  170. for x in ${tool_app_name[@]}
  171. do
  172. cd src/tool/${x}/
  173. $qtmake ${x}.pro
  174. make $MAKEOPT
  175. make clean
  176. cp ${x} ./../../../bin/
  177. rm Makefile
  178. rm .qmake.stash
  179. rm ${x}
  180. cd ../../../
  181. done
  182. ui_app_name=(
  183. ui_ads_hmi
  184. )
  185. for x in ${ui_app_name[@]}
  186. do
  187. cd src/ui/${x}/
  188. $qtmake ${x}.pro
  189. make $MAKEOPT
  190. make clean
  191. cp ${x} ./../../../bin/
  192. rm Makefile
  193. rm .qmake.stash
  194. rm ${x}
  195. cd ../../../
  196. done