Results 1 to 11 of 11

Thread: win:cpy execs & dlls to clean machine - get "can't open application database" error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60
    Thanks
    4
    Thanked 6 Times in 4 Posts

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Quote Originally Posted by wysota View Post
    And all that was required was to place the qsqlite.dll into sqldrivers subdirectory of your application. What's clearly documented in the docs and throughout this site, by the way.
    I think the docs specified to put the .dll parallel to the .exe file - which did not work. Putting the 'sqldrivers' or any other plugins subdirectory parallel to the executable is not specified, as I read it, but I can read it again.

    If the site had a better search mechanism, I might be able to find things more easily. Searching for 'plugins location' gives me everything with 'plugins' and everything with 'location' in no particular order, which is not very helpful. I get better results with Google search.

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

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Quote Originally Posted by rickbsgu View Post
    I think the docs specified to put the .dll parallel to the .exe file
    No, they didn't.

    Putting the 'sqldrivers' or any other plugins subdirectory parallel to the executable is not specified, as I read it, but I can read it again.
    To quote the docs:
    Quote Originally Posted by Deploying Plugins docs
    For example if the application is in C:\Program Files\MyApp and has a style plugin, Qt will look in C:\Program Files\MyApp\styles.
    If the site had a better search mechanism, I might be able to find things more easily.
    Yes, blame us
    - Missing Images,
    - Qt docs have a nice search function,
    - there is nothing wrong in using Google, I spent literally hours to make it index Qt Centre properly so I strongly encourage anyone to make use of my effort,
    - we will gladly accept your help in improving the search engine.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60
    Thanks
    4
    Thanked 6 Times in 4 Posts

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Originally Posted by Deploying Plugins docs
    For example if the application is in C:\Program Files\MyApp and has a style plugin, Qt will look in C:\Program Files\MyApp\styles.
    So, what is styles? A directory or a plugin?

    "... would look for C:\Program Files\MyApp\styles\<plugin.dll>" might convey things a bit better, no?

    Kudos that you've spent hours and effort getting Google to index you well. The site search still sucks.


    I might be able to help. Does vBulletin have a better/newer search plugin available?
    How do I get access to the site?

    Cheers,
    rickb

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

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Quote Originally Posted by rickbsgu View Post
    So, what is styles? A directory or a plugin?
    Well...
    1) bearing the fact there is a directory called "styles" in your $QTDIR/plugins directory it's obviously a directory,
    2) bearing the fact it is said Qt will look in styles for the plugin it is obviously not a plugin and obviously something that is a container,
    3) it would be really silly if Qt would look for a plugin called 'style' in a file called 'styles'.

    "... would look for C:\Program Files\MyApp\styles\<plugin.dll>" might convey things a bit better, no?
    No, because then you'd say it would be looking for a file "<plugin.dll>". For me the docs are clear enough. It's enough to look into your Qt installation directory to see the pattern immediately.

    I might be able to help. Does vBulletin have a better/newer search plugin available?
    If it had, I would have already installed it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Quote Originally Posted by rickbsgu View Post
    So, what is styles? A directory or a plugin?
    Well...
    1) bearing the fact there is a directory called "styles" in your $QTDIR/plugins directory it's obviously a directory,
    2) bearing the fact it is said Qt will look in styles for the plugin it is obviously not a plugin and obviously something that is a container,
    3) it would be really silly if Qt would look for a plugin called 'style' in a file called 'styles'.

    "... would look for C:\Program Files\MyApp\styles\<plugin.dll>" might convey things a bit better, no?
    No, because then you'd say it would be looking for a file "<plugin.dll>". For me the docs are clear enough. It's enough to look into your Qt installation directory to see the pattern immediately.

    I might be able to help. Does vBulletin have a better/newer search plugin available?
    If it had, I would have already installed it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jan 2006
    Location
    Earth (Terra)
    Posts
    87
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Symbian S60
    Thanks
    4
    Thanked 6 Times in 4 Posts

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Well, we'll just have to disagree. I don't think the doc is written very clearly, at all.

    I guess that's a 'no' on offer of help.

    rickb

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

    Default Re: win:cpy execs & dlls to clean machine - get "can't open application database" err

    Quote Originally Posted by rickbsgu View Post
    I don't think the doc is written very clearly, at all.
    Why don't you improve it then? You can contribute to Qt (and its docs), you know...

    http://qt.gitorious.org/
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 9
    Last Post: 20th May 2010, 09:55
  2. Replies: 0
    Last Post: 4th November 2009, 10:21
  3. Replies: 3
    Last Post: 11th January 2009, 05:22
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

Tags for this Thread

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.