Error Reading Collection File Cannot Load Sqlite Database Driver
deployment of my application. I've deployed the application in another system and exported the library path as LD_LIBRARY_PATH as given in deployment document. When i run assistant , it is giving error "cannot load sqlite database driver!". Please give solution to this problem. mcosta8th July 2011, 14:41you need to copy the sqldrivers directory mukunda8th July 2011, 14:43I've copied the files in the directory in the application folder, even then the same error is occuring mcosta8th July 2011, 15:21You must create a "sqldrivers" directory and copy qsqlite4 plugin in it. Read here mukunda8th July 2011, 16:29how do i get qsqlite4 plugin? mcosta8th July 2011, 16:56If QTDIR is the path where have installed Qt, you find in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to deliver sqlite driver to the end user? up vote 7 down vote favorite 1 http://www.qtcentre.org/archive/index.php/t-43000.html My program written in Qt C++ calls the sqlite database. On my own computer it works good, but on the end user's computer it says "Driver not loaded". True, I don't know which files/dlls should be copied/installed, can you please help me? Update: I found I need to copy sqlite3.dll, sqlite3.def and sqlite3.exe into windows/system32 folder OR the folder of my program but it still cannot load database. OS is Windows xP. http://stackoverflow.com/questions/6326274/how-to-deliver-sqlite-driver-to-the-end-user Thanks qt sqlite driver share|improve this question edited Jun 13 '11 at 4:00 asked Jun 13 '11 at 3:01 mimic 90211942 add a comment| 2 Answers 2 active oldest votes up vote 12 down vote accepted Try to copy qsqlite4.dll (or qsqlite4d.dll, if you are distributing a debug build) from your $QTDIR\plugins\sqldrivers folder to a sqldrivers subfolder in your program folder. Qt should then be able to pick it up from there, if you don't use anything special... share|improve this answer answered Jun 13 '11 at 6:45 Manjabes 1,02211029 Thanks, it helped. –mimic Jun 13 '11 at 7:02 This didn't work for me. I copied the file into the same directory as the executable and then it worked. –Bruno Aug 7 '15 at 16:53 add a comment| up vote 5 down vote Please read the Windows deployment guide, plugins section. You are not supposed to drop things in windows\system32, there's a specific directory structure to follow. The exact paths depend on your Qt installation and your application path. share|improve this answer edited Jul 19 '14 at 10:26 answered Jun 13 '11 at 6:21 Mat 135k21234273 Yes, the problem was exactly with plugins. Thanks –mimic Jun 13 '11 at 7:03 The new link is: qt-project.org/doc/qt-4.8/dep
download a browser that https://forum.qt.io/topic/51686/solved-debian7-assistant-missing-sql-driver supports JavaScript, or enable it if it's disabled (i.e. http://askubuntu.com/questions/671759/cannot-remove-qtspim-from-ubuntu-14-04-lts NoScript). Home Qt Development General and Desktop [SOLVED] Debian7, assistant missing sql driver [SOLVED] Debian7, assistant missing sql driver This topic has been deleted. Only users with topic management privileges can see it. error reading _rth_ last edited by Hi. I am deplyoing my application to Debian 7.8 (64bit), but assistant refuses to launch: @QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: Error reading collection file '/opt/myapp/myapp.qhc': Cannot load sqlite database driver!.@ Here is folder structure: error reading collection @/opt/myapp/plugins/sqldrivers/libqsqlite.so /opt/myapp/myapp /opt/myapp/assistant /opt/myapp/myapp.qhc /opt/myapp/myapp.qch /opt/myapp/qt.conf /opt/myapp/...@ and content of qt.conf: @[Paths] Plugins=./plugins/sqldrivers@ This is how I am launching assistant: @./assistant -collectionFile myapp.qhc@ I am using Qt 4.8.1 - built by myself. Driver file libqsqlite.so is taken from built Qt. Note: I am using this approach, when deploying myapp to CentOS (5) and it works there. Please help! Reply Quote 0 _rth_ last edited by I turned out that this approach is not needed at all, proper sql drivers can be easily installed via apt-get or it can be added to control file in deb package. @apt-get install libqt4-sql-sqlite@ Marking as solved. Reply Quote 0 Loading More Posts 2 Posts 237 Views Reply Reply as topic Log in to reply 1 / 1
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cannot remove qtspim from Ubuntu 14.04 LTS up vote 5 down vote favorite I recently tried to install spim(mips compiler) on my machine and it didn't work. Now I'm trying to remove the whole thing but I simply cannot do it and the worse part is that every time I try to install a new, completely different package, I get the same error. I am really freaking out about having broken my machine(although it still works). Here's what I initially did: sudo apt-get install spim sudo apt-get install qt-sdk Then I downloaded the.deb file from the following link and copied the folders in my usr folder. I also ran the debian file from terminal using the dpkg command. http://sourceforge.net/projects/spimsimulator/files/ I tried to remove the qt-sdk using the following: sudo apt-get remove qt-sdk The error below was given when I tried to remove qt-sdk but it sitll shows up every time I try to install any other package or remove the spim itself: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: account-plugin-twitter account-plugin-windows-live appmenu-qt appmenu-qt5 apturl-common ax25-node bamfdaemon cmake cmake-data consolekit dbconfig-common default-jdk docbook-xml docbook-xsl evolution-common friends friends-dispatcher friends-facebook friends-twitter gir1.2-accounts-1.0 gir1.2-ebook-1.2 gir1.2-ebookcontacts-1.2 gir1.2-edataserver-1.2 gir1.2-messagingmenu-1.0 gir1.2-signon-1.0 gnome-calculator gnome-system-monitor guile-2.0-libs gyp icoutils indicator-appmenu kate-data katepart kde-l10n-engb kde-runtime kde-runtime-data kdelibs-bin kdelibs5-data kdelibs5-plugins kdoctools kubuntu-debug-installer kwalletmanager laptop-detect libaio1 libatk-bridge2.0-0:i386 libatspi2.0-0:i386 libattica0.4 libax25 libbaloocore4 libbaloofiles4 libbalooxapian4 libbamf3-2 libbonobo2-0 libbonobo2-common libbotan-1.10-0 libc-ares-dev libc-ares2 libck-connect