Results 1 to 11 of 11

Thread: Migrating development XD

Hybrid View

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

    Default Re: Migrating development XD

    ok so i need to install mysql libraries dont i ? i only need the sources and add the path to the dependencies? or better placing the dependencies in the executable directory?
    thanks

  2. #2
    Join Date
    Nov 2006
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Migrating development XD

    As you need. It depends on you where you put additional mysql libraries. But ensure that you fulfil all needs of your plugin. And be aware of release/debug mix as Jacek mentioned. Good luck.

  3. The following user says thank you to budul for this useful post:

    chaosgeorge (23rd November 2006)

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

    Default Re: Migrating development XD

    guess what, i get a driver not loaded message, i managed to compile with plugin but running it i get that, i checked the plugin's dependencies with dependency walker and i got everything ok, so any suggestions? thanks

    btw do i need to add a path to some mysql directory in env vars?

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

    Default Re: Migrating development XD

    ok it looks like qsqlmysql plugin does not need any libraries that come with the source of mysql, however to work with the Qt 4.2.1 i had to remake the plugin as I did with my home's 4.2.0, i dont think there is incompatibility with Qt versions because the plugin made in the 4.2.1 machine worked fine with my 4.2.0 at home, but i dont want to remake the plugin wherever i port my app, what could be the problem that i had to remake the plugin to work? mingw incompatibility? Qt? mysql drivers?

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

    Default Re: Migrating development XD

    One of the possible explanations it that Qt adds a "build key" to plugins and it refuses to load them if their key differs from the library key.

    http://doc.trolltech.com/4.2/plugins...#the-build-key

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

    Default Re: Migrating development XD

    Quote Originally Posted by chaosgeorge View Post
    ok so i need to install mysql libraries dont i ? i only need the sources and add the path to the dependencies? or better placing the dependencies in the executable directory?
    IMO the safest way is to copy MySQL DLLs to the same directory where you executable is (note that the QMYSQL plugin itself has to be in a "sqldrivers" subdirectory).

    You can use Dependency Walker to check what MySQL DLLs that plugin needs, but beware that it might require more DLLs, as these can be loaded in the runtime.

Similar Threads

  1. Qtopia host side development environment for ARM target.
    By hvreddy1110 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th October 2006, 15:05

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.