1. Refer to installation or compile OPENCV
https://aipro.blog.csdn.net/article/details/112538453
2, configure codelite
I:\opencv\opencv\build\include
I:\opencv\opencv\build\include\opencv2\highgui
#include <iostream>
#include "highgui.hpp"
using namespace std;
int main(int argc, char **argv)
{
IplImage* img=cvLoadImage("i:\\pro\\1.png");
cvNamedWindow("show",CV_WINDOW_AUTOSIZE);
cvShowImage("show",img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("show");
return 0;
}