I have encountered the following problems:
/Users/logic/Desktop/opencv_contrib/modules/text/src/precomp.hpp:51:10: 'tesseract/baseapi.h' file not found
The cmake file seems no path configuration for tesseract. Manually add tesseract search path, the problem solved.