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. Unable to run any code in QTCreator
Forum Updated to NodeBB v4.3 + New Features

Unable to run any code in QTCreator

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 3 Posters 4.6k 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.
  • 3 Offline
    3 Offline
    3dh3dh.de
    wrote on last edited by
    #2

    Hi,

    please provide more informations about your development environment (Qt version, compiler, IDE version) and operating system.

    As you maybe already experienced the Qt SDK is available on many different Linux, Unix; QNX, Windows, Mac OS X and mobile platforms.

    ciao,
    Chris

    // http://3DH.de

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dn588
      wrote on last edited by
      #3

      Hi Chris i'm using Windows 7 ultimate 32 bit, QTCreator v2.2.0 QT SDK 2010.04 a

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

        Hi and welcome to devnet,

        That SDK and Creator version are 4 years old, unless you are tied to it please consider installing the latest version available "here":http://qt-project.org/downloads

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

          Hi yes I am tied to it as I have to use the version given out by my lecturer. It seems to be working fine for everyone else doing this course...

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dn588
            wrote on last edited by
            #6

            I just spoke to my lecturer and he said it's fine to use the latest version as long as the code could be compiled on the 4-year old version. Would that work?

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

              Then, download also Qt 4.8.5 or 4.8.6 and use that one, you'll be on the safe side in that case.

              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
              • D Offline
                D Offline
                Dn588
                wrote on last edited by
                #8

                Thanks a lot will do that. How would I get the new QTCreator to compile using QT 4.8?.5 or 6?

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

                  Absolutely no need to recompile Qt Creator nor Qt. Just use it and add your Qt 4.8.X to the known Qt version and make a Kit out of 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
                  • D Offline
                    D Offline
                    Dn588
                    wrote on last edited by
                    #10

                    How do I go about doing that? I tried to install QT 4.8.5 but i'm getting a warning when I click install "could not find a valid C:\mingw\include\w32.h" any idea how I can fix that?
                    Thanks

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

                      What packages did you use ?

                      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
                      • D Offline
                        D Offline
                        Dn588
                        wrote on last edited by
                        #12

                        When I installed mingw I only installed the G++ package

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

                          If you can avoid installing external MinGW. The latest Qt installer provides a Qt 5 version with MinGW also in the package, so you have everything in one place.

                          Doing so you would need to install the "4.8.6 snapshot":http://download.qt-project.org/snapshots/qt/4.8/2014-02-17_484/qt-opensource-windows-x86-mingw482-4.8.6-2014-02-17-484.exe so you can directly use it. 4.8.5 is built with MinGW 4.6 which is not compatible with 4.8

                          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
                          • D Offline
                            D Offline
                            Dn588
                            wrote on last edited by
                            #14

                            I finally finished downloading the latest version of QT, but When I try to #include QApplication or QLabel I get an error message saying no such file or directory... any idea what i'm doing wrong? Also how would I create a kit of QT 4.8.6?
                            Thanks again

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

                              Just go in the Kit panel, create a new one and select Qt 4.8.6 as the Qt version to use with 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
                              • D Offline
                                D Offline
                                Dn588
                                wrote on last edited by
                                #16

                                Now when I try to install QT 4,8.6 it complains that g++ isn't installed with mingw. This is the default mingw that came with the latest version of QT. The warning says that it might not work should I just install it anyway? Or is there a way to add g++ to mingw

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

                                  I'am not sure I'm getting you right. Did you install the 5.2 MinGW edition ?

                                  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
                                  • D Offline
                                    D Offline
                                    Dn588
                                    wrote on last edited by
                                    #18

                                    So it turns out the issue was Avast antivirus's realtime protection. Thanks again for all the replies.

                                    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