Qt .pro文件配置大全!
避免以后的无意义重复劳动,将用过的所有的头文件库文件的配置都放在这里,以后要用的话直接copy就好。
eigen3:
INCLUDEPATH += \
/usr/local/include/eigen3/
g2o:
INCLUDEPATH += /usr/local/include/
LIBS += -L"/usr/local/lib" -lg2o_cli -lg2o_core -lg2o_simulator -lg2o_csparse_extension -lg2o_ext_freeglut_minimal -lg2o_incremental\
-lg2o_interactive -lg2o_interface -lg2o_opengl_helper -lg2o_parser -lg2o_simulator -lg2o_solver_cholmod -lg2o_solver_csparse -lg2o_solver_dense\
-lg2o_solver_eigen -lg2o_solver_pcg -lg2o_solver_slam2d_linear -lg2o_solver_structure_only -lg2o_stuff -lg2o_types_data -lg2o_types_icp\
-lg2o_types_sba -lg2o_types_sclam2d -lg2o_types_sim3 -lg2o_types_slam2d -lg2o_types_slam2d_addons -lg2o_types_slam3d -lg2o_types_slam3d_addons\
-lg2o_viewer
DBoW2:
INCLUDEPATH += ../thirdparty/DBoW2
LIBS += -L"../thirdparty/DBoW2/DBoW2/lib" -lDBoW2
ceres:
INCLUDEPATH += /usr/local/include/ceres
LIBS += -L. -lceres
###### Ceres-Slover Dependency ######
LIBS += -L. -lblas -llapack -lglog -lgflags -lcholmod -lcxsparse -fopenmp
Sophus:
INCLUDEPATH += \
/usr/local/include/
LIBS += \
-L"/usr/local/lib" -lSophus
#### thirdparty Sophus ####
INCLUDEPATH += ../thirdparty/Sophus/
uvc:
INCLUDEPATH += /usr/local/include/libuvc
LIBS += -L"/usr/local/lib/x86_64-linux-gnu" -luvc
boost:
INCLUDEPATH += /usr/include/boost
LIBS += -lboost_system -lboost_atomic -lboost_chrono -lboost_thread -lboost_filesystem
gflag:
INCLUDEPATH += /usr/local/include/gflags
LIBS += /usr/local/lib/libgflags.a
glog:
INCLUDEPATH += /usr/local/include/glog
LIBS += /usr/local/lib/libglog.so
cvd:
INCLUDEPATH += /usr/local/include/cvd
LIBS += -L"/usr/local/lib" -lcvd
opencv2.4.9:
CONFIG += link_pkgconfig
PKGCONFIG += opencv
opencv3.0.0:
INCLUDEPATH += /usr/local/OpenCV3/include \
INCLUDEPATH += /usr/local/OpenCV3/include/opencv \
INCLUDEPATH += /usr/local/OpenCV3/include/opencv2
LIBS += /usr/local/OpenCV3/lib/libopencv_imgproc.so \
/usr/local/OpenCV3/lib/libopencv_core.so \
/usr/local/OpenCV3/lib/libopencv_shape.so \
/usr/local/OpenCV3/lib/libopencv_stitching.so \
/usr/local/OpenCV3/lib/libopencv_objdetect.so \
/usr/local/OpenCV3/lib/libopencv_superres.so \
/usr/local/OpenCV3/lib/libopencv_videostab.so \
/usr/local/OpenCV3/lib/libopencv_calib3d.so \
/usr/local/OpenCV3/lib/libopencv_features2d.so \
/usr/local/OpenCV3/lib/libopencv_highgui.so \
/usr/local/OpenCV3/lib/libopencv_videoio.so \
/usr/local/OpenCV3/lib/libopencv_imgcodecs.so \
/usr/local/OpenCV3/lib/libopencv_video.so \
/usr/local/OpenCV3/lib/libopencv_photo.so \
/usr/local/OpenCV3/lib/libopencv_ml.so \
/usr/local/OpenCV3/lib/libopencv_flann.so \
/usr/local/OpenCV3/lib/libopencv_viz.so \
# /usr/local/OpenCV3/lib/libopencv_hal.so
Yaml:
INCLUDEPATH += ../thirdparty/yaml-cpp/include
LIBS += -L"../thirdparty/yaml-cpp/lib" -lyaml-cpp
Brisk:
INCLUDEPATH += ../thirdparty/brisk/include
INCLUDEPATH += ../thirdparty/brisk/agast/include
LIBS += -L"../thirdparty/brisk/lib" -lagast -lbrisk
pangolin:
INCLUDEPATH += /usr/local/include
LIBS += -L"/usr/local/lib" -lpangolin
##### ROS
INCLUDEPATH += /opt/ros/melodic/include
LIBS += \
/opt/ros/melodic/lib/lib*.so \ #####大规模批量链接库就这么写就好了,太省事了,一句顶一万句
posted on 2017-05-15 16:16 defe_feath 阅读(605) 评论(0) 编辑 收藏 举报