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. [Solved] Compiled from source, app doesn't want to open, even from old commits that were working

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

Scheduled Pinned Locked Moved General and Desktop
15 Posts 2 Posters 2.7k Views
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #6

    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
    0
    • T Offline
      T Offline
      thistleknot
      wrote on last edited by
      #7

      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
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #8

        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
        0
        • T Offline
          T Offline
          thistleknot
          wrote on last edited by
          #9

          I don't have two main functions.

          One of those is commented out.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thistleknot
            wrote on last edited by
            #10

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

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

              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
              0
              • T Offline
                T Offline
                thistleknot
                wrote on last edited by
                #12

                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
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #13

                  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
                  0
                  • T Offline
                    T Offline
                    thistleknot
                    wrote on last edited by
                    #14

                    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
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #15

                      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
                      0

                      • Login

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