[Interest] How add libsqlite3.dylib to iOS qmake?

Edward Sutton edward.sutton at subsite.com
Wed Apr 27 19:07:37 CEST 2016


Thanks Jason.

-Ed

On Apr 26, 2016, at 9:25 AM, Jason H <jhihn at gmx.com<mailto:jhihn at gmx.com>> wrote:

FWIW, Just use Qt to do the SQLite stuff, and provide the functionaltiy in a ObjectiveC .mm file. Example:

// ObjectiveC
- (BOOL)sendBackgroundChunk

{

        qDebug() << Q_FUNC_INFO;

        QVariantMap map = BackgroundChunk::extractNextChunk();

        if (!map.isEmpty())

        {

                NSString *nsFilename  = map["extractLocation"].toString().toNSString();

                NSString *org  = map["org"].toString().toNSString();

                uint64_t size  = map["extractSize"].toInt();

// BackgroundChunk.cpp

QVariantMap BackgroundChunk::extractNextChunk()

{

        QVariantMap map;

        QSqlDatabase db;
QSqlQuery q;


// etc ...
      return map;
}


Sent: Tuesday, April 26, 2016 at 10:17 AM
From: "Jason H" <jhihn at gmx.com<mailto:jhihn at gmx.com>>
To: "Edward Sutton" <edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>>
Cc: "Qt Interest" <interest at qt-project.org<mailto:interest at qt-project.org>>
Subject: Re: [Interest] How add libsqlite3.dylib to iOS qmake?
I don't think you (iOS/Qt) can. I think iOS has always been static, until recently, but the Qt build process improvements to allow dynlib hasn't been released yet. I think it's coming in 5.7.

I think it should work as a .a

Sent: Tuesday, April 26, 2016 at 10:11 AM
From: "Edward Sutton" <edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>>
To: "Qt Interest" <interest at qt-project.org<mailto:interest at qt-project.org>>
Subject: [Interest] How add libsqlite3.dylib to iOS qmake?
How do you add a dylib to an iOS qmake file?


I am trying to add Google Analytics support to my Qt iOS app.  I need to add the following dependencies to qmake:

  *   ligGoogleAnalyticsServices.a
  *   CoreData.framework
  *   SystemConfiguration.framework
  *   libz.dylib
  *   libsqlite3.dylib


So far my qmake looks like this:


iOS {



    INCLUDEPATH += $${PWD}/platform/ios/xcode/deps/GoogleAnalyticsServicesiOS_3.15/GoogleAnalytics/Library



    LIBS += -framework CoreData

    LIBS += -framework SystemConfiguration



    LIBS += -lGoogleAnalyticsServices

    LIBS += -L$${PWD}/platform/ios/xcode/deps/GoogleAnalyticsServicesiOS_3.15/



    # How do you add a dylib?


_______________________________________________ Interest mailing list Interest at qt-project.org<mailto:Interest at qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest&d=CwMBaQ&c=G4BpsyPyB19LB50bn2swXw&r=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc&m=c-F1yDNDgG49WSkC-BTSmzuvFm7ZJCUtcEWFg8Li9Ow&s=tyLKU3RfNp5qlgFKxom0njBokVEjxnh_L9JX-LBu9gs&e=>

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160427/5be0cf70/attachment.html>


More information about the Interest mailing list