devbean / QtCipherSqlitePlugin

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

Call undeclared function vaeseq_u8 on ARM arch #53

Open alexandrkirilov opened 1 year ago

alexandrkirilov commented 1 year ago

The Qt version is 6.2.8. On MacOS Ventura with XCode 14.3 not working. But On MacOS Monterey with XCode 14.2 all is working.

Screen Shot 2023-05-30 at 18 53 02
alexandrkirilov commented 1 year ago

This trouble is more fundamental. Somehow it's related to ARM decryption. It's happening on Android too. It's about SQLite3.

alexandrkirilov commented 1 year ago

This is logs from Android

Screen Shot 2023-05-30 at 20 27 25
alexandrkirilov commented 1 year ago

This trouble not appearing with Qt 6.2.8 and XCode 13.3.1 For everything higher - not working. There are troubles with building SQLite3. Already tried to find solution https://forum.qt.io/topic/145462/iso-c99-and-later-do-not-support-implicit-function-declarations-on-macos-how-to-fix

alexandrkirilov commented 1 year ago

New update. This trouble happening with Qt 6.2.8 arm64_v8 arch for Android with any version of Qt. All other archs is working. Tested with ndk 22.1 and 25.1 (Qt Creator defaults) and with Qt 6.2.8 and 6.5.0 and 6.5.1 on MacOS with XCode 13.3.1 and 14.2 and 14.3 on Intel and M1 devices.

alexandrkirilov commented 1 year ago

Could someone write something where to find solution for it?

realericzh commented 11 months ago

try this:

macos {
    contains(QMAKE_HOST.arch, "arm64") {
        QMAKE_CFLAGS += -mcpu=apple-m1
    } else {
        QMAKE_CFLAGS += -march=native
    }
}

it works for me,Apple M2