Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building libraries from sources.
Forum Updated to NodeBB v4.3 + New Features

Building libraries from sources.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 430 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.
  • F Offline
    F Offline
    frogi16
    wrote on last edited by frogi16
    #1

    I recently started using Qt instead of Visual Studio and some other library. In my application I need to use tidy library, which I previously downloaded and used successfully.
    I have this lib built for Visual Studio, but linking it in Qt produces multiple undefined reference errors, so I assume I have to build it again with different settings. I have very little experience with building libraries and my understanding of CMake is very shallow. Could you point me in the right direction what should I do? Can I build this library using QtCreator or should I use CMake? Which generator should I use? My Qt uses MinGW, so I think MinGW Makefiles is a good option?

    Thanks for any help and sorry if my questions are very basic, but despite writing code for few years I never got into technical issues of this process.

    K 1 Reply Last reply
    0
    • F frogi16

      I recently started using Qt instead of Visual Studio and some other library. In my application I need to use tidy library, which I previously downloaded and used successfully.
      I have this lib built for Visual Studio, but linking it in Qt produces multiple undefined reference errors, so I assume I have to build it again with different settings. I have very little experience with building libraries and my understanding of CMake is very shallow. Could you point me in the right direction what should I do? Can I build this library using QtCreator or should I use CMake? Which generator should I use? My Qt uses MinGW, so I think MinGW Makefiles is a good option?

      Thanks for any help and sorry if my questions are very basic, but despite writing code for few years I never got into technical issues of this process.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @frogi16

      Hi and welcome in devnet forum

      In most cases MinGW compiled and Visual Studio libraries are not compatible. The object structure and naming is different and therefore the linker cannot find the proper modules.

      Therefore, you have the choice of downloading Qt pre-compiled for your VS compiler, if it is available or to recompile your external library with MinGW tool chain. mingw32-make.exe shall be available in the bin folder of your MinGW installation.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      4

      • Login

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