Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    [Solved] Compiled from source, app doesn't want to open, even from old commits that were working

    General and Desktop
    2
    15
    2158
    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.
    • T
      thistleknot last edited by

      I have this project hosted here:

      https://github.com/thistleknot/DiffMatchPatch

      I was VERY meticulous and verified each of my commit's ran a successful compiled version.

      However, now... no matter what commit I use, or copy to a new directory, try to create a new blank project and import old header's, forms, and cpp files in... I can not get the app to run.

      I even tried debugging my main function by inserting breakpoints and it just skips right by them.

      Any ideas? This happened to me last night. The compiled app just exits from task manager with no errors or messages. It does ask if I want to run as admin however. But that's it.

      There's some information missing like:

      what do you mean by you can not get it to run ?
      I attempt to open the compiled binary. It prompts me if I want it to run with admin rights (as it always has asked), I click yes. App never opens. No error message. I can watch it run in taskmanager, but it exists by itself.

      I did not update QT.

      I did not update my Avast Anti-Virus inbetween.

      I do not get any error notification.

      Windows 7 x64

      QT creator 5.3.1

      Only thing I can think of is maybe github is messing with the folder, or maybe the qt project file that is in the folder is getting scrambled by the github client.

      What I don't get. Is it's only maybe 5-7 source files. I should be able to rebuild it. Which I was by creating a new empty project. But even then... the new file just exits as I described.

      I've tried rebooting as well. I'm wondering if anyone else is able to build the project and get it to run.

      Note:
      I did have a weird issue where I had cmake run everytime I opened qt creator after installing it for trying to compile another app. I've since uninstalled cmake, and was able to create my project from the ground up with no issues. Issuing many commits and rebuilding. Now it just seems I've lost the ability to successfully run any of my compiled commits.

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

        Hi and welcome to devnet,

        There's some information missing like: what do you mean by you can not get it to run ? What exact error are you getting ? What OS are you using ? Was there an update to Qt done in between ? Do you have a new antivirus running ?

        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
        • T
          thistleknot last edited by

          [quote author="SGaist" date="1407703174"]Hi and welcome to devnet,

          There's some information missing like: what do you mean by you can not get it to run ? What exact error are you getting ? What OS are you using ? Was there an update to Qt done in between ? Do you have a new antivirus running ?[/quote]

          I hit on each of your questions in the main post.

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

            There's something fishy there, you should not need to run with admin rights, how was Qt installed ?

            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
            • T
              thistleknot last edited by

              off this offline installer:

              qt-opensource-windows-x86-mingw482_opengl-5.3.1

              if you want, i'd be open to you teamviewing into my pc and trying to check it out.

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

                Sorry, but I'm currently not a powerful enough connection for that

                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
                • T
                  thistleknot last edited by

                  well if you can attempt to build it and see why the binary simply just exits without ever showing a window. then that might help. The entire project is like 300kb.

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

                    The binary can't be built since you have defined two main function, your test should be an independent sub-project. Anyway once that removed, it builds and run fine at least on OS X.

                    On a side note you should not have .pro.user files in your repository it's only valid for 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 Reply Quote 0
                    • T
                      thistleknot last edited by

                      I don't have two main functions.

                      One of those is commented out.

                      1 Reply Last reply Reply Quote 0
                      • T
                        thistleknot last edited by

                        it was those test files like you said. Maybe they had main's?

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

                          Then your git repository might not be up to date. Currently there's a main in main.cpp and one in diff_match_past_test.cpp

                          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
                          • T
                            thistleknot last edited by

                            thanks, you found the solution. I wasn't aware that the test.cpp's would build, just not run my app.

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

                              It's listed in SOURCES so it will build.

                              What you can to about it is to make a test case project for each of your tests.

                              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
                              • T
                                thistleknot last edited by

                                thanks, I think the issue was two fold.

                                One I had the .user file

                                and

                                two

                                I had other main's in my test...cpp

                                Thanks, but it's working now. You were a tremendous help. I'll reincorporate those other functions later.

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

                                  You're welcome!

                                  Then please also update the thread title prepending [solved] so other forum users may know a solution has been found :)

                                  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