[Qgis-developer] Re: Fwd: [Qgis-user] QgsVectorLayer causes "Failed
to load" error
leonidas
leonidas_liakos at yahoo.gr
Thu Jul 7 01:55:12 EDT 2011
I'm trying to run the following example:
http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1
http://desktopgisbook.com/Creating_a_Standalone_GIS_Application_1
I set *qgis_prefix = "/usr/local"*
but the script gives me the same error ("Failed to load ") at layer =
QgsVectorLayer("mydata.shp", "mydata", "ogr")
My current sub-directories in /usr/local are:
.
|-bin
|-etc
|-games
|-include
|-lib
|---python2.7
|-----dist-packages
|-----site-packages
|---site_ruby
|-----1.8
|-------i686-linux
|-sbin
|-share
|---ca-certificates
|---fonts
|---man
|---ppd
|---sgml
|-----declaration
|-----dtd
|-----entities
|-----misc
|-----stylesheet
|---xml
|-----declaration
|-----entities
|-----misc
|-----schema
|-src
I also set qgis_prefix to */usr/share* and* /usr/lib* but it also failed.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fwd-Qgis-user-QgsVectorLayer-causes-Failed-to-load-error-tp6482726p6557120.html
Sent from the qgis-developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list