#add_library(pcc SHARED ${dso_SOURCE_FILES}) include_directories( ${PROJECT_SOURCE_DIR}/include ${OpenCV_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ) add_subdirectory(pybind11) pybind11_add_module(Pypcc ${PROJECT_SOURCE_DIR}/src/pcc.cpp ${dso_SOURCE_FILES}) #add_executable(pcc_test ${PROJECT...
./vcpkginstallboost 安装完成后,库的头文件和链接库会被安装在vcpkg的安装目录中,可以在项目中使用这些库进行开发。 使用库 在项目中使用vcpkg安装的库非常简单,只需要在项目的CMakeLists.txt中添加以下内容: find_package(Boost REQUIRED)include_directories(${Boost_INCLUDE_DIRS})target_link_libraries(your_projec...
find_package(Boost REQUIRED) # OpenCV find_package(OpenCV REQUIRED) # 2.catkin package catkin_package() # 3.include directories include_directories( include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ) # 4.link opencv lib add_executable(image_sub src/image_sub.cpp)...
自己对特定的库实现 find 逻辑,也就是编写 XxxConfig.cmake,然后 find_package 用 CONFIG 模式查找。
-- BOOST_VERSION: 0 -- FOUND INCORRECT BOOST VERSION: 1_44 -- BOOST FOUND: TRUE -- BOOST INCLUDE DIRS: /usr/include/boost-1_44 -- BOOST LIBRARIES: optimized;/usr/lib/libboost_program_options-gcc44-mt-1_44.a;debug;/usr/lib/libboost_program_options-gcc44-mt-d-1_44.a;optimized;/...
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial 4、修改 Makefile (注意不是 Makefile.config ) ...
PYTHON_LAYER := 1 修改为 WITH_PYTHON_LAYER := 14.修改 python 路径INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/includeLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib修改为:INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serialLIBRARY_DIRS :...
在Makefile.config文件的第85行,添加/usr/include/hdf5/serial/到INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码。 将# Whateverelseyoufindyou need goes here.下面的 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib ...
d. 将INCLUDE_DIRS和LIBRARY_DIRS中的Caffe依赖库修改为自己本地的路径,比如将Caffe依赖库放置/home/qq/usr/local/下面,那么INCLUDE_DIRS和LIBRARY_DIRS如下: INCLUDE_DIRS := $(PYTHON_INCLUDE) \ /usr/local/include/ \ /home/qq/usr/local/Atlas/include/ \ /home/qq/usr/local/Boost/Boost_1.61/include...
Message(STATUS "<<<Note: Find EIGEN3_INCLUDE_DIRS Package in aubo_planner for melodic") endif() error: no match for call to ‘(boost::mfi::mf1<void, industrial_robot_client::joint_trajectory_action::JointTrajectoryAction, actionlib::ServerGoalHandle<control_msgs::FollowJointTrajectoryAction<st...