QtCipherSqlitePlugin icon indicating copy to clipboard operation
QtCipherSqlitePlugin copied to clipboard

Can't compile on MacOS/iOS with Qt 6.5.1

Open alexandrkirilov opened this issue 1 year ago • 5 comments

There issues when compiling it with 6.5.1

Screen Shot 2023-05-29 at 13 11 59 Screen Shot 2023-05-29 at 13 13 14

alexandrkirilov avatar May 29 '23 10:05 alexandrkirilov

It also doesn't work for me on 6.5 (windows), I use 6.4.3 to compile.

mxrcode avatar Jun 28 '23 04:06 mxrcode

Just follow this:

Q_DECLARE_OPAQUE_POINTER(sqlite3*)
Q_DECLARE_METATYPE(sqlite3*)

Q_DECLARE_OPAQUE_POINTER(sqlite3_stmt*)
Q_DECLARE_METATYPE(sqlite3_stmt*)

realericzh avatar Nov 24 '23 03:11 realericzh

Why? It's already in code in sqlitecipher.cpp Q_DECLARE_METATYPE(sqlite3*) Q_DECLARE_METATYPE(sqlite3_stmt*) #if (QT_VERSION >= 0x050000) Q_DECLARE_OPAQUE_POINTER(sqlite3*) Q_DECLARE_OPAQUE_POINTER(sqlite3_stmt*) #endif

alexandrkirilov avatar Nov 26 '23 08:11 alexandrkirilov

Screen Shot 2023-11-26 at 11 49 39

alexandrkirilov avatar Nov 26 '23 08:11 alexandrkirilov

just because the source of this plugin was origin from qt4/qt5 qsqliteplugin,in qt6,it looks like you should declare opaque pointer before delcare metatype,that is the key point,sorry for my poor english😂

realericzh avatar Nov 26 '23 09:11 realericzh