Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    empty "release" file

    General and Desktop
    2
    8
    2813
    Loading More Posts
    • 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.
    • K
      killerman last edited by killerman

      I've built application using debug and then I did it anagin using release mode and there were 5 files in debug folder and 0 in release folder.

      When i start with release mode and then debug mode then I have reverse situation. There are 5 files in release and zer in debug.

      Also when I try to open .exe file nothing happens. No error or anything. Why is that ?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        From what you wrote, I guess you are running on Windows and probably Visual Studio. What you are seeing is the classic VS setup that whatever the mode is, creates both subfolders (debug and release) in the build directory. Qt Creator works with two different shadow build directories so you have one for debug and one for release. Visual Studio doing things differently than the others, you will have both debug and release folders inside both shadow build directory. So nothing to worry about.

        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 Reply Quote 0
        • K
          killerman last edited by

          Sorry that I wrote my first post not very clearly. I am not worried about two folders but I am worried about that I can't create release version after I've created debug version.

          I am using Qt Creator 3.3.0.

          And why I can't run the .exe file ?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            When changing the mode in Qt Creator ?

            Any error on the console output ?

            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 Reply Quote 0
            • K
              killerman last edited by

              I've already dealed with folders problem. But the other thing is that i can't run my app using .exe file. Nothing shows. No error or anything.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Do you mean the build dir is empty ?

                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 Reply Quote 0
                • K
                  killerman last edited by killerman

                  No. There are 5 files in the build dir and one of them is an .exe file but when i double click on it nothings happens (even with a "clear" Qt WIdget Application").

                  I've made a consol application and it shows for a very very short time and then disappears. I've added few lines of code that should "stop" the application(data input from user) but it still disappears in a moment...

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Ok, now I see where the problem is. If you want to start your application from Window's explorer, you need to first follow the deployment steps that you would need to go through if you were preparing to distribute your application.

                    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 Reply Quote 0
                    • First post
                      Last post