[Qgis-developer] Re: QGIS 1.7.0.1, eVis plugin using Sqlite / Spatialite and Mac OS X

Noli Sicad nsicad at gmail.com
Fri Oct 28 03:26:08 EDT 2011


Hi,

It seems that it needs - qsqlite.

#################################
...
}
  else if ( QSQLITE == databaseType( ) && !mDatabase.contains( "sqlite" ) )
  {
    mDatabase = QSqlDatabase::addDatabase( "QSQLITE", "sqlite" );
  }
  else if ( QSQLITE == databaseType( ) )
  {
    mDatabase = QSqlDatabase::database( "sqlite" );
  }
  else
  {
    setLastError( "No matching DATABASE_TYPE found" );
    return false;
  }

https://svn.osgeo.org/qgis/trunk/qgis/src/plugins/evis/databaseconnection/evisdatabaseconnection.cpp

########################

Now, how can we install qsqlite driver in Mac OS X?

Noli

On 10/28/11, Noli Sicad <nsicad at gmail.com> wrote:
> Hi,
>
> What needs to be installed to make eVis plugin works with spatialite
> db in Mac OS X?
>
> The author mentioned about Qt library.
>
> "... Qt's library so you don't have to have spatialite."
>
> http://osgeo-org.1803224.n2.nabble.com/Qgis-and-sqlite-td4521419.html
>
> eVis is now default plugin in QGIS 1.7.x and QGIS 1.8.0.
>
> I got this error using spatialite db.
>
> ##########
> New Database connection requested...
> Connection to
> [./Volumes/MAC_OS_1068/Work/work_d1/Work_11/SImon_GPS_Photos/GPS_Photo.db]
> failed: Driver not loaded Driver not loaded
>
> ##########
>
> Is eVis plugin sqlite/spatialite working in Linux?
>
> Any experience how to hack this to read my db?
>
> Thanks.
>
> Noli
>


More information about the Qgis-developer mailing list