[SOLVED] Creating and using Static Library with Qt iOS
I have a project which has two part 1. Widgets Library and 2. Run-time... In Windows and Linux i was using Widgets as a Library and loading Dynamically with the Run-time. Currently i am porting my app to iOS and i found that we can use only Statically linked libraries in iOS app. How can i make my Widgets library as statically linked with Run-time in iOS app.
since you link your code statically you can just skip the loading-part.
e.g. you can do this by surrounding your library loading code with "Qt's platform macros":https://qt-project.org/doc/qt-5.1/qtcore/qtglobal.html#Q_OS_IOS, or you define your own macros at compile time.
//loading of widget library
Thanks Raven for the Reply,
I found the solution i was using the default method for Creating Static Library "Click here":http://qt-project.org/wiki/How_to_create_a_library_with_Qt_and_use_it_in_an_application#fcaa56d9b97ba0f5703da2272539579e .
@TEMPLATE += lib
CONFIG += staticlib@
@INCLUDEPATH += ../src
LIBS += -L ../Runtime -lWidgets@
And it Works fine... :)