- Release plans recap for the road to QGIS 1.0
- New version of eVis
- Contour Lines in Qgis
- QGIS and Google Summer of Code
- Quantum GIS Graduates OSGeo Incubation
- Paolo Cavallini Named to QGIS Project Steering Committee
- Nominations for QGIS PSC Open
- Capturing map coordinates in a stand alone app...
- Tutorial 7 - Creating spatial datasets with the QGIS API
- Html Image Plugin 0.2
How to Compile this application on Linux
hi Tim
I am new to GIS world, I want to know how to compile this application on Linux.
In my system QT-4.2.3 and QGIS 0.8 is installed.
While compiling it like we compile qt application it was showing all our QGIS header file as no such file or directory due to which all functions related to QGIS was showing error.............
This is the error i am getting.........
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.2.3/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.2.3/include/QtCore -I/usr/local/Trolltech/Qt-4.2.3/include/QtCore -I/usr/local/Trolltech/Qt-4.2.3/include/QtGui -I/usr/local/Trolltech/Qt-4.2.3/include/QtGui -I/usr/local/Trolltech/Qt-4.2.3/include -I. -I. -I. -o main.o main.cpp
main.cpp:4:28: error: qgsapplication.h: No such file or directory
main.cpp:5:33: error: qgsproviderregistry.h: No such file or directory
main.cpp:6:37: error: qgssinglesymbolrenderer.h: No such file or directory
main.cpp:7:33: error: qgsmaplayerregistry.h: No such file or directory
main.cpp:8:28: error: qgsvectorlayer.h: No such file or directory
main.cpp:9:26: error: qgsmapcanvas.h: No such file or directory
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/deque.h:59,
from main.cpp:19:
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
main.cpp: In function ‘int main(int, char**)’:
main.cpp:25: error: ‘QgsApplication’ was not declared in this scope
main.cpp:25: error: expected `;' before ‘app’
main.cpp:33: error: ‘QgsProviderRegistry’ has not been declared
main.cpp:35: error: ‘QgsVectorLayer’ was not declared in this scope
main.cpp:35: error: ‘mypLayer’ was not declared in this scope
main.cpp:36: error: expected type-specifier before ‘QgsVectorLayer’
main.cpp:36: error: expected `;' before ‘QgsVectorLayer’
main.cpp:37: error: ‘QgsSingleSymbolRenderer’ was not declared in this scope
main.cpp:37: error: ‘mypRenderer’ was not declared in this scope
main.cpp:37: error: expected type-specifier before ‘QgsSingleSymbolRenderer’
main.cpp:37: error: expected `;' before ‘QgsSingleSymbolRenderer’
main.cpp:50: error: ‘QgsMapLayerRegistry’ has not been declared
main.cpp:56: error: ‘QgsMapCanvas’ was not declared in this scope
main.cpp:56: error: ‘mypMapCanvas’ was not declared in this scope
main.cpp:56: error: expected type-specifier before ‘QgsMapCanvas’
main.cpp:56: error: expected `;' before ‘QgsMapCanvas’
main.cpp:68: error: ‘app’ was not declared in this scope
main.cpp: At global scope:
main.cpp:22: warning: unused parameter ‘argc’
main.cpp:22: warning: unused parameter ‘argv’
make: *** [main.o] Error 1

Recent comments
8 hours 57 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 18 hours ago
1 day 20 hours ago
1 day 20 hours ago