求助帖!!!ubuntu18.04 安装opencv4.0.0源码无限次出现如下问题

./src/image_opencv.cpp: In function ‘IplImage* image_to_ipl(image)’:
./src/image_opencv.cpp:16:5: error: ‘IPlImage’ was not declared in this scope
IPlImage disp = cvCreateImage(cvSize(im.w,im.h), IPL_DEPTH_8U, im.c);
^~~~~~~~
compilation terminated due to -Wfatal-errors.
Makefile:86: recipe for target 'obj/image_opencv.o' failed
make: *
* [obj/image_opencv.o] Error 1
make: *** Waiting for unfinished jobs....

但我在src文件夹中的image_opencv.cpp中也引入了#include "opencv2/imgproc/imgproc_c.h"
求助实在不知道怎么办了