Hello, im using OpenCV 4.1.1 and dlib 19.17 on a recognition project with Qt Creator IDE, when compiling the project using Qmake, i got an error like this :
`In file included from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/opencv/cv_image.h:7:0, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/recognition/ocr.h:23, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/detection/detection.h:15, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/detection/detection.cpp:19: /usr/local/include/opencv4/opencv2/core/core_c.h:2582:1: error: reference to ‘int64’ is ambiguous
CVAPI(int64) cvGetTickCount( void );
^
In file included from /usr/local/include/opencv4/opencv2/core/cvdef.h:165:0, from /usr/local/include/opencv4/opencv2/core.hpp:52, from /usr/local/include/opencv4/opencv2/opencv.hpp:52, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/detection/detection.cpp:8:
/usr/local/include/opencv4/opencv2/core/hal/interface.h:61:20: note: candidates are: typedef int64_t int64 typedef int64_t int64; ^~~~~
In file included from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/../matrix/../algs.h:115:0, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/../matrix/matrix_exp.h:6, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/../matrix/matrix.h:6, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/../matrix.h:6, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/tensor.h:8, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/dnn.h:12, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/recognition/ocr.h:17, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/detection/detection.h:15, from ../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/detection/detection.cpp:19:
../QTPROJECTSBACKUP/LPR+MVC_FINAL/LPR_TEST2/include/dlib/cuda/../matrix/../uintn.h:27:23: note: typedef long long int dlib::int64 typedef long long int64; ^~~~~`
I am calling the GetTickCount that have int64 type, and dlib is also using that int64 type in 'uintn.h' header file. Is there any solution to fix this?