Hi <br>
<br>
I am trying to compile the Qgis source - 0.7.4. I configure without
Postgresql support and then do make. But is get a PARSE ERROR in
qgisapp.cpp<br>
<br>
detail:<br>
<br>
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I.. -DPREFIX=\"/usr\" -DPLUGINPATH=\"/usr/lib/qgis\"
-DPKGDATAPATH=\"/usr/share/qgis\" -I/usr/include -g -O2
-I/usr/local/qt/include -D_REENTRANT -DQT_THREAD_SUPPORT
-DQGISDEBUG -g -O2 -I/usr/local/include
-I../widgets/projectionselector/ -g -O2 -MT libqgis_la-qgisapp.lo -MD
-MP -MF ".deps/libqgis_la-qgisapp.Tpo" -c -o libqgis_la-qgisapp.lo
`test -f 'qgisapp.cpp' || echo './'`qgisapp.cpp; \<br>
then mv -f ".deps/libqgis_la-qgisapp.Tpo" ".deps/libqgis_la-qgisapp.Plo"; else rm -f ".deps/libqgis_la-qgisapp.Tpo"; exit 1; fi<br>
g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPREFIX=\"/usr\"
-DPLUGINPATH=\"/usr/lib/qgis\" -DPKGDATAPATH=\"/usr/share/qgis\"
-I/usr/include -g -O2 -I/usr/local/qt/include -D_REENTRANT
-DQT_THREAD_SUPPORT -DQGISDEBUG -g -O2 -I/usr/local/include
-I../widgets/projectionselector/ -g -O2 -MT libqgis_la-qgisapp.lo -MD
-MP -MF .deps/libqgis_la-qgisapp.Tpo -c qgisapp.cpp -fPIC -DPIC
-o .libs/libqgis_la-qgisapp.o<br>
In file included from qgisapp.cpp:92:<br>
qgsmapserverexport.h:32: error: parse error before `{' token<br>
qgsmapserverexport.h:33: error: virtual outside class declaration<br>
qgsmapserverexport.h:33: error: non-member function `const char* className()'<br>
cannot have `const' method qualifier<br>
qgsmapserverexport.h:33: error: virtual outside class declaration<br>
qgsmapserverexport.h:33: error: virtual outside class declaration<br>
qgsmapserverexport.h:33: error: virtual outside class declaration<br>
qgsmapserverexport.h:33: error: virtual outside class declaration<br>
qgsmapserverexport.h: In function `QObject* qObject()':<br>
qgsmapserverexport.h:33: error: invalid use of `this' in non-member function<br>
qgsmapserverexport.h: At global scope:<br>
qgsmapserverexport.h:33: error: parse error before `private'<br>
qgsmapserverexport.h:37: error: destructors must be member functions<br>
qgsmapserverexport.h:56: error: parse error before `public'<br>
qgsmapserverexport.h:65: error: parse error before `}' token<br>
qgisapp.cpp: In member function `virtual void QgisApp::exportMapServer()':<br>
qgisapp.cpp:2823: error: `mse' undeclared (first use this function)<br>
qgisapp.cpp:2823: error: (Each undeclared identifier is reported only once for<br>
each function it appears in.)<br>
qgisapp.cpp:2823: error: parse error before `(' token<br>
make[4]: *** [libqgis_la-qgisapp.lo] Error 1<br>
make[4]: Leaving directory `/root/QGIS/qgis-0.7.4/src'<br>
make[3]: *** [all-recursive] Error 1<br>
make[3]: Leaving directory `/root/QGIS/qgis-0.7.4/src'<br>
make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/root/QGIS/qgis-0.7.4/src'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/root/QGIS/qgis-0.7.4'<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
Urgent help needed!<br>
<br>
<br>
Thanks,<br>
<br>
Radhesh<br>