[solved] building a "standalone" program
-
Another data point: I hex-edited my executable, searched for ".dll" and came up with these:
- libgcc_s_dw2-1.dll
- mingwm10.dll
- msvcrt.dll
- KERNEL32.DLL
- __register_frame_info.libcj_s.dll
I have copies of 1 and two in my executable folder; I was told I don't need 3 and 4.
5 is a mystery. I can't even find it on my system. And googling doesn't turn up much about it. Can anyone tell me something about this file, and why my program seems to be referencing it?
-
Yeah, I understand. Someone told me it might be a side of effect of using the 32-bit version of MinGW on a 64-bit system. I tried adding my 64-bit version of the compiler to my tool chain, but I'm not able to get it ahead of the one it finds automatically. I've put a path to the 64-bit version ahead of the path to the one in QtSDK in my PATH variable, and even renamed the QtSDK directory to block access, but it still comes up with \QtSDK\mingw\bin first in the list. Any ideas on this?
-
Ahhhhhhh!
The problem was in the .pro file. Evidently, failure to explicitly exclude Qt from the configuration resulted in a few references to Qt functions somewhere in the binary. The winning .pro code is:
@CONFIG += CONSOLE
CONFIG -= qt@Thanks to everyone for the assistance.
-
I have a similar problem...
I am running Ubuntu 12.04 with QT Creator 2.4.1
- most applications run both from the IDE and by double clicking the .exe file, but some applications ONLY run within the IDE, and not when I double click the (same) executable file.
Why???
-
[quote author="bootfinder" date="1400143896"]I have a similar problem...
I am running Ubuntu 12.04 with QT Creator 2.4.1
- most applications run both from the IDE and by double clicking the .exe file, but some applications ONLY run within the IDE, and not when I double click the (same) executable file.
Why???[/quote]Hi bootfinder,
Please read the "official Linux deployment documentation":http://qt-project.org/doc/qt-5/linux-deployment.html, as well as this excellent "blog post about deployment":http://www.tripleboot.org/?p=138
Anyway, your problem sounds different from the original problem in this thread. If you'd like more help, please start a new thread.
P.S. Qt Creator 2.4.1 is extremely old. I recommend upgrading to "Qt Creator 3.1":http://qt-project.org/downloads
-
I have had a similar problem, sometimes my apps worked differently, depending on if I launched it from within Qt Creator, or from the Finder or terminal on OS X.
My problems occurred because the current directory was different depending on from where i launched the application, so that might be something that you guys can check.