Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on MacOS/iOS with Qt 6.5.1 #52

Open
alexandrkirilov opened this issue May 29, 2023 · 5 comments
Open

Can't compile on MacOS/iOS with Qt 6.5.1 #52

alexandrkirilov opened this issue May 29, 2023 · 5 comments

Comments

@alexandrkirilov
Copy link

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
@mxrcode
Copy link

mxrcode commented Jun 28, 2023

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

@realericzh
Copy link

Just follow this:

Q_DECLARE_OPAQUE_POINTER(sqlite3*)
Q_DECLARE_METATYPE(sqlite3*)

Q_DECLARE_OPAQUE_POINTER(sqlite3_stmt*)
Q_DECLARE_METATYPE(sqlite3_stmt*)

@alexandrkirilov
Copy link
Author

alexandrkirilov commented Nov 26, 2023

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
Copy link
Author

Screen Shot 2023-11-26 at 11 49 39

@realericzh
Copy link

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😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants