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. Console Applications
Forum Updated to NodeBB v4.3 + New Features

Console Applications

Scheduled Pinned Locked Moved Solved General and Desktop
47 Posts 8 Posters 26.3k Views 5 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.
  • mrjjM mrjj

    @tomy
    Well do you see .o file ? Maybe there is a build folder one level up?
    If not, then show the log (text) you get from running mingw32-make (step)
    Maybe there is compile or link error as that would do that no .exe is created.

    Ah, sorry. Its in the release folder

    alt text

    A Offline
    A Offline
    ambershark
    wrote on last edited by
    #18

    Oops sorry I forget that in windows things like Release/ and Debug/ folders. :)

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

    mrjjM 1 Reply Last reply
    1
    • A ambershark

      Oops sorry I forget that in windows things like Release/ and Debug/ folders. :)

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #19

      @ambershark
      Well i had to follow the sample and see. Was not sure what would really happen :)

      A 1 Reply Last reply
      0
      • mrjjM mrjj

        @ambershark
        Well i had to follow the sample and see. Was not sure what would really happen :)

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #20

        @mrjj Lol. I'm glad it actually worked since I just typed that out without testing anything. And I don't use windows much so I could easily have messed it up. :)

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

        1 Reply Last reply
        0
        • tomyT Offline
          tomyT Offline
          tomy
          wrote on last edited by
          #21

          Sorry there isn't such a file an any folder there:
          alt text

          jsulmJ 1 Reply Last reply
          0
          • tomyT tomy

            Sorry there isn't such a file an any folder there:
            alt text

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by jsulm
            #22

            @tomy Maybe it is just called differently? So, is there ANY *.exe file?
            Also, if you build in CMD you actually will see which files are generated. Did you check?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • tomyT Offline
              tomyT Offline
              tomy
              wrote on last edited by tomy
              #23

              Look, I did these:
              Creating a C++ file named "main" with a simple code in it, in the "test" folder.
              Then, found and ran all three commands (qmake -project, qmake, mingw32-make).
              And the result as shown above (with no ".exe" file in the "test" folder.
              I CMD:
              alt text

              jsulmJ 2 Replies Last reply
              0
              • tomyT tomy

                Look, I did these:
                Creating a C++ file named "main" with a simple code in it, in the "test" folder.
                Then, found and ran all three commands (qmake -project, qmake, mingw32-make).
                And the result as shown above (with no ".exe" file in the "test" folder.
                I CMD:
                alt text

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #24

                @tomy As you cen see the build failed, that's why there is no exe.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • tomyT tomy

                  Look, I did these:
                  Creating a C++ file named "main" with a simple code in it, in the "test" folder.
                  Then, found and ran all three commands (qmake -project, qmake, mingw32-make).
                  And the result as shown above (with no ".exe" file in the "test" folder.
                  I CMD:
                  alt text

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #25

                  @tomy Looks like g++ is not found.
                  Try to add the bin directory of your MinGW installation to PATH and try again.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #26

                    Hi
                    An alternative to fiddling with path is to run the
                    c:\Qt\5.8\mingw53_32\bin\qtenv2.bat
                    in the cmd before trying to compile.

                    tomyT 1 Reply Last reply
                    1
                    • mrjjM mrjj

                      Hi
                      An alternative to fiddling with path is to run the
                      c:\Qt\5.8\mingw53_32\bin\qtenv2.bat
                      in the cmd before trying to compile.

                      tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by tomy
                      #27

                      @mrjj

                      Hi
                      An alternative to fiddling with path is to run the
                      c:\Qt\5.8\mingw53_32\bin\qtenv2.bat
                      in the cmd before trying to compile.

                      Hi,
                      "The system cannot find the path specified."
                      Anyway, it's not that important and we can leave it out because it's not my purpose to be familiar with running files from CMd, now. Maybe when needed.
                      (I liked to test that simple example this way but, the testing may not be so easy) Thanks.

                      jsulmJ mrjjM 2 Replies Last reply
                      0
                      • tomyT tomy

                        @mrjj

                        Hi
                        An alternative to fiddling with path is to run the
                        c:\Qt\5.8\mingw53_32\bin\qtenv2.bat
                        in the cmd before trying to compile.

                        Hi,
                        "The system cannot find the path specified."
                        Anyway, it's not that important and we can leave it out because it's not my purpose to be familiar with running files from CMd, now. Maybe when needed.
                        (I liked to test that simple example this way but, the testing may not be so easy) Thanks.

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #28

                        @tomy Depending on the MinGW version you install the path can be a bit different. Just search for qtenv2.bat file in your Qt installation directory.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • tomyT Offline
                          tomyT Offline
                          tomy
                          wrote on last edited by tomy
                          #29

                          Yes, I did it and I think the system is set now and ready for the next tests. You can look at this:
                          alt text
                          "text.exe" exists but nothing is shown after test.exe in CMD.

                          Update:
                          After re-opening the CMD and testing the .exe:
                          alt text

                          FlotisableF E mrjjM 3 Replies Last reply
                          0
                          • tomyT tomy

                            Yes, I did it and I think the system is set now and ready for the next tests. You can look at this:
                            alt text
                            "text.exe" exists but nothing is shown after test.exe in CMD.

                            Update:
                            After re-opening the CMD and testing the .exe:
                            alt text

                            FlotisableF Offline
                            FlotisableF Offline
                            Flotisable
                            wrote on last edited by
                            #30

                            @tomy
                            what code you write in test?

                            1 Reply Last reply
                            0
                            • tomyT tomy

                              Yes, I did it and I think the system is set now and ready for the next tests. You can look at this:
                              alt text
                              "text.exe" exists but nothing is shown after test.exe in CMD.

                              Update:
                              After re-opening the CMD and testing the .exe:
                              alt text

                              E Offline
                              E Offline
                              Eeli K
                              wrote on last edited by
                              #31

                              @tomy Locate the libgcc_... file on your system and copy it to the same directory with the exe. Or set the PATH variable. See http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing.

                              1 Reply Last reply
                              0
                              • tomyT tomy

                                @mrjj

                                Hi
                                An alternative to fiddling with path is to run the
                                c:\Qt\5.8\mingw53_32\bin\qtenv2.bat
                                in the cmd before trying to compile.

                                Hi,
                                "The system cannot find the path specified."
                                Anyway, it's not that important and we can leave it out because it's not my purpose to be familiar with running files from CMd, now. Maybe when needed.
                                (I liked to test that simple example this way but, the testing may not be so easy) Thanks.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #32

                                @tomy said in Console Applications:

                                "The system cannot find the path specified."

                                Well you need to use the correct path for your installation.
                                It sets the correct path for tools but that you can also do in other ways.

                                1 Reply Last reply
                                0
                                • tomyT tomy

                                  Yes, I did it and I think the system is set now and ready for the next tests. You can look at this:
                                  alt text
                                  "text.exe" exists but nothing is shown after test.exe in CMD.

                                  Update:
                                  After re-opening the CMD and testing the .exe:
                                  alt text

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by mrjj
                                  #33

                                  @tomy
                                  You need to provide the DLLs it wants from the CORRECT compiler folder under c:\Qt
                                  so you end up with (maybe more DLLs)
                                  alt text

                                  Please read
                                  http://www.tripleboot.org/?p=138

                                  tomyT 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    @tomy
                                    You need to provide the DLLs it wants from the CORRECT compiler folder under c:\Qt
                                    so you end up with (maybe more DLLs)
                                    alt text

                                    Please read
                                    http://www.tripleboot.org/?p=138

                                    tomyT Offline
                                    tomyT Offline
                                    tomy
                                    wrote on last edited by
                                    #34

                                    @mrjj

                                    You need to provide the DLLs it wants from the CORRECT compiler folder under c:\Qt
                                    so you end up with (maybe more DLLs)

                                    I added them from the folder: C:\Qt\Qt5.8.0\5.8\mingw53_32
                                    No reaction.

                                    mrjjM 1 Reply Last reply
                                    0
                                    • tomyT tomy

                                      @mrjj

                                      You need to provide the DLLs it wants from the CORRECT compiler folder under c:\Qt
                                      so you end up with (maybe more DLLs)

                                      I added them from the folder: C:\Qt\Qt5.8.0\5.8\mingw53_32
                                      No reaction.

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #35

                                      @tomy
                                      Did you read the link ?
                                      Anyway, it might need extra dlls :)
                                      You can try the tool
                                      http://doc.qt.io/qt-5/windows-deployment.html

                                      or use
                                      http://www.dependencywalker.com/
                                      To check the dlls.

                                      Anyway, to make it run, that release folder must be an deployment folder so keep reading docs and it will work :)

                                      1 Reply Last reply
                                      1
                                      • tomyT Offline
                                        tomyT Offline
                                        tomy
                                        wrote on last edited by
                                        #36

                                        At the beginning there were only four simple CLI commands to get the result on our contraction, but now I see after doing more than 4x commands I haven't the file run, and still need to go on!
                                        Why should we bother themselves this way! In the Qt Creator or Visual Studio (for console apps) we can get the result in 10x faster than this CLI method.

                                        CLI may be faster in some cases, but not in this one, at least!
                                        Thank you all. Let's don't continue the topic. Thanks again.

                                        mrjjM A 2 Replies Last reply
                                        0
                                        • tomyT tomy

                                          At the beginning there were only four simple CLI commands to get the result on our contraction, but now I see after doing more than 4x commands I haven't the file run, and still need to go on!
                                          Why should we bother themselves this way! In the Qt Creator or Visual Studio (for console apps) we can get the result in 10x faster than this CLI method.

                                          CLI may be faster in some cases, but not in this one, at least!
                                          Thank you all. Let's don't continue the topic. Thanks again.

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #37

                                          @tomy
                                          well being experienced means you know for each job what is the right tool.
                                          Besides using GUI or CLI is 2 sides of same coin. If you look in
                                          Creator/VS you can see the command line it uses to get the job done.

                                          So if i need CLI action i will visually create and edit files and then simply steal the CLI line to build it.

                                          That way i can use CLI when it suits :)

                                          Its not fair to dismiss CLI as GUI would be nothing without it.

                                          GUI was invented to make life easier for those of us that feels CLI is just too much typing but i work with ppl that can create something 10X faster using CLI. Building libs and dependencies. They like CLI for the direct
                                          power user control it gives. If its not for your liking ( or mine ;) then its not the tools fault in my opinion.

                                          The reason it just dont work for you is that the environment is not setup and u are used to the IDE setting it up before running exe. The qtenv2.bat was part of that automation etc. So power user will bother to use CLI as its
                                          efficient and there is noi layer in between (the IDE) so they prefer CLI and some kinky editor :)

                                          1 Reply Last reply
                                          5

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved