lvgl-micropython / lvgl_micropython

LVGL module for MicroPython
MIT License
86 stars 27 forks source link

How to add Modules like usqlite #143

Closed spienz closed 1 month ago

spienz commented 1 month ago

Hy,

how can i add modules like usqlite within the build process? https://github.com/spatialdude/usqlite

Regards

Sebastian

kdschlosser commented 1 month ago
cd ext_mod
git clone https://github.com/spatialdude/usqlite
echo "include(\${CMAKE_CURRENT_LIST_DIR}/usqlite/micropython.cmake)" >> micropython.cmake

pretty simple to do. I made it this way intentionally so it is easy to add additional user c modules

spienz commented 1 month ago

Thx, i will test it this evening

spienz commented 1 month ago

Hy,

it could be, but it isn't.... Getting a lot of errors....

Don't know why, opend a Issue https://github.com/spatialdude/usqlite/issues/31

Regards

Sebastian

from /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:14678, from /home/ubuntu/lvgl_micropython/ext_mod/usqlite/usqlite.c:50: /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3PcacheFetchFinish': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:54760:11: error: implicit declaration of function 'sqlite3PcachePageSanity'; did you mean 'sqlite3PcachePagecount'? [-Werror=implicit-function-declaration] 54760 | assert( sqlite3PcachePageSanity(pPgHdr) ); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'pcache1TruncateUnsafe': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:55844:11: error: 'nPage' undeclared (first use in this function); did you mean 'DbPage'? 55844 | assert( nPage<0 || pCache->nPage==(unsigned)nPage ); | ^~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:55844:11: note: each undeclared identifier is reported only once for each function it appears in /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'pcache1Fetch': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:56213:11: error: 'pCache' undeclared (first use in this function); did you mean 'PCache'? 56213 | assert( pCache->bPurgeable || createFlag!=1 ); | ^~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'pager_end_transaction': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:59158:11: error: implicit declaration of function 'assert_pager_state' [-Werror=implicit-function-declaration] 59158 | assert( assert_pager_state(pPager) ); | ^~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'subjournalPage': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:61637:13: error: implicit declaration of function 'pageInJournal' [-Werror=implicit-function-declaration] 61637 | || pageInJournal(pPager, pPg) | ^~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3PagerUnrefNotNull': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:62874:33: error: 'pPager' undeclared (first use in this function); did you mean 'Pager'? 62874 | assert( sqlite3PcacheRefCount(pPager->pPCache)>0 ); /* tag-20230419-2 */ | ^~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walIndexPage': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65711:3: note: in expansion of macro 'SEH_INJECT_FAULT' 65711 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walCkptInfo': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65723:3: note: in expansion of macro 'SEH_INJECT_FAULT' 65723 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walIndexHdr': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65732:3: note: in expansion of macro 'SEH_INJECT_FAULT' 65732 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walFramePgno': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:66117:3: note: in expansion of macro 'SEH_INJECT_FAULT' 66117 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walIndexRecover': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:66455:7: note: in expansion of macro 'SEH_INJECT_FAULT' 66455 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:66487:9: note: in expansion of macro 'SEH_INJECT_FAULT' 66487 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walCheckpoint': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67134:47: note: in expansion of macro 'SEH_INJECT_FAULT' 67134 | u32 y = AtomicLoad(pInfo->aReadMark+i); SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67140:51: note: in expansion of macro 'SEH_INJECT_FAULT' 67140 | AtomicStore(pInfo->aReadMark+i, iMark); SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67161:48: note: in expansion of macro 'SEH_INJECT_FAULT' 67161 | pInfo->nBackfillAttempted = mxSafeFrame; SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67192:9: note: in expansion of macro 'SEH_INJECT_FAULT' 67192 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67222:56: note: in expansion of macro 'SEH_INJECT_FAULT' 67222 | AtomicStore(&pInfo->nBackfill, mxSafeFrame); SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:67244:5: note: in expansion of macro 'SEH_INJECT_FAULT' 67244 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walTryBeginRead': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68008:3: note: in expansion of macro 'SEH_INJECT_FAULT' 68008 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68058:52: note: in expansion of macro 'SEH_INJECT_FAULT' 68058 | u32 thisMark = AtomicLoad(pInfo->aReadMark+i); SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68134:53: note: in expansion of macro 'SEH_INJECT_FAULT' 68134 | pWal->minFrame = AtomicLoad(&pInfo->nBackfill)+1; SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walBeginReadTransaction': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68258:15: error: 'Wal' has no member named 'nSehTry' 68258 | assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalBeginReadTransaction': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68372:3: note: in expansion of macro 'SEH_EXCEPT' 68372 | SEH_EXCEPT( rc = walHandleException(pWal); ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'walFindFrame': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68407:36: error: 'Wal' has no member named 'lockError' 68407 | assert( pWal->readLock>=0 || pWal->lockError ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68459:5: note: in expansion of macro 'SEH_INJECT_FAULT' 68459 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalFindFrame': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68517:3: note: in expansion of macro 'SEH_EXCEPT' 68517 | SEH_EXCEPT( rc = SQLITE_IOERR_IN_PAGE; ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalBeginWriteTransaction': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68607:3: note: in expansion of macro 'SEH_EXCEPT' 68607 | SEH_EXCEPT( rc = SQLITE_IOERR_IN_PAGE; ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalUndo': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68674:5: note: in expansion of macro 'SEH_EXCEPT' 68674 | SEH_EXCEPT( rc = SQLITE_IOERR_IN_PAGE; ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalSavepointUndo': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:68721:5: note: in expansion of macro 'SEH_EXCEPT' 68721 | SEH_EXCEPT( rc = SQLITE_IOERR_IN_PAGE; ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalFrames': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:69151:3: note: in expansion of macro 'SEH_EXCEPT' 69151 | SEH_EXCEPT( rc = walHandleException(pWal); ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalCheckpoint': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65633:39: error: 'Wal' has no member named 'nSehTry' 65633 | # define SEH_INJECT_FAULT assert( pWal->nSehTry>0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:69259:9: note: in expansion of macro 'SEH_INJECT_FAULT' 69259 | SEH_INJECT_FAULT; | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:65632:66: error: 'Wal' has no member named 'nSehTry' 65632 | # define SEH_EXCEPT(X) VVA_ONLY(pWal->nSehTry--); assert( pWal->nSehTry==0 ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:69264:3: note: in expansion of macro 'SEH_EXCEPT' 69264 | SEH_EXCEPT( rc = walHandleException(pWal); ) | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3WalExclusiveMode': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:69342:36: error: 'Wal' has no member named 'lockError' 69342 | assert( pWal->readLock>=0 || pWal->lockError ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'saveCursorKey': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:71261:11: error: implicit declaration of function 'cursorHoldsMutex' [-Werror=implicit-function-declaration] 71261 | assert( cursorHoldsMutex(pCur) ); | ^~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'btreeRestoreCursorPosition': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:71442:11: error: implicit declaration of function 'cursorOwnsBtShared' [-Werror=implicit-function-declaration] 71442 | assert( cursorOwnsBtShared(pCur) ); | ^~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'cellSizePtr': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:71985:18: error: 'debuginfo' undeclared (first use in this function) 71985 | assert( nSize==debuginfo.nSize || CORRUPT_DB ); | ^~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'cellSizePtrIdxLeaf': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:72027:18: error: 'debuginfo' undeclared (first use in this function) 72027 | assert( nSize==debuginfo.nSize || CORRUPT_DB ); | ^~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'cellSizePtrNoPayload': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:72048:11: error: 'debuginfo' undeclared (first use in this function) 72048 | assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB ); | ^~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'cellSizePtrTableLeaf': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:72100:18: error: 'debuginfo' undeclared (first use in this function) 72100 | assert( nSize==debuginfo.nSize || CORRUPT_DB ); | ^~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'defragmentPage': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:72167:11: error: implicit declaration of function 'sqlite3PagerIswriteable'; did you mean 'sqlite3PagerWrite'? [-Werror=implicit-function-declaration] 72167 | assert( sqlite3PagerIswriteable(pPage->pDbPage) ); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'btreeComputeFreeSpace': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:72641:24: error: implicit declaration of function 'sqlite3PagerPagenumber'; did you mean 'sqlite3PagerFilename'? [-Werror=implicit-function-declaration] 72641 | assert( pPage->pgno==sqlite3PagerPagenumber(pPage->pDbPage) ); | ^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'unlockBtreeIfUnused': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:74023:11: error: implicit declaration of function 'countValidCursors' [-Werror=implicit-function-declaration] 74023 | assert( countValidCursors(pBt,0)==0 || pBt->inTransaction>TRANS_NONE ); | ^~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:74027:13: error: implicit declaration of function 'sqlite3PagerRefcount'; did you mean 'sqlite3PagerPagecount'? [-Werror=implicit-function-declaration] 74027 | assert( sqlite3PagerRefcount(pBt->pPager)==1 ); | ^~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'autoVacuumCommit': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:74776:11: error: 'nRef' undeclared (first use in this function) 74776 | assert( nRef>=sqlite3PagerRefcount(pPager) ); | ^~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3BtreeLast': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:76221:13: error: implicit declaration of function 'cursorIsAtLastEntry' [-Werror=implicit-function-declaration] 76221 | assert( cursorIsAtLastEntry(pCur) || CORRUPT_DB ); | ^~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'dropCell': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:77721:29: error: implicit declaration of function 'cellSize'; did you mean 'cellSizePtr'? [-Werror=implicit-function-declaration] 77721 | assert( CORRUPT_DB || sz==cellSize(pPage, idx) ); | ^~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'balance_nonroot': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:78921:22: error: 'nCellAtStart' undeclared (first use in this function) 78921 | assert( (b.nCell-nCellAtStart)==(pOld->nCell+pOld->nOverflow) ); | ^~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'balance': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:79584:17: error: 'balance_deeper_called' undeclared (first use in this function); did you mean 'balance_deeper'? 79584 | assert( balance_deeper_called==0 ); | ^~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3BtreeIntegrityCheck': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:81601:11: error: 'nRef' undeclared (first use in this function) 81601 | assert( nRef>=0 ); | ^~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3_backup_step': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:82564:15: error: 'rc2' undeclared (first use in this function); did you mean 'rc'? 82564 | assert( rc2==SQLITE_OK ); | ^~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeChangeEncoding': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:82990:12: error: implicit declaration of function 'sqlite3VdbeMemIsRowSet'; did you mean 'sqlite3VdbeMemSetRowSet'? [-Werror=implicit-function-declaration] 82990 | assert( !sqlite3VdbeMemIsRowSet(pMem) ); | ^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeMemGrow': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:83025:11: error: implicit declaration of function 'sqlite3VdbeCheckMemInvariants' [-Werror=implicit-function-declaration] 83025 | assert( sqlite3VdbeCheckMemInvariants(pMem) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeMemFromBtreeZeroOffset': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:84081:11: error: implicit declaration of function 'sqlite3BtreeCursorIsValid'; did you mean 'sqlite3BtreeCursorIsValidNN'? [-Werror=implicit-function-declaration] 84081 | assert( sqlite3BtreeCursorIsValid(pCur) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'valueToText': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:84131:13: error: implicit declaration of function 'sqlite3VdbeMemValidStrRep'; did you mean 'sqlite3VdbeMemFromBtree'? [-Werror=implicit-function-declaration] 84131 | assert( sqlite3VdbeMemValidStrRep(pVal) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeFrameMemDel': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:87063:11: error: implicit declaration of function 'sqlite3VdbeFrameIsValid'; did you mean 'sqlite3VdbeFrameRestore'? [-Werror=implicit-function-declaration] 87063 | assert( sqlite3VdbeFrameIsValid(pFrame) ); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeRecordCompareWithSkip': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:89729:15: error: implicit declaration of function 'vdbeRecordCompareDebug' [-Werror=implicit-function-declaration] 89729 | assert( vdbeRecordCompareDebug(nKey1, pKey1, pPKey2, rc) ); | ^~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3VdbeExec': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:94677:13: error: implicit declaration of function 'memIsValid' [-Werror=implicit-function-declaration] 94677 | assert( memIsValid(pIn1) ); | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:95496:11: error: 'iCompareIsInit' undeclared (first use in this function) 95496 | assert( iCompareIsInit ); | ^~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:96867:11: error: implicit declaration of function 'checkSavepointCount' [-Werror=implicit-function-declaration] 96867 | assert( checkSavepointCount(db) ); | ^~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99497:13: error: 'VdbeCursor' has no member named 'seekOp' 99497 | assert( pC->seekOp==OP_SeekLT || pC->seekOp==OP_SeekLE | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99497:38: error: 'VdbeCursor' has no member named 'seekOp' 99497 | assert( pC->seekOp==OP_SeekLT || pC->seekOp==OP_SeekLE | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99498:13: error: 'VdbeCursor' has no member named 'seekOp' 99498 | || pC->seekOp==OP_Last || pC->seekOp==OP_IfNoHope | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99498:38: error: 'VdbeCursor' has no member named 'seekOp' 99498 | || pC->seekOp==OP_Last || pC->seekOp==OP_IfNoHope | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99499:13: error: 'VdbeCursor' has no member named 'seekOp' 99499 | || pC->seekOp==OP_NullRow); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99512:13: error: 'VdbeCursor' has no member named 'seekOp' 99512 | assert( pC->seekOp==OP_SeekGT || pC->seekOp==OP_SeekGE | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99512:38: error: 'VdbeCursor' has no member named 'seekOp' 99512 | assert( pC->seekOp==OP_SeekGT || pC->seekOp==OP_SeekGE | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99513:13: error: 'VdbeCursor' has no member named 'seekOp' 99513 | || pC->seekOp==OP_Rewind || pC->seekOp==OP_Found | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99513:38: error: 'VdbeCursor' has no member named 'seekOp' 99513 | || pC->seekOp==OP_Rewind || pC->seekOp==OP_Found | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99514:13: error: 'VdbeCursor' has no member named 'seekOp' 99514 | || pC->seekOp==OP_NullRow|| pC->seekOp==OP_SeekRowid | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99514:38: error: 'VdbeCursor' has no member named 'seekOp' 99514 | || pC->seekOp==OP_NullRow|| pC->seekOp==OP_SeekRowid | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:99515:13: error: 'VdbeCursor' has no member named 'seekOp' 99515 | || pC->seekOp==OP_IfNoHope); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:102251:28: error: 'nExtraDelete' undeclared (first use in this function) 102251 | assert( rc!=SQLITE_OK || nExtraDelete==0 | ^~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'vdbeSorterListToPMA': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:104402:46: error: 'iSz' undeclared (first use in this function) 104402 | assert( rc!=SQLITE_OK || pTask->file.iEof==iSz ); | ^~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'exprDup': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:110661:29: error: 'EdupBuf' has no member named 'zEnd' 110661 | assert( (int)(sEdupBuf.zEnd - sEdupBuf.zAlloc) >= nNewSize+nToken ); | ^ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:110666:29: error: 'EdupBuf' has no member named 'zEnd' 110666 | assert( (int)(sEdupBuf.zEnd - sEdupBuf.zAlloc) >= | ^ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:110737:38: error: 'EdupBuf' has no member named 'zEnd' 110737 | assert( sEdupBuf.zAlloc <= sEdupBuf.zEnd ); | ^ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3CodeRhsOfIN': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:112540:15: error: implicit declaration of function 'sqlite3KeyInfoIsWriteable'; did you mean 'sqlite3KeyInfoUnref'? [-Werror=implicit-function-declaration] 112540 | assert( sqlite3KeyInfoIsWriteable(pKeyInfo) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3FinishCoding': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:121535:11: error: implicit declaration of function 'sqlite3VdbeAssertMayAbort'; did you mean 'sqlite3VdbeAssertAbortable'? [-Werror=implicit-function-declaration] 121535 | || sqlite3VdbeAssertMayAbort(v, pParse->mayAbort)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'deleteTable': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:122207:15: error: 'pOld' undeclared (first use in this function) 122207 | assert( pOld==pIndex || pOld==0 ); | ^~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:122234:11: error: 'nLookaside' undeclared (first use in this function); did you mean 'Lookaside'? 122234 | assert( nLookaside==0 || nLookaside==sqlite3LookasideUsed(db,0) ); | ^~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3AddReturning': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:122815:44: error: 'Parse' has no member named 'ifNotExists' 122815 | assert( pParse->bReturning==0 || pParse->ifNotExists ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:122843:37: error: 'Parse' has no member named 'ifNotExists' 122843 | || pParse->nErr || pParse->ifNotExists ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'unhexFunc': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:129978:23: error: 'zEnd' undeclared (first use in this function) 129978 | assert( zHex<=zEnd ); | ^~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3Pragma': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:140564:17: error: implicit declaration of function 'sqlite3NoTempsInRange'; did you mean 'sqlite3GetTempRange'? [-Werror=implicit-function-declaration] 140564 | assert( sqlite3NoTempsInRange(pParse,1,7+j) ); | ^~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3InitCallback': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:141949:25: error: 'rcp' undeclared (first use in this function); did you mean 'rc'? 141949 | assert( (rc&0xFF)==(rcp&0xFF) ); | ^~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'sqlite3RunParser': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:179185:61: error: 'startedWithOom' undeclared (first use in this function) 179185 | assert( db->mallocFailed==0 || pParse->rc!=SQLITE_OK || startedWithOom ); | ^~~~~~~~~~~~~~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'jsonAppendControlChar': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:205492:12: warning: comparison is always true due to limited range of data type [-Wtype-limits] 205492 | assert( c>=0 && c<sizeof(aSpecial) ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c: In function 'jsonMergePatch': /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:208868:18: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits] 208868 | assert( iTarget>=0 && iTarget<pTarget->nBlob ); | ^~ /home/ubuntu/lvgl_micropython/ext_mod/usqlite/sqlite3.c:208869:17: warning: comparison of unsigned expression in '>= 0' is always true [-Wtype-limits] 208869 | assert( iPatch>=0 && iPatch<pPatch->nBlob ); | ^~ cc1: some warnings being treated as errors ninja: build stopped: subcommand failed.

spienz commented 1 month ago

Get it to run, had to Change makefile of usql. the ESP32 query won't work. So i did it hard, and the it works.