问题
What I've been trying to do is to link Qt libraries to my project with CMake. I would use CMake GUI to generate MakeFile and then run MinGW32-make on it, which would give me '[File Name].exe' as intended. However, whenever I run the executable file, I get a message saying:
"The procedure entry point _ZN10QArrayData10deallocateEPS_jj could not be located in the dynamic link library etc."
https://i.stack.imgur.com/JpdwK.jpg
I initially built this software using Qt Creator and QMake, so I can confirm that the program has been tested and does work, but as I have to include an API, it requires me to use CMake instead.
I have done a lot of research and experimenting mostly with the CMakeLists.txt, but unfortunately, I'm not that good at it and I kinda suspect that's where the problem lies.
来源:https://stackoverflow.com/questions/46654763/qarraydata-error-linking-qt-libraries-with-cmake