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. Problem when compiling on new Qt 5.3.1
Forum Updated to NodeBB v4.3 + New Features

Problem when compiling on new Qt 5.3.1

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 1.9k 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.
  • T Offline
    T Offline
    talexcomputers
    wrote on last edited by
    #1

    I start develop on new version a standard application with one label to show. When I compile I receive next error : -lQt5Widgetsd531 missing.

    I search the lib in Qt folder and nothing.
    Is installed under Windows 8.1 PRO x64.

    I success compile application after copy and rename Qt5Widgetsd.a to Qt5Widgetsd531.a

    This is a general problem or just for windows release?
    Another problem is that when I build application seems the QtCreator not see where the libs are and I must load manual.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arsinte_andrei
      wrote on last edited by
      #2

      add Qt to your windows path.. maybe is a path problem.. where you have installed Qt? ... maybe you need to run it as administrator.. try both...

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

        Hi and welcome to devnet,

        Before fiddling with your PATH or administrator rights, how did you install Qt ? Since you are using static libraries, you probably compiled it yourself, so which option did you use ? Next thing, did you add this version of Qt to Creator ? Did you setup a kit with ?

        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
        • T Offline
          T Offline
          talexcomputers
          wrote on last edited by
          #4

          Hello,

          First of all thank you for help and quick answer and sorry for not answering( I was involved other project).

          Qt is installed on Windows 8 using windows online setup. I installed almost everything..
          Indeed adding qt to PATH solve most of problems but one remains.
          Why he request Qt5Widgetsd531? This library doesn't exist in framework. So only solution I found is to create a copy of Qt5Widgetsd.dll and rename it to Qt5Widgetsd531.dll and then everything is ok.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            I would listen to SGaist's advice. It is not a very good idea to add Qt to your path. It will cause you a ton of problems in the future (new versions of qt) and when deploying applications.

            What you need to do is set the kit up in Qt Creator like he also suggested. I don't use Qt Creator but I did it once before and remember it being pretty easy. Someone else can walk you through that process if needed.

            As for your last question there is nothing in Qt that should request Qt5Widgetsd531.dll. My guess is that is something in your project or in the way you setup Qt. Moving/renaming that file to match that isn't a good solution. If you post your pro file maybe we can see why it is looking for that non-normal file name.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            0
            • T Offline
              T Offline
              talexcomputers
              wrote on last edited by
              #6

              Hello,

              I came back with more information about this errors:

              First I installed qt 5.4 for windows, on win 8.1 pro x64 ( clean install)

              I found some strange things:

              1. if I add qtserialport when I build project I get error that it can't find Qt5SerialPortd540 library, because in Makefile.Debug he require -llibqt5SerialPortd540 instead of -llibqt5SerialPortd
                I tested on win 7 , 8 x64 and get same problem. So is a problem when generating MakeFile with qmake or is from OS?

              2. I install the mingw 4.9.1 from extra option in installer - After this the debbuger is not recognized. I tried to set manual debugger from Mingw 4.8.1 version - is validate by Qt Creator but he won't use it ( so I setup this for nothing) because the IDE use detected debugger despite fact I set manual the debugger.
                Any proposal for how to fix?

              3. I reinstall qt 4 with ALL PACKAGES from installer because I have all ides on same computer ( VSNET 2013, MSSQL, ADK, etc) and when I compile a project from Qt Creator he does not create MakFiles, but if I run qmake from qt command prompt the files are created .
                Any suggestion why he make this?

              Thanks a lot.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                talexcomputers
                wrote on last edited by
                #7

                Hello,

                I came back with more information about this errors:

                First I installed qt 5.4 for windows, on win 8.1 pro x64 ( clean install)

                I found some strange things:

                1. if I add qtserialport when I build project I get error that it can't find Qt5SerialPortd540 library, because in Makefile.Debug he require -llibqt5SerialPortd540 instead of -llibqt5SerialPortd
                  I tested on win 7 , 8 x64 and get same problem. So is a problem when generating MakeFile with qmake or is from OS?

                2. I install the mingw 4.9.1 from extra option in installer - After this the debbuger is not recognized. I tried to set manual debugger from Mingw 4.8.1 version - is validate by Qt Creator but he won't use it ( so I setup this for nothing) because the IDE use detected debugger despite fact I set manual the debugger.
                  Any proposal for how to fix?

                3. I reinstall qt 4 with ALL PACKAGES from installer because I have all ides on same computer ( VSNET 2013, MSSQL, ADK, etc) and when I compile a project from Qt Creator he does not create MakFiles, but if I run qmake from qt command prompt the files are created .
                  Any suggestion why he make this?

                Thanks a lot.

                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