Skip to content
Permalink
Browse files

Export main() when building for android

  • Loading branch information
m-kuhn committed Sep 1, 2016
1 parent 4150824 commit 5ae34ed0c8067579f6a69f0964c2383659126cdd
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/main.cpp
@@ -409,6 +409,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

0 comments on commit 5ae34ed

Please sign in to comment.
You can’t perform that action at this time.