Launching app outside of Creator?
-
[quote]I thougth you want to start you app without the development environment, isn’t it?[/quote]
Yes, that's it exactly. I'd like the user to be able to double-click on the .exe file and have the app run, and/or start it from the command line.
And, this particular app doesn't use any Qt libraries. It's just a plain .cpp program.
I did try this with the two files you mentioned in the same directory as the app. The app no longer gives me an error, but it also doesn't run.
So, I'm obviously missing something, which is probably quite elementary, because I'm pretty ignorant of Windows. This is why I was asking whether I could re-route my cout calls so I can see them. It's possible the program is starting up, running into an immediate problem (like a data file not found) and quitting, but...I have no visibility into this as it is.
-
Is this a commandline tool? Did you start your app from cmd.exe?
-
I tried both. I double-clicked on the executable from a window, and I tried to run it via cmd.exe. Same results (nothing).
-
Can you provide the app, so I can test it?
-
I appreciate that offer. I need to supply some needed data files, but first I need to truncate them. Give me a little time. Once I have this ready, what's the best way to convey this to you?
-
For me it's easier to test it by myself ;-).
On the other hand you can provide more details to your app. I suppose it run from within QtCreator, isn't it? It's a pure c++ app? You use the mingw32 toolchain? If you use QtCreator, how looks your pro file? You can show a picture from dependency walker. Do you use mingw32 dll's version from Qt SDK? a.s.o. .... -
OK, how about I email you the .exe and the .pro file? You can't run it without the input files, but maybe you can learn something about it.
Yes, it's pure C++, and I'm using the mingw32 tool chain (can't get Visual Studio to work, but that's a problem for another thread).
-
I sent you a pn ;-)
-
Replied via email. Thanks!
-
Sorry but I didn't receive any email :-(.
-
Just sent it again. It has about 5 MB of attachment, so maybe it's hitting your spam filter?
-
5MB should be no problem. There is still no mail :-(. You can try a file hoster like "mediafire":http://www.mediafire.com/ .
-
OK, I'll try mediafire. Here are links to the two files:
http://www.mediafire.com/download.php?51mwc8bc8u4tz2f
http://www.mediafire.com/download.php?ana1f1077idbzg5 -
So now I got the files. So I will take a look at this ;-)
-
So, here it doesn't run as well. The debugger says it crashs while loading some dll's. Is this version a debug or a release version. On windows you can not mix them. Is this a 64Bit or a 32Bit version? I know this behavior while mixing release/debug libs. Is there any argument needed for starting the app? Is this app a console app or a win API app?
-
Scylla -
I'm so sorry I didn't get back to you...I didn't see your message until just now. I believe I uploaded a debug, 32-bit version (I'm still trying to get a 64-bit version of Qt built, but I'm running into issues). It's a console app, and the version I sent you doesn't need any arguments.
This was the same problem I had...when I try to run it, it tells me it needs a couple of .dlls. When I supply those .dlls, it silently opens, then closes much too quickly to have done anything.
I can upload a new image, or send you some source if you want to look at the top-level routines.
Thanks.