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. Cant compile project
Qt 6.11 is out! See what's new in the release blog

Cant compile project

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 745 Views 2 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.
  • M Offline
    M Offline
    Mothershadowninja
    wrote on last edited by
    #1

    Hey
    I am very new to Qt and run into a problem.
    I finished my first project(Qt Widgets Application) and I followed some tutorials for how to compile in Qt. It runs without a single error message. when I check for the folder it should have created I can't find it.

    My spec:
    Qt Creator 4.11.0
    Virtuelle Linux maschine
    Compiler GCC / Clang

    Hopefully, someone can help me with my problem.

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

      Hi and welcome to devnet,

      What folder should that be ?

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

      M 1 Reply Last reply
      0
      • M Mothershadowninja

        Hey
        I am very new to Qt and run into a problem.
        I finished my first project(Qt Widgets Application) and I followed some tutorials for how to compile in Qt. It runs without a single error message. when I check for the folder it should have created I can't find it.

        My spec:
        Qt Creator 4.11.0
        Virtuelle Linux maschine
        Compiler GCC / Clang

        Hopefully, someone can help me with my problem.

        Pl45m4P Offline
        Pl45m4P Offline
        Pl45m4
        wrote on last edited by Pl45m4
        #3

        @Mothershadowninja

        Check your build directory.

        If you dont specify a full path, your app will create new folders in its working directory, which is your build dir (when running your app from QtC).

        If you still can't find it, show us what you did.

        Btw: I think the title of this topic doesn't describe your issue properly. As far as I understand, you project compiles, but you just can't find the folders it should have created.


        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

        ~E. W. Dijkstra

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi and welcome to devnet,

          What folder should that be ?

          M Offline
          M Offline
          Mothershadowninja
          wrote on last edited by Mothershadowninja
          #4

          @SGaist
          Thanks for the Tipp. It creates now a folder and I see all my source, header, and O-files. That is a step in the right direction. But no .exe file. Is there something I oversee?
          I follow the step shown in the help-section.

          And sorry I couldn't think of a better topic.

          KroMignonK Pl45m4P 2 Replies Last reply
          0
          • M Mothershadowninja

            @SGaist
            Thanks for the Tipp. It creates now a folder and I see all my source, header, and O-files. That is a step in the right direction. But no .exe file. Is there something I oversee?
            I follow the step shown in the help-section.

            And sorry I couldn't think of a better topic.

            KroMignonK Offline
            KroMignonK Offline
            KroMignon
            wrote on last edited by
            #5

            @Mothershadowninja said in Cant compile project:

            It creates now a folder and I see all my source, header, and O-files.

            Can you explain what you are doing?
            What Qt Kit are you using?
            What build system are you using?
            Have you take a look at QtCreator documentation? ==> https://doc.qt.io/qtcreator/creator-build-settings.html

            It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

            1 Reply Last reply
            1
            • M Mothershadowninja

              @SGaist
              Thanks for the Tipp. It creates now a folder and I see all my source, header, and O-files. That is a step in the right direction. But no .exe file. Is there something I oversee?
              I follow the step shown in the help-section.

              And sorry I couldn't think of a better topic.

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @Mothershadowninja

              What are you talking about?
              What folders? Do you mean the folders in your QtCreator's project directory or folders somewhere else on your HD?

              You need to deploy your app in order to use your .exe.
              It should be in your build directory.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mothershadowninja
                wrote on last edited by
                #7

                Sure
                I do it like this:

                1. Click on the Build and Run Kit Selector icon
                2. And then I press Ctrl+B

                I use perhaps a preset Kit with the following parameters
                Device type: Desktop
                Device: Lokaler PC
                Compiler: GCC(C++,x86bit )
                Debugger : GDB for the system
                Qt version: Qt 5.12 8
                CMake generator <none> - <none>,Platform: <none>, Toolset: <none>
                CMake Configuration:
                CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable:Cxx}
                CMAKE_C_COMPILER:STRING=%{Compiler:Executable:C}
                CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
                QT_QMAKE_EXECUTABLE:STRING=%{Qt:qmakeExecutable}

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mothershadowninja
                  wrote on last edited by
                  #8

                  After a new install from Qt and MinGW it works.

                  Thanks for the help everyone

                  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