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" <[email protected]>
To: "Edward Sutton" <[email protected]>
Cc: "Qt Interest" <[email protected]>
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" <[email protected]>
To: "Qt Interest" <[email protected]>
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 [email protected] http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to