Unsolved Qt.conf
-
Guten Morgen zusammen,
also um qt.conf zu benutzen muss ich mir die QSetting anwenden?
und dann muss ich der Inhalt der qt.conf datei sprich:[Paths] Prefix = bin Libraries = lib Plugins = plugins
einlesen und in LibraryPath
QCoreApplication::addLibraryPath(......)
addieren.
Ist das richtig?
Danke für eine kurze Feadback
-
laut die Documentation muss ich nur eine qt.conf erstellen.
Codemässig muss ich nichts machen.Also für meine Application muss der qt.conf so ausehen:
[Paths] Plugins = plugins
Dazu muss ich einen ordner mit der Name "plugins" erstellen.
Der Ordner plugins sieht dann so aus:
plugins
plattforms (Unterordner)
-->qwindows.dll (Inhalt)
sqldrivers (Unterordner)
-->qsqlodbc.dll (Inhalt)Wenn ich aber daraus einen Installer erstelle und die Application starte bekomme ich folgende Fehlermeldung:
"The Application failed to start because it could not find or load the Qt plattform plugin "windows" in " ".
Reinstalling the application may fix this problem.Die Fehlermeldung sagte, dass diese DLL "qwindows.dll" nicht zu finden sei.
Was mache ich falsch -
Es wäre super nett, wenn ich einen kurzen Feadback bekommen kann.
Danke -
@Galilio Wieso addressierst du alle Moderatoren?
Es wäre super nett wenn du das nicht tun würdest, speziell nicht im nicht Englishen Forum.
Wenn jemand eine Antwort hat wird er/sie diese auch geben. -
@Galilio Hast du das gelesen und befolgt: http://doc.qt.io/qt-5/windows-deployment.html ?
-
@jsulm
ehrlich gesagt nein
aber soll ich so tun?
Ich dachte es reicht wenn die Library einfach addiere mitQCoreApplication::addLibraryPath(......)
-
@Galilio Es ist überhaupt nicht notwendig mit QCoreApplication::addLibraryPath(......) herumzuhacken.
Speziell kann das gar nicht funktionieren, da das OS die Libraries braucht während es deine App lädt - zu dieser Zeit wird deine App noch gar nicht ausgeführt (also auch nicht QCoreApplication::addLibraryPath(......)).
Also, ja der Link den ich gepostet habe ist der saubere Weg. -
plattforms (Unterordner)
Just a note. its "platforms"
not double tIn case reading English is ok, i also like this overview
http://www.tripleboot.org/?p=138 -
@mrjj
I have changed this but I always have the same error message -
@Galilio
Hmm strange.
Did you use
http://doc.qt.io/qt-5/windows-deployment.html
windeployqt .exe to make the deployment folder?Alternatively, you can use
http://www.dependencywalker.com/to inspect the .exe file and see if any Qt dlls are missing/not found.