Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
lib compatibility msvc / mingw
LeLev last edited by LeLev
I have a 3rd party c++ (cmake) library project that i build with msvc compiler.
Then I can use the lib in my Qt app with msvc2017 kit .
My problem : I have to use this lib in Felgo (v-play) context, and felgo has only Mingw kit.
edit : My real question is : how to build my the lib so it is compatible with mingw kit ?
Thanks for help
VRonin last edited by
You can't mix the libraries compiled with 2 different compilers. To compile with cmake using mingw you just need to set up the correct generator.
It should look something like
SET PATH=C:\Qt\Tools\mingw530_32;%PATH% set originalWD=%CD% call "C:\Qt\5.12\mingw53_32\bin\qtenv2.bat" cd %originalWD% mkdir .\build cd .\build cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_TESTING=ON -DCMAKE_DEBUG_POSTFIX=d -DCMAKE_INSTALL_PREFIX="./installed" ../ cmake --build . cmake --build . --target install cmake --build . --target test cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX="./installed" ../ cmake --build . cmake --build . --target install cmake --build . --target test
CKurdu last edited by
If you don't have the source codes of the third party library, then you can try to build a new service that uses the library with the msvc2017 kit. You can communicate to service via TCP/IP or QProcess ( for more information look at ipc)
LeLev last edited by