opencv compile the blog a lot, such as the need to start from scratch, please refer to the following blog https://blog.csdn.net/kuweicai/article/details/78046257
This article explains compiled 64 questions arise
Start CMake, after configuring the path, click config button will pop up as follows
If you need 64-bit link library, select followed by "Win64" items;
If you need to generate a 32-bit link libraries, containing no later select "Win64" item;
Note: Details determine success or failure, the beginning of the selected 32-bit compiler, the solution build, wanted manually changed to 64, compile-time problems ah, finally using cmake rebuild the solution.