Skip to content

Commit e95ddd9

Browse files
committed
Export main() when building for android
1 parent dd393fe commit e95ddd9

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
@@ -409,6 +409,11 @@ void myMessageOutput( QtMsgType type, const char *msg )
409409
}
410410
}
411411

412+
#if(ANDROID)
413+
// On Android, there there is a libqgis.so instead of a qgis executable.
414+
// The main method symbol of this library needs to be exported so it can be called by java
415+
APP_EXPORT
416+
#endif
412417
int main( int argc, char *argv[] )
413418
{
414419
#ifdef Q_OS_MACX

0 commit comments

Comments
 (0)