[Qgis-developer] Problem compiling QGIS source

Radhesh Muralidhar radheshkamath at gmail.com
Sun Jun 4 13:45:59 EDT 2006


Hi

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

detail:

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; \
then mv -f ".deps/libqgis_la-qgisapp.Tpo" ".deps/libqgis_la-qgisapp.Plo";
else rm -f ".deps/libqgis_la-qgisapp.Tpo"; exit 1; fi
 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
In file included from qgisapp.cpp:92:
qgsmapserverexport.h:32: error: parse error before `{' token
qgsmapserverexport.h:33: error: virtual outside class declaration
qgsmapserverexport.h:33: error: non-member function `const char*
className()'
   cannot have `const' method qualifier
qgsmapserverexport.h:33: error: virtual outside class declaration
qgsmapserverexport.h:33: error: virtual outside class declaration
qgsmapserverexport.h:33: error: virtual outside class declaration
qgsmapserverexport.h:33: error: virtual outside class declaration
qgsmapserverexport.h: In function `QObject* qObject()':
qgsmapserverexport.h:33: error: invalid use of `this' in non-member function
qgsmapserverexport.h: At global scope:
qgsmapserverexport.h:33: error: parse error before `private'
qgsmapserverexport.h:37: error: destructors must be member functions
qgsmapserverexport.h:56: error: parse error before `public'
qgsmapserverexport.h:65: error: parse error before `}' token
qgisapp.cpp: In member function `virtual void QgisApp::exportMapServer()':
qgisapp.cpp:2823: error: `mse' undeclared (first use this function)
qgisapp.cpp:2823: error: (Each undeclared identifier is reported only once
for
   each function it appears in.)
qgisapp.cpp:2823: error: parse error before `(' token
make[4]: *** [libqgis_la-qgisapp.lo] Error 1
make[4]: Leaving directory `/root/QGIS/qgis-0.7.4/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/QGIS/qgis-0.7.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/QGIS/qgis-0.7.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/QGIS/qgis-0.7.4'
make: *** [all] Error 2



Urgent help needed!


Thanks,

Radhesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20060604/44847bf7/attachment.html


More information about the Qgis-developer mailing list