Hi,<br><br>i had compiled qgis for my LInux PC and its working fine.now i need to develop a standalone qgis application. i followed teh steps in the website:<br><br><a href="http://blog.qgis.org/?q=node/10">http://blog.qgis.org/?q=node/10</a>.<br>
<br><br>but i could not compile it successfully. the following are the errore:<br>saravanan@spa:~/workspace/QGIS_programming/mapDisplay&gt; make<br>g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../userQtopia/install_path/mkspecs/default -I. -I../../../userQtopia/install_path/include/QtCore -I../../../userQtopia/install_path/include/QtCore -I../../../userQtopia/install_path/include/QtGui -I../../../userQtopia/install_path/include/QtGui -I../../../userQtopia/install_path/include -I/home/saravanan/QGIS/qgis_0.9.1/src/app -I/home/saravanan/QGIS/qgis_0.9.1/src/core -I/home/saravanan/QGIS/qgis_0.9.1/src/gui -I. -I. -o main.o main.cpp<br>
main.cpp:6:37: error: qgssinglesymbolrenderer.h: No such file or directory<br>In file included from main.cpp:9:<br>/home/saravanan/QGIS/qgis_0.9.1/src/gui/qgsmapcanvas.h:30:24: error: QDomDocument: No such file or directory<br>
In file included from /usr/include/c++/4.1.0/backward/deque.h:59,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from main.cpp:19:<br>/usr/include/c++/4.1.0/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 <a href="http://17.4.1.2">17.4.1.2</a> of the C++ standard. Examples include substituting the &lt;X&gt; header for the &lt;X.h&gt; header for C++ includes, or &lt;iostream&gt; instead of the deprecated header &lt;iostream.h&gt;. To disable this warning use -Wno-deprecated.<br>
main.cpp:65:2: warning: no newline at end of file<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsapplication.h:21: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsproviderregistry.h:38: error: invalid function declaration<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsmaplayerregistry.h:36: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgis.h:34: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:26: error: invalid function declaration<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:127: error: expected ',' or '...' before '&amp;' token<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:127: error: ISO C++ forbids declaration of 'QgsPoint' with no type<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:127: error: 'bool operator==(int)' must have an argument of class or enumerated type<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:127: error: 'bool operator==(int)' must take exactly two arguments<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h: In function 'bool operator==(int)':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:129: error: 'p1' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:129: error: 'p2' was not declared in this scope<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:127: warning: unused parameter 'QgsPoint'<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:135: error: expected ',' or '...' before '&amp;' token<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:135: error: ISO C++ forbids declaration of 'QgsPoint' with no type<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h: In function 'std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, int)':<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:138: error: 'p' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:135: warning: unused parameter 'QgsPoint'<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:35: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:132: error: expected initializer before '::' token<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:136: error: 'QgsRect' has not been declared<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'void setXmin(double)':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:138: error: 'xmin' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:141: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'void setXmax(double)':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:143: error: 'xmax' was not declared in this scope<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:146: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'void setYmin(double)':<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:148: error: 'ymin' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:151: error: 'QgsRect' has not been declared<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'void setYmax(double)':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:153: error: 'ymax' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:156: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:156: error: non-member function 'double xMax()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double xMax()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:158: error: 'xmax' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:161: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:161: error: non-member function 'double xMin()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double xMin()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:163: error: 'xmin' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:166: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:166: error: non-member function 'double yMax()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double yMax()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:168: error: 'ymax' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:171: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:171: error: non-member function 'double yMin()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double yMin()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:173: error: 'ymin' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:176: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:176: error: non-member function 'double width()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double width()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:178: error: 'xmax' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:178: error: 'xmin' was not declared in this scope<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:181: error: 'QgsRect' has not been declared<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:181: error: non-member function 'double height()' cannot have cv-qualifier<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'double height()':<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:183: error: 'ymax' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:183: error: 'ymin' was not declared in this scope<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:186: error: 'QgsPoint' does not name a type<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:190: error: expected ',' or '...' before '&amp;' token<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:190: error: ISO C++ forbids declaration of 'QgsRect' with no type<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: In function 'std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, int)':<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:190: error: redefinition of 'std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, int)'<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgspoint.h:135: error: 'std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, int)' previously defined here<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:192: error: 'r' was not declared in this scope<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h: At global scope:<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsrect.h:190: warning: unused parameter 'QgsRect'<br>
/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsmaplayer.h:42: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsfeature.h:47: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/core/qgsvectorlayer.h:67: error: invalid function declaration<br>
/home/saravanan/QGIS/qgis_0.9.1/src/gui/qgsmapcanvas.h:61: error: invalid function declaration<br>/home/saravanan/QGIS/qgis_0.9.1/src/gui/qgsmapcanvas.h:92: error: invalid function declaration<br>main.cpp: In function 'int main(int, char**)':<br>
main.cpp:25: error: 'QgsApplication' was not declared in this scope<br>main.cpp:25: error: expected `;&#39; before 'app'<br>main.cpp:32: error: 'QgsProviderRegistry' has not been declared<br>main.cpp:32: error: invalid type in declaration before '(' token<br>
main.cpp:32: error: cannot convert 'QString' to 'int' in initialization<br>main.cpp:33: error: 'QgsVectorLayer' was not declared in this scope<br>main.cpp:33: error: 'mypLayer' was not declared in this scope<br>main.cpp:34: error: expected type-specifier before 'QgsVectorLayer'<br>
main.cpp:34: error: expected `;&#39; before 'QgsVectorLayer'<br>main.cpp:35: error: 'QgsSingleSymbolRenderer' was not declared in this scope<br>main.cpp:35: error: 'mypRenderer' was not declared in this scope<br>main.cpp:35: error: expected type-specifier before 'QgsSingleSymbolRenderer'<br>
main.cpp:35: error: expected `;&#39; before 'QgsSingleSymbolRenderer'<br>main.cpp:48: error: 'QgsMapLayerRegistry' has not been declared<br>main.cpp:48: error: expected initializer before '-&gt;' token<br>main.cpp:53: error: 'QgsMapCanvas' was not declared in this scope<br>
main.cpp:53: error: 'mypMapCanvas' was not declared in this scope<br>main.cpp:53: error: expected type-specifier before 'QgsMapCanvas'<br>main.cpp:53: error: expected `;&#39; before 'QgsMapCanvas'<br>main.cpp:64: error: 'app' was not declared in this scope<br>
main.cpp:32: warning: unused variable 'instance'<br>main.cpp: At global scope:<br>main.cpp:22: warning: unused parameter 'argc'<br>main.cpp:22: warning: unused parameter 'argv'<br>make: *** [main.o] Error 1<br>saravanan@spa:~/workspace/QGIS_programming/mapDisplay&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br><br>can anyone provide me any suggestions or solutions for this ?<br><br><br>thanks in advance,<br><br>saravanan<br>