Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. lib compatibility msvc / mingw

lib compatibility msvc / mingw

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 912 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ODБOïO Offline
    ODБOïO Offline
    ODБOï
    wrote on last edited by ODБOï
    #1

    Hi,
    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

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      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
      

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      5
      • CKurduC Offline
        CKurduC Offline
        CKurdu
        wrote on last edited by
        #3

        Hi,
        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)

        You reap what you sow it

        1 Reply Last reply
        4
        • ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          Thank you very much @VRonin and @CKurdu

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved