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. Qt 5.6.0 cant compile project Windows 10
Forum Updated to NodeBB v4.3 + New Features

Qt 5.6.0 cant compile project Windows 10

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 2 Posters 5.0k 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.
  • nukeN Offline
    nukeN Offline
    nuke
    wrote on last edited by
    #1

    Hi,

    I have installed Qt 5.6.0 from:

    https://www.qt.io/download-open-source/#section-2 version: Qt 5.6.0 for Windows 64-bit (VS 2015, 836 MB)
    but i can´t compile basic programe i have installed cigwin 64 and 32 bit and i have also tried mingw i have followed advice from Ani (sixth answer)

    http://stackoverflow.com/questions/14700965/qt-creator-needs-a-compiler-set-up-to-build-configure-a-compiler-in-the-kit-opt

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

      Hi,

      You installed Qt for Visual Studio 2015. Do you have Visual Studio 2015 installed on your computer ?

      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
      • nukeN Offline
        nukeN Offline
        nuke
        wrote on last edited by nuke
        #3

        Hi,

        yesi can finally compile but i have this error
        ...\qt\Qt5.6.0\5.6\msvc2015_64\bin\uic.exe:-1: e: error while loading shared libraries: VCRUNTIME140.dll: cannot open shared object file: No such file or directory

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

          Strange, looks like you are missing the Visual Studio 2015 runtime.

          You can get them here

          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
          • nukeN Offline
            nukeN Offline
            nuke
            wrote on last edited by
            #5

            Thanks a lot but still error but i am a little bit further now :)

            error: cannot find -lmingw32

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

              That errors means you are trying to link to a MinGW32 library which is not a good idea since you are using Visual Studio.

              Do you have that library hardcoded in your project ?

              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
              • nukeN Offline
                nukeN Offline
                nuke
                wrote on last edited by
                #7

                @SGaist said:

                ou have that library hardcoded in your project ?

                I actually dont run Qt libraries from Visual studio i would like to use Qt creator and connect compiler manualy. Is there some easy way to start Qt 64 bit on windows without Vs (can be some older version) THanks for help again

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

                  Just install the MinGW package. It provides both Qt and the MinGW compiler (verify the options)

                  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
                  • nukeN Offline
                    nukeN Offline
                    nuke
                    wrote on last edited by
                    #9

                    @SGaist said:

                    MinGW package

                    I have followed this example but stil not working

                    Before continuing to next steps make sure u have downloaded latest version of Qt.

                    Download and install minGW-64-bit from link: https://sourceforge.net/projects/mingw-w64/files/latest/download
                    Remember The directory to which you install minGW.
                    Open Qt creator and go to tools -> options -> Build and Run
                    In Compilers tab Select add -> MinGW ->
                    Name: MinGW
                    path: Browse for mingw-w64.bat (you will find this file in the directory in which you have installed MinGW).
                    ABI: x86 Windows msvc2015 pe 64bit

                    Don't forget to apply your edits.
                    Go to Kit -> add
                    Name: GCC
                    Device Type: Desktop
                    Device: Local PC (Default for desktop)
                    Compiler: minGW
                    Qt Version: select newest version

                    Apply changes and restart qt
                    While creating new project make sure you use GCC as kit

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

                      There's no need to go grab an external version of MinGW. The Qt installer already provides it.

                      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
                      • nukeN Offline
                        nukeN Offline
                        nuke
                        wrote on last edited by
                        #11

                        @SGaist said:

                        re's no need to go grab an external version of MinGW. The Qt installe

                        I have download offline installer and i dont know where can i find builtin MinGW
                        (Qt 5.6.1 for Windows 64-bit (VS 2015, 836 MB))

                        Thanks for help again

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

                          Because it's the offline installer for MSVC2015.

                          Either grab the offline installer for MinGW or better yet, use the Online installer. With that one you can choose which version of Qt you want to install and easily upgrade.

                          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
                          • nukeN Offline
                            nukeN Offline
                            nuke
                            wrote on last edited by nuke
                            #13

                            I have tried this as first but it only installed 32 bit version of Qt and mingw

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

                              Because currently there's no official package of MinGW64 from the Qt Company.

                              Out of curiosity, do you really need to build in 64bit ?

                              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