Results 1 to 5 of 5

Thread: Built EXE

  1. #1

    Default Built EXE

    Hello everyone. I wonder how is the hierarchy of directories with the 'dll' in time to distribute the software. I compiled and formed the executable.
    So, Dll which I put in the directory of the executable?

    Ah, I use the sqlite database. I am asking that question because I put the dll conventional but the database is not open to it! IsValid () and! Open () (Not valid and can not open). The database only works with QT installed.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Built EXE

    Place the dlls next to your application (common on windows) or in the system search path (common on linux).

    Plug-ins should be in Qt's search path. The default is hardcoded into Qt. You can change that path using

    void QCoreApplication::addLibraryPath ( const QString & path )
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Built EXE

    Quote Originally Posted by vinny gracindo View Post
    Ah, I use the sqlite database. I am asking that question because I put the dll conventional but the database is not open to it! IsValid () and! Open () (Not valid and can not open).
    I guess you mean qsqlite4.dll? For plugins, just create a directory with the same name as the one from Qt's plugin directory in your executable's directory and place the plugin DLL in it. For SQLite this would be sqldrivers/qsqlite4.dll. The other, non-plugin Qt DLLs can simply be placed in the same directory as your executable.

  4. #4

    Default Re: Built EXE

    I put all the dlls and conventional sqlite4.dll SQLDrivers folder (created by me) and still did not work.

    The hierarchy is as follows:

    ->. Exe
    -> All Dll
    -> Folder SQLDrivers
    |---> Sqlite4.dll (nicked from the C: \ Qt \ 2009.04 \ qt \ plugins \ SQLDrivers).

    Still did not work. Dar both mistake! IsValid () when no! IsOpen () (Not valid and can not open).

  5. #5
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Built EXE

    I am not sure if this is the problem, but try naming the directory sqldrivers (all lower case).

    If it still does not work, what exactly is the error message return by lastError()?

Similar Threads

  1. Using libs built in VS2008?
    By laserbeak43 in forum Qt Programming
    Replies: 7
    Last Post: 16th November 2009, 01:17
  2. Reimplement built-in functions in QT
    By metdos in forum Newbie
    Replies: 1
    Last Post: 30th July 2009, 21:19
  3. Applications built for different QT versions
    By Asperamanca in forum Installation and Deployment
    Replies: 10
    Last Post: 10th July 2009, 15:36
  4. Replies: 7
    Last Post: 5th May 2009, 16:32
  5. Qt will not be built with XShape support.
    By manfredfr in forum Installation and Deployment
    Replies: 4
    Last Post: 14th March 2006, 08:26

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.