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. Right compiler for Qt and external libraries
Forum Updated to NodeBB v4.3 + New Features

Right compiler for Qt and external libraries

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

    Hi everyone,

    I am new to Qt and I have this huge problem that I have to solve. After spending days in trying to fix it I finally decide to ask in this forum.
    So I have this project to do and I need to work with Qt and two known libraries (Opencv and PCL, point cloud library). So I installed the last version of Qt (5.3.2) w/ MinGW32-etc and then I decided to download and try one library at a time, instead of all the libraries together.

    So I started with opencv, that I built with qt support and everything went fine (my qt+opencv test programs).
    Then I downloaded PCL and I discovered that (under windows) it needs msvc 2010.
    So I downloaded the microsoft sdk 7.1, hoping that in this way I was able to select the msvc 2010 compiler in the Qt build options: it doesn't work because there is no qt version able to compile for the selected compiler.

    So does this mean that I have to download the msvc 2010 version of Qt?
    Will the opencv libraries compiled with mingw still work?
    Now that I have installed the Microsoft SDK 7.1, do I have the right compiler (msvc2010) for using PCL with Qt?

    Thank you very much for you answers.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Short answer: build everything with the same compiler.

      So yes, you have to download the VS2010 version of Qt

      AFAIK, OpenCV builds without any problem with VS2010. Mixing libraries from different compilers is a bad idea since most of them are not compatible one with the other.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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