<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am maintaining a c++ Radio Planning Plugin for QGis, QRap (<a href="http://www.QRap.org.za" target="_blank">www.QRap.org.za</a>).<br><br></div>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. <br><br></div>I had the same problem under Ubuntu 16.04 using Qgis 2.14 and c++ 5.<br><br></div><div>The last version I could complie successfully was QGIS 2.8.<br></div><div><br></div><div>Can somebody please help.</div><br></div>Kind Regards<br></div>Magdaleen Ballot<br><div><div><br>In file included from /usr/include/qgis/qgswkbptr.h:19:0,<br> from /usr/include/qgis/qgsabstractgeometryv2.h:22,<br> from /usr/include/qgis/qgsrendercontext.h:23,<br> from /usr/include/qgis/qgsmaprenderer.h:27,<br> from /usr/include/qgis/qgstolerance.h:19,<br> from /usr/include/qgis/qgssnapper.h:22,<br> from /usr/include/qgis/qgsproject.h:33,<br> from /home/magdaleen/qrap/qrap.h:64,<br> from /home/magdaleen/qrap/qrap.cpp:27:<br>/usr/include/qgis/qgsapplication.h:389:21: error: expected ‘;’ at end of member declaration<br> static QObject* ABISYM( mFileOpenEventReceiver );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:389:52: error: ISO C++ forbids declaration of ‘mFileOpenEventReceiver’ with no type [-fpermissive]<br> static QObject* ABISYM( mFileOpenEventReceiver );<br> ^<br>/usr/include/qgis/qgsapplication.h:390:32: error: ‘mFileOpenEventList’ has not been declared<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:390:51: error: ‘static QStringList QgsApplication::ABISYM(int)’ conflicts with a previous declaration<br> static QStringList ABISYM( mFileOpenEventList );<br> ^<br>/usr/include/qgis/qgsapplication.h:389:21: note: previous declaration ‘QObject* QgsApplication::ABISYM’<br> static QObject* ABISYM( mFileOpenEventReceiver );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:392:28: error: ‘mUIThemeName’ has not been declared<br> static QString ABISYM( mUIThemeName );<br> ^~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:392:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mUIThemeName );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:393:28: error: ‘mPrefixPath’ has not been declared<br> static QString ABISYM( mPrefixPath );<br> ^~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:393:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mPrefixPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:394:28: error: ‘mPluginPath’ has not been declared<br> static QString ABISYM( mPluginPath );<br> ^~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:394:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mPluginPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:395:28: error: ‘mPkgDataPath’ has not been declared<br> static QString ABISYM( mPkgDataPath );<br> ^~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:395:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mPkgDataPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:396:28: error: ‘mLibraryPath’ has not been declared<br> static QString ABISYM( mLibraryPath );<br> ^~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:396:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mLibraryPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:397:28: error: ‘mLibexecPath’ has not been declared<br> static QString ABISYM( mLibexecPath );<br> ^~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:397:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mLibexecPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:398:28: error: ‘mThemeName’ has not been declared<br> static QString ABISYM( mThemeName );<br> ^~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:398:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mThemeName );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:399:32: error: ‘mDefaultSvgPaths’ has not been declared<br> static QStringList ABISYM( mDefaultSvgPaths );<br> ^~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:399:24: error: ‘static QStringList QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QStringList ABISYM( mDefaultSvgPaths );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:400:43: error: ‘mSystemEnvVars’ has not been declared<br> static QMap<QString, QString> ABISYM( mSystemEnvVars );<br> ^~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:400:35: error: ‘static QMap<QString, QString> QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QMap<QString, QString> ABISYM( mSystemEnvVars );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:402:28: error: ‘mConfigPath’ has not been declared<br> static QString ABISYM( mConfigPath );<br> ^~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:402:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mConfigPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:405:25: error: ‘mRunningFromBuildDir’ has not been declared<br> static bool ABISYM( mRunningFromBuildDir );<br> ^~~~~~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:405:17: error: ‘static bool QgsApplication::ABISYM(int)’ cannot be overloaded<br> static bool ABISYM( mRunningFromBuildDir );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:407:28: error: ‘mBuildSourcePath’ has not been declared<br> static QString ABISYM( mBuildSourcePath );<br> ^~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:407:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mBuildSourcePath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:413:28: error: ‘mBuildOutputPath’ has not been declared<br> static QString ABISYM( mBuildOutputPath );<br> ^~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:413:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mBuildOutputPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:416:32: error: ‘mGdalSkipList’ has not been declared<br> static QStringList ABISYM( mGdalSkipList );<br> ^~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:416:24: error: ‘static QStringList QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QStringList ABISYM( mGdalSkipList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:419:24: error: ‘mMaxThreads’ has not been declared<br> static int ABISYM( mMaxThreads );<br> ^~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:419:16: error: ‘static int QgsApplication::ABISYM(int)’ cannot be overloaded<br> static int ABISYM( mMaxThreads );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:422:28: error: ‘mAuthDbDirPath’ has not been declared<br> static QString ABISYM( mAuthDbDirPath );<br> ^~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:422:20: error: ‘static QString QgsApplication::ABISYM(int)’ cannot be overloaded<br> static QString ABISYM( mAuthDbDirPath );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h:390:24: error: with ‘static QStringList QgsApplication::ABISYM(int)’<br> static QStringList ABISYM( mFileOpenEventList );<br> ^~~~~~<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static QMap<QString, QString> QgsApplication::systemEnvVars()’:<br>/usr/include/qgis/qgsapplication.h:161:68: error: ‘mSystemEnvVars’ was not declared in this scope<br> static QMap<QString, QString> systemEnvVars() { return ABISYM( mSystemEnvVars ); }<br> ^~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:161:68: note: suggested alternative: ‘systemEnvVars’<br> static QMap<QString, QString> systemEnvVars() { return ABISYM( mSystemEnvVars ); }<br> ^~~~~~~~~~~~~~<br> systemEnvVars<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static bool QgsApplication::isRunningFromBuildDir()’:<br>/usr/include/qgis/qgsapplication.h:317:58: error: ‘mRunningFromBuildDir’ was not declared in this scope<br> static bool isRunningFromBuildDir() { return ABISYM( mRunningFromBuildDir ); }<br> ^~~~~~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:317:58: note: suggested alternative: ‘isRunningFromBuildDir’<br> static bool isRunningFromBuildDir() { return ABISYM( mRunningFromBuildDir ); }<br> ^~~~~~~~~~~~~~~~~~~~<br> isRunningFromBuildDir<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static QString QgsApplication::buildSourcePath()’:<br>/usr/include/qgis/qgsapplication.h:322:55: error: ‘mBuildSourcePath’ was not declared in this scope<br> static QString buildSourcePath() { return ABISYM( mBuildSourcePath ); }<br> ^~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:322:55: note: suggested alternative: ‘buildSourcePath’<br> static QString buildSourcePath() { return ABISYM( mBuildSourcePath ); }<br> ^~~~~~~~~~~~~~~~<br> buildSourcePath<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static QString QgsApplication::buildOutputPath()’:<br>/usr/include/qgis/qgsapplication.h:324:55: error: ‘mBuildOutputPath’ was not declared in this scope<br> static QString buildOutputPath() { return ABISYM( mBuildOutputPath ); }<br> ^~~~~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:324:55: note: suggested alternative: ‘buildOutputPath’<br> static QString buildOutputPath() { return ABISYM( mBuildOutputPath ); }<br> ^~~~~~~~~~~~~~~~<br> buildOutputPath<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static QStringList QgsApplication::skippedGdalDrivers()’:<br>/usr/include/qgis/qgsapplication.h:341:62: error: ‘mGdalSkipList’ was not declared in this scope<br> static QStringList skippedGdalDrivers() { return ABISYM( mGdalSkipList ); }<br> ^~~~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h: In static member function ‘static int QgsApplication::maxThreads()’:<br>/usr/include/qgis/qgsapplication.h:351:46: error: ‘mMaxThreads’ was not declared in this scope<br> static int maxThreads() { return ABISYM( mMaxThreads ); }<br> ^~~~~~~~~~~<br>/usr/include/qgis/qgsapplication.h:351:46: note: suggested alternative: ‘maxThreads’<br> static int maxThreads() { return ABISYM( mMaxThreads ); }<br> ^~~~~~~~~~~<br> maxThreads<br>CMakeFiles/qrapplugin.dir/build.make:623: recipe for target 'CMakeFiles/qrapplugin.dir/qrap.o' failed<br>make[2]: *** [CMakeFiles/qrapplugin.dir/qrap.o] Error 1<br>CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/qrapplugin.dir/all' failed<br>make[1]: *** [CMakeFiles/qrapplugin.dir/all] Error 2<br>Makefile:129: recipe for target 'all' failed<br>make: *** [all] Error 2<br><br></div></div></div>
<br>
<div style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:10.0pt;line-height:105%;font-family:"Segoe UI",sans-serif">This message and attachments are subject to a disclaimer.<br>
Please refer to <a href="http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf" target="_blank">http://upnet.up.ac.za/<wbr>services/it/documentation/<wbr>docs/004167.pdf</a> </span><span style="font-size:10pt;line-height:105%;font-family:Tahoma,sans-serif">for
full details.</span></div>