[QGIS-Developer] Error compiling qgsapplication.h
Magdaleen Ballot
magdaleen.ballot at up.ac.za
Tue Apr 10 03:19:50 PDT 2018
Hi,
I am maintaining a c++ Radio Planning Plugin for QGis, QRap (www.QRap.org.za
).
I am trying to compile in Ubuntu 18.04, using QGis 2.18 (the libqgis-dev
version is 1:2.18.18+28bionic. The compiler I am using is GNU 7.3. The
error messages are below.
I had the same problem under Ubuntu 16.04 using Qgis 2.14 and c++ 5.
The last version I could complie successfully was QGIS 2.8.
Can somebody please help.
Kind Regards
Magdaleen Ballot
In file included from /usr/include/qgis/qgswkbptr.h:19:0,
from /usr/include/qgis/qgsabstractgeometryv2.h:22,
from /usr/include/qgis/qgsrendercontext.h:23,
from /usr/include/qgis/qgsmaprenderer.h:27,
from /usr/include/qgis/qgstolerance.h:19,
from /usr/include/qgis/qgssnapper.h:22,
from /usr/include/qgis/qgsproject.h:33,
from /home/magdaleen/qrap/qrap.h:64,
from /home/magdaleen/qrap/qrap.cpp:27:
/usr/include/qgis/qgsapplication.h:389:21: error: expected ‘;’ at end of
member declaration
static QObject* ABISYM( mFileOpenEventReceiver );
^~~~~~
/usr/include/qgis/qgsapplication.h:389:52: error: ISO C++ forbids
declaration of ‘mFileOpenEventReceiver’ with no type [-fpermissive]
static QObject* ABISYM( mFileOpenEventReceiver );
^
/usr/include/qgis/qgsapplication.h:390:32: error: ‘mFileOpenEventList’ has
not been declared
static QStringList ABISYM( mFileOpenEventList );
^~~~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:390:51: error: ‘static QStringList
QgsApplication::ABISYM(int)’ conflicts with a previous declaration
static QStringList ABISYM( mFileOpenEventList );
^
/usr/include/qgis/qgsapplication.h:389:21: note: previous declaration
‘QObject* QgsApplication::ABISYM’
static QObject* ABISYM( mFileOpenEventReceiver );
^~~~~~
/usr/include/qgis/qgsapplication.h:392:28: error: ‘mUIThemeName’ has not
been declared
static QString ABISYM( mUIThemeName );
^~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:392:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mUIThemeName );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:393:28: error: ‘mPrefixPath’ has not
been declared
static QString ABISYM( mPrefixPath );
^~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:393:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mPrefixPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:394:28: error: ‘mPluginPath’ has not
been declared
static QString ABISYM( mPluginPath );
^~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:394:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mPluginPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:395:28: error: ‘mPkgDataPath’ has not
been declared
static QString ABISYM( mPkgDataPath );
^~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:395:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mPkgDataPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:396:28: error: ‘mLibraryPath’ has not
been declared
static QString ABISYM( mLibraryPath );
^~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:396:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mLibraryPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:397:28: error: ‘mLibexecPath’ has not
been declared
static QString ABISYM( mLibexecPath );
^~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:397:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mLibexecPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:398:28: error: ‘mThemeName’ has not been
declared
static QString ABISYM( mThemeName );
^~~~~~~~~~
/usr/include/qgis/qgsapplication.h:398:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mThemeName );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:399:32: error: ‘mDefaultSvgPaths’ has
not been declared
static QStringList ABISYM( mDefaultSvgPaths );
^~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:399:24: error: ‘static QStringList
QgsApplication::ABISYM(int)’ cannot be overloaded
static QStringList ABISYM( mDefaultSvgPaths );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:400:43: error: ‘mSystemEnvVars’ has not
been declared
static QMap<QString, QString> ABISYM( mSystemEnvVars );
^~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:400:35: error: ‘static QMap<QString,
QString> QgsApplication::ABISYM(int)’ cannot be overloaded
static QMap<QString, QString> ABISYM( mSystemEnvVars );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:402:28: error: ‘mConfigPath’ has not
been declared
static QString ABISYM( mConfigPath );
^~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:402:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mConfigPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:405:25: error: ‘mRunningFromBuildDir’
has not been declared
static bool ABISYM( mRunningFromBuildDir );
^~~~~~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:405:17: error: ‘static bool
QgsApplication::ABISYM(int)’ cannot be overloaded
static bool ABISYM( mRunningFromBuildDir );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:407:28: error: ‘mBuildSourcePath’ has
not been declared
static QString ABISYM( mBuildSourcePath );
^~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:407:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mBuildSourcePath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:413:28: error: ‘mBuildOutputPath’ has
not been declared
static QString ABISYM( mBuildOutputPath );
^~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:413:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mBuildOutputPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:416:32: error: ‘mGdalSkipList’ has not
been declared
static QStringList ABISYM( mGdalSkipList );
^~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:416:24: error: ‘static QStringList
QgsApplication::ABISYM(int)’ cannot be overloaded
static QStringList ABISYM( mGdalSkipList );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:419:24: error: ‘mMaxThreads’ has not
been declared
static int ABISYM( mMaxThreads );
^~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:419:16: error: ‘static int
QgsApplication::ABISYM(int)’ cannot be overloaded
static int ABISYM( mMaxThreads );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h:422:28: error: ‘mAuthDbDirPath’ has not
been declared
static QString ABISYM( mAuthDbDirPath );
^~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:422:20: error: ‘static QString
QgsApplication::ABISYM(int)’ cannot be overloaded
static QString ABISYM( mAuthDbDirPath );
^~~~~~
/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList
QgsApplication::ABISYM(int)’
static QStringList ABISYM( mFileOpenEventList );
^~~~~~
/usr/include/qgis/qgsapplication.h: In static member function ‘static
QMap<QString, QString> QgsApplication::systemEnvVars()’:
/usr/include/qgis/qgsapplication.h:161:68: error: ‘mSystemEnvVars’ was not
declared in this scope
static QMap<QString, QString> systemEnvVars() { return ABISYM(
mSystemEnvVars ); }
^~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:161:68: note: suggested alternative:
‘systemEnvVars’
static QMap<QString, QString> systemEnvVars() { return ABISYM(
mSystemEnvVars ); }
^~~~~~~~~~~~~~
systemEnvVars
/usr/include/qgis/qgsapplication.h: In static member function ‘static bool
QgsApplication::isRunningFromBuildDir()’:
/usr/include/qgis/qgsapplication.h:317:58: error: ‘mRunningFromBuildDir’
was not declared in this scope
static bool isRunningFromBuildDir() { return ABISYM(
mRunningFromBuildDir ); }
^~~~~~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:317:58: note: suggested alternative:
‘isRunningFromBuildDir’
static bool isRunningFromBuildDir() { return ABISYM(
mRunningFromBuildDir ); }
^~~~~~~~~~~~~~~~~~~~
isRunningFromBuildDir
/usr/include/qgis/qgsapplication.h: In static member function ‘static
QString QgsApplication::buildSourcePath()’:
/usr/include/qgis/qgsapplication.h:322:55: error: ‘mBuildSourcePath’ was
not declared in this scope
static QString buildSourcePath() { return ABISYM( mBuildSourcePath ); }
^~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:322:55: note: suggested alternative:
‘buildSourcePath’
static QString buildSourcePath() { return ABISYM( mBuildSourcePath ); }
^~~~~~~~~~~~~~~~
buildSourcePath
/usr/include/qgis/qgsapplication.h: In static member function ‘static
QString QgsApplication::buildOutputPath()’:
/usr/include/qgis/qgsapplication.h:324:55: error: ‘mBuildOutputPath’ was
not declared in this scope
static QString buildOutputPath() { return ABISYM( mBuildOutputPath ); }
^~~~~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:324:55: note: suggested alternative:
‘buildOutputPath’
static QString buildOutputPath() { return ABISYM( mBuildOutputPath ); }
^~~~~~~~~~~~~~~~
buildOutputPath
/usr/include/qgis/qgsapplication.h: In static member function ‘static
QStringList QgsApplication::skippedGdalDrivers()’:
/usr/include/qgis/qgsapplication.h:341:62: error: ‘mGdalSkipList’ was not
declared in this scope
static QStringList skippedGdalDrivers() { return ABISYM( mGdalSkipList
); }
^~~~~~~~~~~~~
/usr/include/qgis/qgsapplication.h: In static member function ‘static int
QgsApplication::maxThreads()’:
/usr/include/qgis/qgsapplication.h:351:46: error: ‘mMaxThreads’ was not
declared in this scope
static int maxThreads() { return ABISYM( mMaxThreads ); }
^~~~~~~~~~~
/usr/include/qgis/qgsapplication.h:351:46: note: suggested alternative:
‘maxThreads’
static int maxThreads() { return ABISYM( mMaxThreads ); }
^~~~~~~~~~~
maxThreads
CMakeFiles/qrapplugin.dir/build.make:623: recipe for target
'CMakeFiles/qrapplugin.dir/qrap.o' failed
make[2]: *** [CMakeFiles/qrapplugin.dir/qrap.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/qrapplugin.dir/all'
failed
make[1]: *** [CMakeFiles/qrapplugin.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
--
This message and attachments are subject to a disclaimer.
Please refer to
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf
<http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf> for
full
details.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180410/b33511a4/attachment-0001.html>
More information about the QGIS-Developer
mailing list