【发布时间】:2019-01-20 03:10:28
【问题描述】:
我尝试使用 dlib 编译 Qt 项目
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/dnn.h>
#include <dlib/gui_widgets.h>
#include <dlib/clustering.h>
#include <dlib/string.h>
#include <dlib/image_io.h>
#include <iostream>
using namespace cv;
using namespace dlib;
using namespace std;
int main(int argc, char *argv[])
{
frontal_face_detector detector = get_frontal_face_detector();
matrix <rgb_pixel> image;
load_image(image, "/Users/ivanlebedev/Desktop/Projects/ManSearch/cars/2.jpg");
image_window win(image);
}
但我有这个错误:
/usr/local/Cellar/dlib/19.15/include/dlib/gui_core/gui_core_kernel_2.h:12: ошибка: "Also make sure you have libx11-dev installed on your system"
#error "Also make sure you have libx11-dev installed on your system"
^
我怎样才能让我的程序工作?
【问题讨论】: