QArrayData error, linking Qt libraries with CMake

邮差的信 提交于 2020-01-24 01:19:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!