他的回复:
file(GLOB OPENCV_LIBS ${TOOL_CHAIN_SYSROOT}/opt/arm64/ros/kinetic/lib/aarch64-linux-gnu/*.so) include_directories("${TOOL_CHAIN_SYSROOT}/opt/arm64/ros/kinetic/include" "${TOOL_CHAIN_SYSROOT}/opt/arm64/ros/kinetic/include/opencv-3.3.1-dev") link_directories("${TOOL_CHAIN_SYSROOT}/opt/arm64/ros/kinetic/lib") target_link_libraries(${OPENCV_LIBS})修改CMakeLists引入第三方库时一般需要-I(头文件路径), -L(链接库路经)和-l(链接库)等参数