devbean / QtCipherSqlitePlugin

A Qt plugin for cipher SQLite.
http://qtciphersqliteplugin.galaxyworld.org
GNU Lesser General Public License v2.1
393 stars 159 forks source link

Qt 6.0 error: no member named 'midRef' in 'QString' #39

Open alexandrkirilov opened 3 years ago

alexandrkirilov commented 3 years ago

A lot of "error: no member named 'midRef' in 'QString'" when trying to build on Qt 6.0

Monsterovich commented 3 years ago

Yeah, this plugin requires an update to Qt 6.

devbean commented 3 years ago

Please checkout latest master branch to test if it is OK for Qt 6.0

Monsterovich commented 3 years ago

It doesn't build successfully.

compiling ../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c
compiling ../protox/deps/sqlitecipher/sqlcachedresult.cpp
compiling ../protox/deps/sqlitecipher/sqlitecipher.cpp
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:119946:7: warning: unused parameter 'argc' [-Wunused-parameter]
  int argc,
      ^
In file included from ../protox/deps/sqlitecipher/sqlcachedresult.cpp:40:
/home/monsterovich/Distfiles/projects/protox/deps/sqlitecipher/sqlcachedresult_p.h:54:29: error: redefinition of 'QVector' as different kind of symbol
template <typename T> class QVector;
                            ^
../../dev/Qt/6.2.0/android_armv7/include/QtCore/qcontainerfwd.h:63:22: note: previous definition is here
template<typename T> using QVector = QList<T>;
                     ^
1 error generated.
make: *** [Makefile:10817: sqlcachedresult.o] Error 1
make: *** Waiting for unfinished jobs....
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:246959:48: warning: unused parameter 'argc' [-Wunused-parameter]
sqlite3mcVersion(sqlite3_context* context, int argc, sqlite3_value** argv)
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:246959:70: warning: unused parameter 'argv' [-Wunused-parameter]
sqlite3mcVersion(sqlite3_context* context, int argc, sqlite3_value** argv)
                                                                     ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:249724:41: warning: comparison of integers of different signs: 'long' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
  if (syscall(SYS_getrandom, buf, n, 0) == n)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:249935:7: warning: unused parameter 'NotUsed' [-Wunused-parameter]
  int NotUsed,
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:249947:35: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
   && sqlite3_value_bytes(argv[1])==nHash+sizeof(zSalt)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:252253:10: warning: unused variable 'outOrig' [-Wunused-variable]
  UINT8* outOrig = outBuffer;
         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:252445:10: warning: unused variable 'outOrig' [-Wunused-variable]
  UINT8* outOrig = outBuffer;
         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253543:31: warning: unused parameter 'cipher' [-Wunused-parameter]
GetReservedAES128Cipher(void* cipher)
                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253549:27: warning: unused parameter 'cipher' [-Wunused-parameter]
GetSaltAES128Cipher(void* cipher)
                          ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253555:49: warning: unused parameter 'pBt' [-Wunused-parameter]
GenerateKeyAES128Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253555:98: warning: unused parameter 'rekey' [-Wunused-parameter]
GenerateKeyAES128Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253555:120: warning: unused parameter 'cipherSalt' [-Wunused-parameter]
GenerateKeyAES128Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253613:83: warning: unused parameter 'reserved' [-Wunused-parameter]
EncryptPageAES128Cipher(void* cipher, int page, unsigned char* data, int len, int reserved)
                                                                                  ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253648:83: warning: unused parameter 'reserved' [-Wunused-parameter]
DecryptPageAES128Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                                  ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253648:97: warning: unused parameter 'hmacCheck' [-Wunused-parameter]
DecryptPageAES128Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                                                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253834:31: warning: unused parameter 'cipher' [-Wunused-parameter]
GetReservedAES256Cipher(void* cipher)
                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253840:27: warning: unused parameter 'cipher' [-Wunused-parameter]
GetSaltAES256Cipher(void* cipher)
                          ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253851:7: warning: unused variable 'keyLength' [-Wunused-variable]
  int keyLength = KEYLENGTH_AES256;
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253846:49: warning: unused parameter 'pBt' [-Wunused-parameter]
GenerateKeyAES256Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253846:98: warning: unused parameter 'rekey' [-Wunused-parameter]
GenerateKeyAES256Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253846:120: warning: unused parameter 'cipherSalt' [-Wunused-parameter]
GenerateKeyAES256Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253866:83: warning: unused parameter 'reserved' [-Wunused-parameter]
EncryptPageAES256Cipher(void* cipher, int page, unsigned char* data, int len, int reserved)
                                                                                  ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253901:83: warning: unused parameter 'reserved' [-Wunused-parameter]
DecryptPageAES256Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                                  ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:253901:97: warning: unused parameter 'hmacCheck' [-Wunused-parameter]
DecryptPageAES256Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                                                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254090:33: warning: unused parameter 'cipher' [-Wunused-parameter]
GetReservedChaCha20Cipher(void* cipher)
                                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254969:28: warning: unused parameter 'cipher' [-Wunused-parameter]
GetReservedRC4Cipher(void* cipher)
                           ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254975:24: warning: unused parameter 'cipher' [-Wunused-parameter]
GetSaltRC4Cipher(void* cipher)
                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254981:46: warning: unused parameter 'pBt' [-Wunused-parameter]
GenerateKeyRC4Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                             ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254981:95: warning: unused parameter 'rekey' [-Wunused-parameter]
GenerateKeyRC4Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254981:117: warning: unused parameter 'cipherSalt' [-Wunused-parameter]
GenerateKeyRC4Cipher(void* cipher, BtShared* pBt, char* userPassword, int passwordLength, int rekey, unsigned char* cipherSalt)
                                                                                                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254996:40: warning: unused parameter 'page' [-Wunused-parameter]
EncryptPageRC4Cipher(void* cipher, int page, unsigned char* data, int len, int reserved)
                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:254996:80: warning: unused parameter 'reserved' [-Wunused-parameter]
EncryptPageRC4Cipher(void* cipher, int page, unsigned char* data, int len, int reserved)
                                                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255009:40: warning: unused parameter 'page' [-Wunused-parameter]
DecryptPageRC4Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255009:80: warning: unused parameter 'reserved' [-Wunused-parameter]
DecryptPageRC4Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255009:94: warning: unused parameter 'hmacCheck' [-Wunused-parameter]
DecryptPageRC4Cipher(void* cipher, int page, unsigned char* data, int len, int reserved, int hmacCheck)
                                                                                             ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255169:1: warning: missing field 'm_encryptPage' initializer [-Wmissing-field-initializers]
};
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255174:1: warning: missing field 'm_encryptPage' initializer [-Wmissing-field-initializers]
};
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255741:52: warning: unused parameter 'argc' [-Wunused-parameter]
sqlite3mcConfigTable(sqlite3_context* context, int argc, sqlite3_value** argv)
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255741:74: warning: unused parameter 'argv' [-Wunused-parameter]
sqlite3mcConfigTable(sqlite3_context* context, int argc, sqlite3_value** argv)
                                                                         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:256168:17: warning: unused variable 'p' [-Wunused-variable]
          char* p = paramList;
                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:256537:23: warning: initializing 'const char *' with an expression of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
          const char* z = sqlite3_value_text(db->pErr);
                      ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:256610:30: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    for (i = 0, iByte = 0; i < sizeof(zDecoded) * 2 && sqlite3Isxdigit(zKey[i]); i++)
                           ~ ^ ~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:257045:34: warning: unused parameter 'info' [-Wunused-parameter]
sqlite3_activate_see(const char *info)
                                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:257182:56: warning: unused parameter 'zPath' [-Wunused-parameter]
sqlite3mcCodecAttach(sqlite3* db, int nDb, const char* zPath, const void* zKey, int nKey)
                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258647:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(sqrtFunc, sqrt)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258650:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(acosFunc, acos)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258651:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(asinFunc, asin)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258652:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(atanFunc, atan)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258666:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(acoshFunc, acosh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258674:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(asinhFunc, asinh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258682:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(atanhFunc, atanh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258695:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(sinFunc, sin)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258696:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(cosFunc, cos)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258697:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(tanFunc, tan)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258701:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(cotFunc, cot)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258719:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(sinhFunc, sinh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258727:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(coshFunc, cosh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258735:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(tanhFunc, tanh)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258739:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(cothFunc, coth)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258757:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(logFunc, log)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258758:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(log10Func, log10)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258759:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(expFunc, exp)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258783:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(rad2degFunc, rad2deg)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258784:1: warning: unused parameter 'argc' [-Wunused-parameter]
GEN_MATH_WRAP_DOUBLE_1(deg2radFunc, deg2rad)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258619:48: note: expanded from macro 'GEN_MATH_WRAP_DOUBLE_1'
static void name(sqlite3_context *context, int argc, sqlite3_value **argv){\
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258787:50: warning: unused parameter 'argc' [-Wunused-parameter]
static void piFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258787:72: warning: unused parameter 'argv' [-Wunused-parameter]
static void piFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258798:54: warning: unused parameter 'argc' [-Wunused-parameter]
static void squareFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                     ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258830:53: warning: unused parameter 'argc' [-Wunused-parameter]
static void powerFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258857:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void atn2Func(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258911:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void ceilFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:258936:53: warning: unused parameter 'argc' [-Wunused-parameter]
static void floorFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259013:54: warning: unused parameter 'argc' [-Wunused-parameter]
static void properFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                     ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259059:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void padlFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259112:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void padrFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259167:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void padcFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259224:57: warning: unused parameter 'argc' [-Wunused-parameter]
static void strfilterFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                        ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259361:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void leftFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259400:53: warning: unused parameter 'argc' [-Wunused-parameter]
static void rightFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259613:55: warning: unused parameter 'argc' [-Wunused-parameter]
static void reverseFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259687:56: warning: unused parameter 'argc' [-Wunused-parameter]
static void varianceStep(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259708:52: warning: unused parameter 'argc' [-Wunused-parameter]
static void modeStep(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                   ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:259968:58: warning: unused parameter 'argc' [-Wunused-parameter]
static void differenceFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260001:56: warning: unused parameter 'argc' [-Wunused-parameter]
static void lastRowsFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                       ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260001:78: warning: unused parameter 'argv' [-Wunused-parameter]
static void lastRowsFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
                                                                             ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260109:13: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for(i=0; i<sizeof(aFuncs)/sizeof(aFuncs[0]); i++){
           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260130:13: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for(i=0; i<sizeof(aAggs)/sizeof(aAggs[0]); i++){
           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260171:48: warning: unused parameter 's' [-Wunused-parameter]
void* xcalloc(size_t nmemb, size_t size, char* s){
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260773:9: warning: unused parameter 'pAux' [-Wunused-parameter]
  void *pAux,
        ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260804:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    for(j=0; j<sizeof(azParam)/sizeof(azParam[0]); j++){
             ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260807:10: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
    if( j<sizeof(azParam)/sizeof(azParam[0]) ){
        ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260917:13: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for(i=0; i<sizeof(azPValue)/sizeof(azPValue[0]); i++){
           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:260937:13: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for(i=0; i<sizeof(azPValue)/sizeof(azPValue[0]); i++){
           ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261093:7: warning: unused parameter 'idxNum' [-Wunused-parameter]
  int idxNum, const char *idxStr,
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261093:27: warning: unused parameter 'idxStr' [-Wunused-parameter]
  int idxNum, const char *idxStr,
                          ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261094:7: warning: unused parameter 'argc' [-Wunused-parameter]
  int argc, sqlite3_value **argv
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261094:29: warning: unused parameter 'argv' [-Wunused-parameter]
  int argc, sqlite3_value **argv
                            ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261119:17: warning: unused parameter 'tab' [-Wunused-parameter]
  sqlite3_vtab *tab,
                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261178:1: warning: missing field 'xSavepoint' initializer [-Wmissing-field-initializers]
};
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:261226:10: warning: unused parameter 'pzErrMsg' [-Wunused-parameter]
  char **pzErrMsg, 
         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264069:9: warning: unused parameter 'pAux' [-Wunused-parameter]
  void *pAux,
        ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264070:7: warning: unused parameter 'argc' [-Wunused-parameter]
  int argc, const char *const*argv,
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264070:31: warning: unused parameter 'argv' [-Wunused-parameter]
  int argc, const char *const*argv,
                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264072:10: warning: unused parameter 'pzErr' [-Wunused-parameter]
  char **pzErr
         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264104:37: warning: unused parameter 'p' [-Wunused-parameter]
static int carrayOpen(sqlite3_vtab *p, sqlite3_vtab_cursor **ppCursor){
                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264203:27: warning: unused parameter 'idxStr' [-Wunused-parameter]
  int idxNum, const char *idxStr,
                          ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264204:7: warning: unused parameter 'argc' [-Wunused-parameter]
  int argc, sqlite3_value **argv
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264266:17: warning: unused parameter 'tab' [-Wunused-parameter]
  sqlite3_vtab *tab,
                ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264340:1: warning: missing field 'xSavepoint' initializer [-Wmissing-field-initializers]
};
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:264460:10: warning: unused parameter 'pzErrMsg' [-Wunused-parameter]
  char **pzErrMsg, 
         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267500:1: warning: missing field 'pMain' initializer [-Wmissing-field-initializers]
};
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267603:48: warning: unused parameter 'db' [-Wunused-parameter]
SQLITE_PRIVATE void sqlite3mcSetCodec(sqlite3* db, const char* zFileName, Codec* codec)
                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267668:18: warning: unused variable 'mcVfs' [-Wunused-variable]
  sqlite3mc_vfs* mcVfs = (sqlite3mc_vfs*) pVfs;
                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267931:15: warning: unused variable 'bufferDecrypted' [-Wunused-variable]
        void* bufferDecrypted = sqlite3mcCodec(mcFile->codec, data, pageNo, 3);
              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267959:13: warning: unused variable 'bufferDecrypted' [-Wunused-variable]
      void* bufferDecrypted = sqlite3mcCodec(codec, (char*) buffer, mcFile->pageNo, 3);
            ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267944:96: warning: unused parameter 'offset' [-Wunused-parameter]
static int mcReadMainJournal(sqlite3_file* pFile, const void* buffer, int count, sqlite3_int64 offset)
                                                                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267992:13: warning: unused variable 'bufferDecrypted' [-Wunused-variable]
      void* bufferDecrypted = sqlite3mcCodec(codec, (char*) buffer, mcFile->pageNo, 3);
            ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267977:95: warning: unused parameter 'offset' [-Wunused-parameter]
static int mcReadSubJournal(sqlite3_file* pFile, const void* buffer, int count, sqlite3_int64 offset)
                                                                                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268040:15: warning: unused variable 'bufferDecrypted' [-Wunused-variable]
        void* bufferDecrypted = sqlite3mcCodec(codec, (char*) buffer, pageNo, 3);
              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268176:15: warning: unused variable 'frameSize' [-Wunused-variable]
    const int frameSize = pageSize + 4 + 4;
              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268224:15: warning: unused variable 'frameSize' [-Wunused-variable]
    const int frameSize = pageSize + 4;
              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268330:7: warning: unused variable 'doDefault' [-Wunused-variable]
  int doDefault = 1;
      ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268430:19: warning: unused variable 'p' [-Wunused-variable]
  sqlite3mc_file* p = (sqlite3mc_file*) pFile;
                  ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268671:47: warning: unused parameter 'pzErrMsg' [-Wunused-parameter]
mcRegisterCodecExtensions(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines* pApi)
                                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268671:85: warning: unused parameter 'pApi' [-Wunused-parameter]
mcRegisterCodecExtensions(sqlite3* db, char** pzErrMsg, const sqlite3_api_routines* pApi)
                                                                                    ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268727:42: warning: unused parameter 'pzErrMsg' [-Wunused-parameter]
sqlite3_extfunc_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
                                         ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268727:80: warning: unused parameter 'pApi' [-Wunused-parameter]
sqlite3_extfunc_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi)
                                                                               ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268734:34: warning: unused parameter 'arg' [-Wunused-parameter]
sqlite3mc_initialize(const char* arg)
                                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:251201:1: warning: unused function 'aesHardwareAvailable' [-Wunused-function]
aesHardwareAvailable()
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255355:1: warning: unused function 'sqlite3mcSetReadCipherType' [-Wunused-function]
sqlite3mcSetReadCipherType(Codec* codec, int cipherType)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255361:1: warning: unused function 'sqlite3mcSetWriteCipherType' [-Wunused-function]
sqlite3mcSetWriteCipherType(Codec* codec, int cipherType)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255436:1: warning: unused function 'sqlite3mcGetReadReserved' [-Wunused-function]
sqlite3mcGetReadReserved(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255442:1: warning: unused function 'sqlite3mcGetWriteReserved' [-Wunused-function]
sqlite3mcGetWriteReserved(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255454:1: warning: unused function 'sqlite3mcGetLegacyReadCipher' [-Wunused-function]
sqlite3mcGetLegacyReadCipher(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255468:1: warning: unused function 'sqlite3mcGetPageSizeReadCipher' [-Wunused-function]
sqlite3mcGetPageSizeReadCipher(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255482:1: warning: unused function 'sqlite3mcGetReservedReadCipher' [-Wunused-function]
sqlite3mcGetReservedReadCipher(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255496:1: warning: unused function 'sqlite3mcReservedEqual' [-Wunused-function]
sqlite3mcReservedEqual(Codec* codec)
^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:255171:31: warning: unused variable 'mcDummyDescriptor' [-Wunused-const-variable]
static const CipherDescriptor mcDummyDescriptor =
                              ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:267468:18: warning: unused variable 'walFileHeaderSize' [-Wunused-const-variable]
static const int walFileHeaderSize = 32;
                 ^
../protox/deps/sqlitecipher/sqlite3/sqlite3mc_amalgamation.c:268263:12: warning: unused function 'mcWriteWal' [-Wunused-function]
static int mcWriteWal(sqlite3_file* pFile, const void* buffer, int count, sqlite3_int64 offset)
           ^
../protox/deps/sqlitecipher/sqlitecipher.cpp:1322:34: error: no matching function for call to 'qMakeError'
                    setLastError(qMakeError(d->access, tr("Cannot create password. Maybe it is encrypted?"), QSqlError::ConnectionError));
                                 ^~~~~~~~~~
../protox/deps/sqlitecipher/sqlitecipher.cpp:152:18: note: candidate function not viable: requires 4 arguments, but 3 were provided
static QSqlError qMakeError(sqlite3 *access, const QString &descr, QSqlError::ErrorType type,
                 ^
../protox/deps/sqlitecipher/sqlitecipher.cpp:1363:22: error: no matching function for call to 'qMakeError'
        setLastError(qMakeError(d->access, tr("Error opening database"), QSqlError::ConnectionError));
                     ^~~~~~~~~~
../protox/deps/sqlitecipher/sqlitecipher.cpp:152:18: note: candidate function not viable: requires 4 arguments, but 3 were provided
static QSqlError qMakeError(sqlite3 *access, const QString &descr, QSqlError::ErrorType type,
                 ^
2 errors generated.
make: *** [Makefile:10961: sqlitecipher.o] Error 1
140 warnings generated.
20:19:37: Процесс «/home/monsterovich/Distfiles/dev/Android/Sdk/ndk/21.3.6528147/prebuilt/linux-x86_64/bin/make» завершился с кодом 2.
Ошибка при сборке/развёртывании проекта protox (комплект: Android Qt 6.2.0 Clang armeabi-v7a)
Во время выполнения этапа «Сборка»
20:19:37: Прошло времени: 01:31.
devbean commented 3 years ago

Sorry for such mistake. I have fixed a bug about qMakeError function, please checkout develop branch.

PS: I didn't compile it using Android SDK so I'm not sure if there is no problem.

6875122qq commented 1 year ago

Where download release of qt6.x mingw?