[Qgis-developer] Not valid layer (raster)

Mohsen M.Hosseini mmb.prog at gmail.com
Wed Jan 23 09:02:02 PST 2013


Hi,
Im new in QGIS and i compiled a sample code and when i want to add a raster
layer i got an error (Not valid layer) ...
and i compiled the source of QGIS and it work correct ...
what's wrong ???

this is my .pro :

TEMPLATE = app
TARGET = qgis_example4
QT = qt3support sql network svg gui core xml

DEFINES += QGISPLUGINDIR=$${QGISPLUGINDIR}
LIBS = -lqgis_core -lqgis_gui -lproj


INCLUDEPATH += /usr/include/qgis /usr/include/gdal /usr/include/gls

DEFINES += CORE_EXPORT=""
DEFINES += GUI_EXPORT=""

CONFIG += qt gui exceptions stl warn_on debug thread

RESOURCES += resources.qrc

FORMS += mainwindowbase.ui

HEADERS = mainwindow.h

SOURCES = main.cpp \
          mainwindow.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130123/99ca5c59/attachment.html>


More information about the Qgis-developer mailing list