in the cmake when you give to configure, copy it all the info that sheds, in my case, the problem was that the cmake was using the mysql libraries wrong, and there I realized, I resolved that and the application did not return to give problems or crash