Export main() when building for android

This commit is contained in:
Matthias Kuhn 2016-09-01 12:29:44 +02:00
parent 88047cc984
commit ffe358179e

View File

@ -417,6 +417,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
}
}
#if(ANDROID)
// On Android, there there is a libqgis.so instead of a qgis executable.
// The main method symbol of this library needs to be exported so it can be called by java
APP_EXPORT
#endif
int main( int argc, char *argv[] )
{
#ifdef Q_OS_MACX