We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Is there anyway to compile the sqlite on uvision compiler?
Thanks Michael
Probably, but what would you use as back-end for actual storage?
I haven't done it myself, but according to the official web site it should be relatively straightforward:
www.sqlite.org/custombuild.html
Okay , but i am working with realview libraries and not with GCC. is it still possible?
I just tried it - it does compile.
Hi Mike,
Can you please explain how did you do that? i am not able to compile it . I am using uvision 4 ,where ARM development tool is realview ,and not GCC.
Please explain
Why don't you post any information about in what way you fail?
for starters it missing alot of header files like :"pwd.h" and "pthread.h" ,that are available in GCC ,but not available in realview .
Source/shell.c(42): error: #5: cannot open source input file "pwd.h": No such file or directory Source/sqlite3.c(17785): error: #5: cannot open source input file "pthread.h": No such file or directory
Michael
Can you please explain how did you do that?
Created a new project, added the amalgamation version of SQLite (sqlite3.c) file to the project. Obviously, sqlite3.h has to be there too. Had to add two defines (SQLITE_THREADSAFE=0 SQLITE_OS_OTHER=1) to make it compile. That's pretty much it.
Ok,
But Sqlite3 compiled correctly,but what about shell.c? or this file is not relevant ? is that its the command line utility .
I added the arguments SQLITE_THREADSAFE=0 SQLITE_OS_OTHER=1 to the preprocessor symbols.
stm32.axf: Error: L6218E: Undefined symbol sqlite3_os_init (referred from sqlite3.o). stm32.axf: Error: L6218E: Undefined symbol sqlite3_os_end (referred from sqlite3.o).
Thats what i get after i removed the shell file
Hey, you have to do the porting yourself. It will take some effort, and it is unreasonable to expect that someone on this forum will do it for you.
unreasonable to expect that someone on this forum will do it for you for free
http://www.keil.com/condb