Results 1 to 20 of 21

Thread: Step by Step MySQL Plugin... what's next step?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Step by Step MySQL Plugin... what's next step?

    uhm yes i guess i use a function in a class to test the connection but after QApplication

    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3.  
    4. QApplication a(argc, argv);
    5. Q_INIT_RESOURCE(resources);
    6. CMain w;
    7.  
    8. if( !w.createConnection() )
    9. return 1;
    10. w.show();
    11. a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    12. return a.exec();
    13.  
    14. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Step by Step MySQL Plugin... what's next step?

    Quote Originally Posted by chaosgeorge View Post
    uhm yes i guess i use a function in a class to test the connection but after QApplication
    QCoreApplication is responsible for plugin loading, so if you won't create QCoreApplication or QApplication plugins won't be accessible.

    Have you seen any references to MySQL DLLs in Dependency Walker?

  3. #3
    Join Date
    Nov 2006
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Step by Step MySQL Plugin... what's next step?

    Have you seen any references to MySQL DLLs in Dependency Walker?
    Yes i got all references in my release directory and the mysql dll but no luck
    QCoreApplication is responsible for plugin loading, so if you won't create QCoreApplication or QApplication plugins won't be accessible.
    so i must use QCoreApplication instead of QApplication?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Step by Step MySQL Plugin... what's next step?

    Quote Originally Posted by chaosgeorge View Post
    so i must use QCoreApplication instead of QApplication?
    QApplication inherits QCoreApplication.

  5. #5
    Join Date
    Nov 2006
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Step by Step MySQL Plugin... what's next step?

    ok i made the plugin through make and by configure but no success loading it by Qt any ideas?

  6. #6
    Join Date
    Nov 2006
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default

    Oh my wtf hmfs this at least!!!!!!!!!!!!!! i got it!!!!!!!!!!! the problem was... uhm i dont know what it was but i reinstalled mysql, "mingw-ized" the libs "make-ized" the libs to build the plugin "make-installed" the plugin and taratatannn Qt loaded the driver !!!!!! the last option is what worked at least damn o well now i have to solve connection problems to my remote server LOL thanks everyone

    uhm wtf uhm it looks like it only works in the visual studio command prompt environment in qt command prompt it loads the driver but i get the driver not loaded error right after any ideas? by the way i used nmake instead of make
    Last edited by wysota; 5th November 2006 at 10:13. Reason: Merged two posts sent in a short period of time.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Step by Step MySQL Plugin... what's next step?

    You are missing some environment variables (from MySQL?) and you probably mixed up two different builds - MSVC (nmake) one and MinGW (make) one.

  8. #8
    Join Date
    Nov 2006
    Posts
    41
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5

    Default Re: Step by Step MySQL Plugin... what's next step?

    Uhm what environment variables could be? and doesn't matter how i build the program (nmake or make) it just works from any cmd window but qt's cmd window, do i have to add env vars to qt's cmd? how?

Similar Threads

  1. MySQL plugin
    By ksqt in forum Installation and Deployment
    Replies: 12
    Last Post: 24th September 2009, 14:26
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 14:45
  3. Problems building mysql plugin for Qt 4.1.2 on windows XP
    By Philip_Anselmo in forum Installation and Deployment
    Replies: 3
    Last Post: 17th May 2006, 16:38
  4. Building of MySQL plugin fails
    By janca in forum Installation and Deployment
    Replies: 2
    Last Post: 21st January 2006, 09:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.