detection_lidar_cnn_segmentation.pro 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. QT -= gui
  2. CONFIG += c++14 #console
  3. CONFIG -= app_bundle
  4. # The following define makes your compiler emit warnings if you use
  5. # any feature of Qt which as been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9. QMAKE_LFLAGS += -no-pie
  10. #DEFINES += CPU_ONLY
  11. #system("echo $PWD")
  12. #system("protoc *.proto -I=./ --cpp_out=./")
  13. system("cd ./caffe/proto ; protoc *.proto -I=./ --cpp_out=./ ; cd ../../ ; echo $PWD")
  14. #QMAKE_PRE_LINK +=
  15. #QMAKE_PRE_LINK += cd ./caffe/proto | protoc *.proto -I=./ --cpp_out=./ | cd ../../ | echo $PWD
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. SOURCES += main.cpp \
  21. cluster2d.cpp \
  22. cnn_segmentation.cpp \
  23. feature_generator.cpp \
  24. ../../include/msgtype/object.pb.cc \
  25. ../../include/msgtype/objectarray.pb.cc
  26. INCLUDEPATH += /usr/include/pcl-1.7
  27. INCLUDEPATH += /usr/include/pcl-1.8
  28. INCLUDEPATH += /usr/include/eigen3
  29. INCLUDEPATH += /usr/include/opencv4
  30. #INCLUDEPATH += /opt/ros/kinetic/include/opencv-3.3.1-dev
  31. INCLUDEPATH += /usr/include/pcl-1.10
  32. INCLUDEPATH += /usr/local/cuda-11.4/targets/aarch64-linux/include
  33. LIBS += -L/usr/local/cuda-11.4/targets/aarch64-linux/lib # -lcublas
  34. INCLUDEPATH += /usr/local/cuda-10.2/targets/aarch64-linux/include
  35. LIBS += -lpcl_io -lpcl_common
  36. LIBS += -lboost_system -lavutil -lprotobuf -lcudnn
  37. LIBS += -lcudnn
  38. unix:!macx: LIBS += -L$$PWD/../../../thirdpartylib/caffe/arm64 -lcaffe -lcudnn
  39. HEADERS += \
  40. cluster2d.h \
  41. cnn_segmentation.h \
  42. disjoint_set.h \
  43. feature_generator.h \
  44. ../../include/msgtype/object.pb.h \
  45. ../../include/msgtype/objectarray.pb.h
  46. INCLUDEPATH += $$PWD/caffe/proto/
  47. !include(../../../include/common.pri ) {
  48. error( "Couldn't find the common.pri file!" )
  49. }
  50. !include(../../../include/ivprotobuf.pri ) {
  51. error( "Couldn't find the ivprotobuf.pri file!" )
  52. }
  53. INCLUDEPATH += $$PWD/../../include/msgtype
  54. LIBS += -L/usr/lib/aarch64-linux-gnu/ -lglog