Open pal1491 opened 6 years ago
I can compile under MACOS, but I can't use it. There is an exception when I do database operation.
I compiled on macOS, and worked without exception... dude, you need to check your environment setup
What environment setup should be check?
😂我在Windows, Android, macOS, iOS上都是直接建置並測試成功,一定是你的環境配置有問題!
edit: 剛發現我還未在Linux上測驗!
呵呵,早中文来呗。。。 你觉得会是哪方面的配置问题呢?
@CingKong 你好,请问你的macOS和xcode分别是什么版本的?
抱歉剛看到回復 我的macOS是 10.14.3,Xcode是 10.1(10861)
没关系,谢谢你才是! 我的是10.11,xcode才8.2的,难道是因为这个。。。
這個不清楚喔,我macOS是虛擬電腦上的,只用來測驗一些代碼片段的跨平台性而已,我主要還是用Windows。如果Xcode版本不妨礙您日常工作的話可以試著升級一下。
macOS10.11最高可以安装xcode8.2,再看看吧
@CingKong 对macOS不太熟悉,知不知道如果使用macOS10.11来编译qt,会不会在低版本的macOS不能运行啊?
😂抱歉同樣對macOS不熟,不能幫到您。
没关系,感谢你!你是哪里人啊,怎么用繁体字?
@CingKong 你表情怎么打出来的啊,不会玩这个
大陸中國人啦,用正體字是覺得正體字很好看,表情你可以從WeChat等通訊軟體上直接複製過來唷。
这样哦
Process: sqlitecipher_test [5775] Path: /Users/USER/*/sqlitecipher_test.app/Contents/MacOS/sqlitecipher_test Identifier: com.yourcompany.sqlitecipher-test Version: 0 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: sqlitecipher_test [5775] User ID: 501
Date/Time: 2019-03-09 21:46:38.495 +0800 OS Version: Mac OS X 10.11.6 (15G31) Report Version: 11 Anonymous UUID: F30987C9-DE12-68D9-8C9F-D69B8091AAFB
Sleep/Wake UUID: DF982460-ACA9-4BFB-B478-59FC9456538C
Time Awake Since Boot: 60000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGSYS) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff916aa452 __syscall + 10 1 libsqlitecipher.dylib 0x000000010f740b23 entropy + 51 2 libsqlitecipher.dylib 0x000000010f740a13 chacha20_rng + 243 3 libsqlitecipher.dylib 0x000000010f74662d GenerateKeyChaCha20Cipher + 93 4 libsqlitecipher.dylib 0x000000010f74a473 CodecSetup + 115 5 libsqlitecipher.dylib 0x000000010f74aecf sqlite3CodecAttach + 239 6 libsqlitecipher.dylib 0x000000010f7c7394 sqlite3Pragma + 14132 7 libsqlitecipher.dylib 0x000000010f7981a8 yy_reduce + 11464 8 libsqlitecipher.dylib 0x000000010f72ebe6 sqlite3RunParser + 566 9 libsqlitecipher.dylib 0x000000010f72d117 sqlite3LockAndPrepare + 871 10 libsqlitecipher.dylib 0x000000010f72dbb7 sqlite3Prepare16 + 439 11 libsqlitecipher.dylib 0x000000010f88a2e0 SQLiteResult::prepare(QString const&) + 256 12 libsqlitecipher.dylib 0x000000010f88a1bf SQLiteResult::reset(QString const&) + 15 13 org.qt-project.QtSql 0x000000010d6f7700 QSqlQuery::exec(QString const&) + 864 14 com.yourcompany.sqlitecipher-test 0x000000010cbec7dc TestSqliteCipher::createDbWithPassphrase() + 524 15 org.qt-project.QtCore 0x000000010d3140bc QMetaMethod::invoke(QObject, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const + 1308 16 org.qt-project.QtTest 0x000000010d6b9d1a QTest::TestMethods::invokeTestOnData(int) const + 1162 17 org.qt-project.QtTest 0x000000010d6baae9 QTest::TestMethods::invokeTest(int, char const, QTest::WatchDog) const + 777 18 org.qt-project.QtTest 0x000000010d6bb9f4 QTest::TestMethods::invokeTests(QObject) const + 1028 19 org.qt-project.QtTest 0x000000010d6bc552 QTest::qRun() + 242 20 org.qt-project.QtTest 0x000000010d6bc1b0 QTest::qExec(QObject*, int, char**) + 16 21 com.yourcompany.sqlitecipher-test 0x000000010cbed69b main + 123 22 libdyld.dylib 0x00007fff9298d5ad start + 1
Thread 1: 0 libsystem_kernel.dylib 0x00007fff916aa5e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff92920578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff9291e341 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff916aaefa kevent_qos + 10 1 libdispatch.dylib 0x00007fff94ef6165 _dispatch_mgr_invoke + 216 2 libdispatch.dylib 0x00007fff94ef5dcd _dispatch_mgr_thread + 52
Thread 3: 0 libsystem_kernel.dylib 0x00007fff916aa5e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff92920578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff9291e341 start_wqthread + 13
Thread 4: 0 libsystem_kernel.dylib 0x00007fff916aa5e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff92920578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff9291e341 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000000000004e rbx: 0x000000010f8ac710 rcx: 0x00007fff53015b78 rdx: 0x0000000000000020 rdi: 0x00000000000001f4 rsi: 0x000000010f8ac710 rbp: 0x00007fff53015c50 rsp: 0x00007fff53015b78 r8: 0x00000000ffffffff r9: 0x000000000002624e r10: 0x000000010f8aa890 r11: 0x0000000000000206 r12: 0x0000000000000000 r13: 0x000000010f8ac730 r14: 0x00007faa62d0c440 r15: 0x0000000000000020 rip: 0x00007fff916aa452 rfl: 0x0000000000000207 cr2: 0x0000700000196df8
Logical CPU: 0 Error Code: 0x02000170 Trap Number: 133
Binary Images:
0x10cbe8000 - 0x10cbeefff +com.yourcompany.sqlitecipher-test (0) <4A820C9E-8996-320F-8975-B849D5EFA309> /Users/USER//sqlitecipher_test.app/Contents/MacOS/sqlitecipher_test
0x10cbf7000 - 0x10d01dfef +org.qt-project.QtGui (5.10 - 5.10.1) <1251446C-3802-3FC8-B682-2EF326CE7EE2> /Users/USER//QtGui.framework/Versions/5/QtGui
0x10d11a000 - 0x10d5f9ffb +org.qt-project.QtCore (5.10 - 5.10.1)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 1 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 17692 thread_create: 0 thread_set_state: 448
VM Region Summary: ReadOnly portion of Libraries: Total=224.4M resident=0K(0%) swapped_out_or_unallocated=224.4M(100%) Writable regions: Total=36.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=36.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Activity Tracing 2048K 2 Dispatch continuations 4096K 2 Kernel Alloc Once 4K 2 MALLOC 18.3M 12 MALLOC guard page 32K 7 Process Corpse Info 2048K 2 STACK GUARD 56.0M 6 Stack 9824K 6 VM_ALLOCATE 24K 4 DATA 16.9M 193 IMAGE 528K 2 LINKEDIT 93.1M 11 TEXT 131.3M 193 __UNICODE 552K 2 mapped file 25.1M 2 shared memory 320K 8 =========== ======= ======= TOTAL 359.7M 438
Model: VMware7,1, BootROM VMW71.00V.9694812.B64.1808210100, 2 processors, 3.16 GHz, 4 GB, SMC 2.8f0 Graphics: Display, PCI, 128 MB Memory Module: RAM slot #0/RAM slot #0, 4 GB, DRAM, 0 MHz, VMware Virtual RAM, VMW-4096MB Network Service: Ethernet, Ethernet, en0 Serial ATA Device: VMware Virtual SATA Hard Drive, 64.42 GB Serial ATA Device: VMware Virtual SATA CDRW Drive, 8.19 GB USB Device: USB Bus USB Device: USB 2.0 Bus USB Device: USB 3.0 Bus USB Device: VMware Virtual USB Hub USB Device: VMware Virtual USB Hub USB Device: VMware Virtual USB Keyboard USB Device: VMware Virtual USB Mouse Thunderbolt Bus:
The example will be abnormal if it runs under MAC OS X 10.11. I hope someone can see it and help me.
trying to build for mac os:
giving errors: /Users/pallavituteja/Documents/newsipher/sqlitecipher/sqlitecipher.cpp:137: error: unknown type name 'Driver' explicit SQLiteResult(const Driver* db); ^