Results 1 to 6 of 6

Thread: Qt Creator: incompatible libraries (windows 7)

  1. #1
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Default Qt Creator: incompatible libraries (windows 7)

    I have built a project in Qt Creator 3.4.1, based on Qt5.4.2, which I recently installed. The project is a Console project that uses a class derived from QWindow. It builds with no problem.

    When I try to run it, from within or outside of Qt Creator, I get an error dialog:

    Program:
    C:\Users\jstarr\Documents\debug\showpoly.exe
    Module: 5.4.1
    File: kernel\qobject.cpp
    Line: 197

    Cannot mix incompatible Qt library (version 0x50402) with this library (version 0x50401)

    As far as I know I have removed all older Qt remnants from the machine. I cannot find any file named qobject.cpp. I cannot figure out or find in the documentation how to determine what path(s) Qt Creator uses to find libraries.

    Is there some way I can get Qt Creator to tell me exactly what libraries it is trying to use?

    Note: this is on Windows 7.

    Thanks!

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: incompatible libraries (windows 7)

    Is there some way I can get Qt Creator to tell me exactly what libraries it is trying to use?
    Look at the Kit configuration for your project.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: incompatible libraries (windows 7)

    I don't see anything in the Kit configuration that seems to apply. Can you tell me exactly what you are referring to?

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: incompatible libraries (windows 7)

    When you open a project for the first time, it gives you a list of kits. After you select one, the Projects page will display the name of the currently-selected kit at the top, next to the Add Kit / Manage Kits / Build / Run buttons, see the first screenshot below. If you click the Manage Kits button, you'll get a dialog box like the second screen shot. Select Build and Run, then select the kit with the same name as shown in the first screen shot and it will show the details of the compiler, Qt version, etc.

    The other thing you need to check is to ensure that your Path environment variable has the correct Qt version first.

    Kits2.PNG Kits1.jpg
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  5. #5
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: incompatible libraries (windows 7)

    I have looked at that dialog. I don't think I have a problem with the compiler and other things listed. I don't see anywhere in your screen shot or when I look at that dialog that pertains to where it is looking for libraries. My problem is that it is telling me about a library incompatibility and it doesn't tell me specifically which librarie(s) and I can't find any documentation of how to determine the paths where it looks for them.

  6. #6
    Join Date
    May 2018
    Posts
    13
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator: incompatible libraries (windows 7)

    Can anyone give me information on how to determine from where Creator is trying to read libraries?

Similar Threads

  1. Replies: 2
    Last Post: 21st April 2012, 10:36
  2. Replies: 7
    Last Post: 20th March 2011, 22:07
  3. Creator - Building Libraries?
    By SixDegrees in forum Qt Programming
    Replies: 8
    Last Post: 6th November 2010, 15:30
  4. Cannot mix incompatible Qt libraries
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 17th September 2009, 07:59

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.