1.安装
apt-get install curlapt-get install libcurl4-gnutls-dev
2.如果使用的是CMakeLists.txt,加入
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lcurl")
TARGET_LINK_LIBRARIES(LiveFaceReco ${OpenCV_LIBS} curl)
3.#include <curl/curl.h>
完事。