Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Deploy Qt5.2 plus MYSQL Win7 [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Deploy Qt5.2 plus MYSQL Win7 [SOLVED]

Scheduled Pinned Locked Moved German
36 Posts 2 Posters 15.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clochydd
    wrote on last edited by
    #4

    Heißt das, es startet vom Creator aus nicht oder nicht auf den Clients?
    Wir müssen in jedem Fall Fehlermeldungen/-infomationen erzeugen, damit wir das Baby wieder zum laufen bringen...

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nickvan86
      wrote on last edited by
      #5

      Bekomme von Windows folgende Meldung:

      @Problem signature:
      Problem Event Name: APPCRASH
      Application Name: Biodate.exe
      Application Version: 0.0.0.0
      Application Timestamp: 53344efa
      Fault Module Name: Qt5Cored.dll
      Fault Module Version: 5.2.1.0
      Fault Module Timestamp: 52ed67e6
      Exception Code: c00000fd
      Exception Offset: 001c0d76
      OS Version: 6.1.7601.2.1.0.256.48
      Locale ID: 1031
      Additional Information 1: 0224
      Additional Information 2: 02243292856ec4b94152c7718e4919e1
      Additional Information 3: b118
      Additional Information 4: b118752717c348612a233e4229bd1cf9

      Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

      If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
      @

      Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clochydd
        wrote on last edited by
        #6

        Die Meldungen sagen mir leider nichts - beanstandet wird scheinbar die Qt5Cored.dll.
        Läuft das Programm noch, wenn du es im Creator in Debug oder Release startest? Hilft evtl. ein komplett neuer Build?
        Ich würde als nächsten Schritt ein ganz simples Hello World Programm testen und - wenn die App wieder crashed, nach "Qt5Cored.dll Win7 crash" googeln.

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nickvan86
          wrote on last edited by
          #7

          Ein einfaches helllo World mit GUI funktioniert ohne Probleme.

          Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nickvan86
            wrote on last edited by
            #8

            Hab jetzt mal alles gelöscht vom debug und neu gemacht. Bekomme jetzt folgenden Fehler:

            @:-1: error: [ui_mainwindow.h] Error -1073741511@

            Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nickvan86
              wrote on last edited by
              #9

              Hab jetzt das komplette Qt neu Installiert und es ist immer noch der Fehler da :-(

              Weis einer einen rat?

              "hier das Projekt":https://www.dropbox.com/s/dm86239at8hwj5o/Biodate.rar

              Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

              1 Reply Last reply
              0
              • C Offline
                C Offline
                clochydd
                wrote on last edited by
                #10

                Aber das Hello World läuft noch?
                Läuft eines der Beispiele von Qt mit SQL (z.B.SQL Browser)?

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  nickvan86
                  wrote on last edited by
                  #11

                  Das hello World läuft ohne Fehler. Muss jetzt noch eins machen um das sql zu probieren.

                  Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    nickvan86
                    wrote on last edited by
                    #12

                    Also habe folgendes Testobjekt erstellt und ausprobiert:

                    @public:
                    QSqlDatabase db1;
                    bool dbOpen()
                    {
                    db1=QSqlDatabase::addDatabase("QMYSQL");
                    db1.setDatabaseName("baur_test_dbo");
                    db1.setHostName("10.211.55.6");
                    db1.setPort(3306);
                    db1.setUserName("test");
                    db1.setPassword("server");
                    if(!db1.open())
                    return false;
                    else
                    return true;
                    }
                    void dbClose()
                    {
                    db1.close();
                    }@

                    Mit Folgendem Button und TableView

                    @ MainWindow main;
                    if(!main.dbOpen())
                    QMessageBox::critical(this,"ERROR","Datenbank nicht offen");
                    else
                    {
                    QSqlQuery *qry = new QSqlQuery(main.db1);
                    QSqlQueryModel * model = new QSqlQueryModel();
                    qry->prepare("SELECT * FROM einkauf");
                    if(qry->exec())
                    {
                    model->setQuery(*qry);
                    ui->tableView->setModel(model);

                        }
                        else
                            QMessageBox::critical(this,"ERROR",qry->lastError().text());
                    }@
                    

                    Das Programm läuft ohne Fehler und die Datenbank wird auch geöffnet und darf die Table sehen.

                    Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clochydd
                      wrote on last edited by
                      #13

                      und was ist jetzt mit deinem biodate-projekt?
                      Bekommst du noch Fehlermeldungen oder läuft das jetzt auch?
                      Die zuletzt gepostete Meldung bezieht sich ja wahrscheinlich auf das Öffnen der Datenbank und - soweit ich das sehe - ist das identisch mit dem Testprogramm.

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        nickvan86
                        wrote on last edited by
                        #14

                        Ja ist sehr identisch. Aber biodate läuft immer noch nicht. Kommt immer noch die gleiche Fehlermeldung. Kannst du es bei die öffnen?

                        Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clochydd
                          wrote on last edited by
                          #15

                          Ich kann das Projekt nur starten, wenn ich in mainwindow.cpp die Zeile "MainWindow main" auskommentiere. Mit der Zeile stürzt das Programm sofort ab mit "RTTI symbol not found..."

                          @
                          MainWindow::MainWindow(QWidget *parent) :
                          QMainWindow(parent),
                          ui(new Ui::MainWindow)
                          {
                          // auskommentiert: MainWindow main;
                          ui->setupUi(this);
                          ui->menuBar->hide();

                          }
                          @

                          Ich kann aber nur bis zum mainwindow.ui testen, weil ich die Datenbank nicht habe - bzw. aktuell auch ausschließlich mit PostgreSQL arbeite. Es erscheint aber die Fehlermeldung: "Fehler beim öffnen der Datenbank" und das ist ja die erwartete Reaktion.

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            nickvan86
                            wrote on last edited by
                            #16

                            Ja genau. Ich versuche es später mal.

                            Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                            1 Reply Last reply
                            0
                            • N Offline
                              N Offline
                              nickvan86
                              wrote on last edited by
                              #17

                              Also hattest recht. Funktioniert wenn man das in der cpp auskommentiert. Mich interessiert es nur ob er sich mal beim erstellen verschluckt hat :-(
                              Aber danke für die Hilfe. Muss jetzt nur noch schauen wie ich es auf andere PC´s zum laufen bekomme :-)

                              Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                              1 Reply Last reply
                              0
                              • C Offline
                                C Offline
                                clochydd
                                wrote on last edited by
                                #18

                                Prima, das freut mich - und die nächste Aufgabe werden wir auch bewältigen :-)

                                1 Reply Last reply
                                0
                                • N Offline
                                  N Offline
                                  nickvan86
                                  wrote on last edited by
                                  #19

                                  Habe jetzt mal unter parallels eine win7 virtuell erstellt um zu testen.

                                  Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    nickvan86
                                    wrote on last edited by
                                    #20

                                    So, habe jetzt mal alle dll die er sagt in das gleiche Verzeichnis getan. Beim starten kommt folgende fehlermeldung:

                                    @The procedure entry point _Z8qWinMainP11HINSTANCE_S0_PciRiR7QVectorIS1_E could not be located in the dynamic link library Qt5Core.dll.@

                                    Weis das jemand zufällig?

                                    Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      clochydd
                                      wrote on last edited by
                                      #21

                                      Lege doch unter dem Verzeichnis deiner App (.exe) das Verzeichnis plugins/platform an und kopiere die Qt5Core.dll (ggf. auch die anderen) hinein.
                                      Wichtig ist, dass 64-Bit und 32-Bit Versionen nicht gemischt werden.

                                      1 Reply Last reply
                                      0
                                      • N Offline
                                        N Offline
                                        nickvan86
                                        wrote on last edited by
                                        #22

                                        Funktioniert auch nicht :-( findet den Einsprungspunkt wieder nicht. Habe auch schon mal an der PATH mich versucht aber auch ohne erfolg

                                        Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          clochydd
                                          wrote on last edited by
                                          #23

                                          Zu "located in the dynamic link library Qt5Core.dll" gibt es Menge Einträge im Qt Forum u.a. - wenn ich das richtig sehe, bezieht es sich immer auf das Verteilen der App.exe auf andere Rechner.

                                          Ich würde jetzt wie folgt vorgehen:

                                          1. Die Einträge zum Fehler überfliegen - vielleicht findest du den entscheidenden Hinweis.
                                          2. Die einfache Hello World auf einem Client installieren
                                            3.1. Wenn die nicht läuft, Meldungen posten.
                                            3.2. Zum Testen Qt auf einem Client installieren.
                                            3.3. Hello World testen
                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved