在Dlib中编译问题以进行面部检测

时间:2016-03-21 09:29:18

标签: c++ image-processing compiler-errors dlib

我是新手尝试dlib库。我已经完成了编译指令,但问题仍然存在。 我正在使用命令行进行编译和执行。 我使用了以下命令并给了我错误。

g++ -O3 -I.. ../dlib/all/source.cpp -lpthread -lX11 face_detection_ex.cpp -DDLIB_JPEG_SUPPORT

error log

谢谢

1 个答案:

答案 0 :(得分:1)

您没有链接到libjpeg。这里的说明http://dlib.net/compile.html告诉你输入什么来使g ++链接到libjpeg。这是-ljpeg。