Skip to content

Commit d130b32

Browse files
committed
Export main() when building for android
1 parent c2c083a commit d130b32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
400400
}
401401
}
402402

403+
#if(ANDROID)
404+
// On Android, there there is a libqgis.so instead of a qgis executable.
405+
// The main method symbol of this library needs to be exported so it can be called by java
406+
APP_EXPORT
407+
#endif
403408
int main( int argc, char *argv[] )
404409
{
405410
#ifdef Q_OS_MACX

0 commit comments

Comments
 (0)