Results 1 to 15 of 15

Thread: work general with plugins

  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default work general with plugins

    Hello everybody,

    OS: WINXP
    COMPILER: MINGW
    QT: 3.4

    I have programed a small program who make connection via obdc using the plugin "qsqlodbc.dll" with sql server. Everything work fine on "my machine".
    I copied the program include all dlls to a client.
    the program runs but my qsqlodbc.dll could not be found. "DRIVER NOT LOADED".
    The Program are not able to use qsqlodbc.dll
    What should i do to be able to use this dll in the same directory like my program?
    Think DigitalGasoline

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: work general with plugins

    Create folder sqldrivers in your app folder. Put qsqlodbc.dll here.
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    Hi,
    If i copy everything on the client and make a new directory "sqldrivers" and put my plugin there it works.
    Maybe i have not explain exactly: I copyed everything on a server and i created a shortcut on a client. I was able to run the app from the client, but not to use the odbc plugin. I get the error message on the client "DRIVER NOT LOADED".
    Have i a solution for that?

    THX
    Think DigitalGasoline

  4. #4
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: work general with plugins

    Problem with paths!
    Use something like FileMonitor for searching what dll and where needed by your app in other comp
    a life without programming is like an empty bottle

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

    Default Re: work general with plugins

    You might be missing some ODBC client libraries.

  6. #6
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    hi wysota,
    where should i find the client libs? I have compiled qsqlodbc from qt source..
    Think DigitalGasoline

  7. #7
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: work general with plugins

    how did you bild it if you havent needed libs?
    I surly recomended you use FileMonitor

    p.s. ODBC its not best way conect to database server,use native database driver for it
    a life without programming is like an empty bottle

  8. #8
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    hi
    i tried to copy "libqlqlodbc.a" to the server, but i get the same error message
    FileMonitor should help me,its true.
    I read about native driver. The Docs say that on should use native driver instead of odbc..
    But i found nothing how to create a native driver and how to connect with..
    Have you informations about native drivers?
    Think DigitalGasoline

  9. #9
    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: work general with plugins

    Quote Originally Posted by raphaelf
    i tried to copy "libqlqlodbc.a" to the server, but i get the same error message
    Try copying the .dll file instead. That .a file is needed only for linking.

  10. #10
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    Hi Jacek,
    I tried allready to copy qsqlodbc.dll to the app directory and tried also to create a folder "sqldrivers" and copy the qsqlodbc.dll there.
    I have a problem with starting the app from a client via shortcut
    If i copy the app, dlls on the client it works..But we want to create on every client just a shortcut from the app that is on the server. If we change something on the app, we will have to make nothing on every client..
    Think DigitalGasoline

  11. #11
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: work general with plugins

    Quote Originally Posted by raphaelf
    I read about native driver. The Docs say that on should use native driver instead of odbc..
    But i found nothing how to create a native driver and how to connect with..
    Have you informations about native drivers?
    sorry but what database server you use ?
    Postgre? Firebird? Oracle? ...
    a life without programming is like an empty bottle

  12. #12
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    MS SQL SERVER 7.0
    Think DigitalGasoline

  13. #13
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: work general with plugins

    Hm..Qt havnt direct driver for it..You must use odbc...
    I think you must have 2 dll:
    one - qsqlodbc.dll what must be copied in sqldrivers folder
    second - someodbc.dll what must be in the same with app folder

    Dont ask me what is someodbc.dll
    a life without programming is like an empty bottle

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

    Default Re: work general with plugins

    Quote Originally Posted by raphaelf
    Hi Jacek,
    I tried allready to copy qsqlodbc.dll to the app directory and tried also to create a folder "sqldrivers" and copy the qsqlodbc.dll there.
    I have a problem with starting the app from a client via shortcut
    If i copy the app, dlls on the client it works..But we want to create on every client just a shortcut from the app that is on the server. If we change something on the app, we will have to make nothing on every client..
    Try changing the working directory to the one where the app binary resides before running the application, so that the driver for sql database is in "$PWD/sqldrivers".

    BTW. You must have Qt libraries on every host anyway. Can't you place the sql driver on every host too along those libraries?

  15. #15
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: work general with plugins

    hi,
    yes i will install on every host the qsqlodbc.dll file and make a user variable, of course with installshield
    thx for all reply..
    Think DigitalGasoline

Similar Threads

  1. Qt Plugins Error
    By nathanpackard in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2007, 00:19
  2. Qt4 Plugins How-to
    By Chaid in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2006, 09:32

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.