QSQLITE driver not loaded - where to put qt database driver plugins

前端 未结 5 549
慢半拍i
慢半拍i 2020-12-09 04:22

I am using VS2008 & QT plugin to make my application. After making package when I am running the application I am getting error :

QSqlDatabase: QSQLITE d         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 05:15

    Linux platform: Build your Qt Source with the BR2_PACKAGE_QT5BASE_SQLITE_QT=y option enabled in .config file, and copy sqldrivers generated in output path lib/qt/plugins/sqldrivers/libqsqlite.so to /usr/lib/qt/plugins/sqldrivers/ on Target board and run your application.
    Also you can Check where and all your binary/application looks for libraries and plugins using "QApplication::libraryPaths()" API

提交回复
热议问题