Qt Exe

Alles rund um die Programmierung mit Qt
Antworten
js
Beiträge: 59
Registriert: 4. Juli 2011 21:29

Qt Exe

Beitrag von js »

abend,

wollte meine exe auf einem anderen rechner zum laufen bringen bekomme aber die Fehlermeldung:

Diese Anwendung konnte nicht gestartet werden, weil die Anwendungskonfiguration nciht korrekt ist. ??

lg
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: Qt Exe

Beitrag von Christian81 »

Hast du auch alle Dlls mitgeliefert -> Foren-Suche 'Dependency Walker'
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
js
Beiträge: 59
Registriert: 4. Juli 2011 21:29

Re: Qt Exe

Beitrag von js »

Vielen dank für die schnelle Antwort. Habe das tool gestartet und alle dll die gebraucht wurden kopiert.
Bekomme jedoch das hier als Fehler: Mit c++ runtime habe ich es auch schon probiert
2.png
2.png (52.81 KiB) 3871 mal betrachtet
The Side-by-Side configuration information for "c:\be\TPOPT.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\be\QTCORE4.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\be\QTGUI4.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\be\LIBXML2.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\be\QWT.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: The Side-by-Side configuration information for "c:\be\QTSVG4.DLL" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.


Unter Konfig.- Allgemein -

Verwendung von MFC = Windows-Standardbib.
Verwendung von ATL = AtL wird nicht verwendet

Unter C/C++ - Codegenerierung
Laufzeitbibliothek = /MDd

Unter Linker - Eingabe
Zusätzliche Abhängigkeiten=
Habe es mit :
qtmaind.lib QtCored4.lib QtGuid4.lib QtXmld4.lib QtOpenGLd4.lib opengl32.lib glu32.lib QtXmlPatternsd4.lib C:\Optimierung2\qwt\lib\qwtd.lib

und mit :
qtmaind.lib QtCored4.lib QtGuid4.lib QtXmld4.lib QtOpenGLd4.lib opengl32.lib glu32.lib QtXmlPatternsd4.lib C:\Optimierung2\qwt\lib\qwtd.lib

getestet bei beiden das selbe Problem
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: Qt Exe

Beitrag von Christian81 »

Debug-Libraries und Executables verteilt man nicht und darf man laut den MS-Lizenzbestimmungen auch gar nicht. Verteile die Release-Libs und es geht.
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
js
Beiträge: 59
Registriert: 4. Juli 2011 21:29

Re: Qt Exe

Beitrag von js »

im Release Ordner habe ich keine einzige lib
Christian81
Beiträge: 7319
Registriert: 26. August 2004 14:11
Wohnort: Bremen
Kontaktdaten:

Re: Qt Exe

Beitrag von Christian81 »

Dann muss man wohl Qt und sein eigenes Executable als Release bauen würde ich sagen.
Wenn Qt nur als Debug gebaut ist dann muss man Qt nochmal als Release bauen. Für Deine eigene App kann man das in Visual Studio umstellen ob man Release oder Debug möchte
MfG Christian

'Funktioniert nicht' ist keine Fehlerbeschreibung
ff-fan
Beiträge: 21
Registriert: 14. Januar 2011 17:15

Re: Qt Exe

Beitrag von ff-fan »

Hallo,

also ich hatte damals alle notwendigen Dll's für Debug und Release in meinem QT Ordner gefunden.

unter ...Qt\2010.05\bin und ....Qt\2010.05\qt\bin

Einfach mal dort danach suchen.

Edit:
Achso, bei falscher Konfiguration zieht sich die Applikation ggf.
die falschen Dll-Versionen! (QT mehrfach installiert bzw. Applikation mit
einer anderen QT-Umgebung erzeugt?)

Gruß

ff-Fan
Antworten