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



  • 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.


  • Lifetime Qt Champion

    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 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.


  • Lifetime Qt Champion

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



  • 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.


  • Lifetime Qt Champion

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



  • 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.


  • Lifetime Qt Champion

    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



  • I don't have two main functions.

    One of those is commented out.



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


  • Lifetime Qt Champion

    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



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


  • Lifetime Qt Champion

    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.



  • 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.


  • Lifetime Qt Champion

    You're welcome!

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.