![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
|
Database on iLiad?
Has anyone ported any database software (SQLite, MySQL, whatever) to the iLiad? Either my google-fu is weak, or there's no package or installer on mobileread (I think it was Adam B mentioned he'd compiled sqlite? but as part of some other project).
If not, is it just that the super-porters have had other priorities, or is there likely to be a good reason not to try? I tried just dropping the sqlite linux executable onto my iliad, which unsurprisingly didn't do the trick. Code:
root@ereader:~# ./sqlite3-3.6.10.bin ./sqlite3-3.6.10.bin: 1: Syntax error: word unexpected (expecting ")") |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
|
SQLite can be done, bit of a pain
Well, I seem to have answered my own question. I've got the sqlite executable running, so I guess the library should be fine too. (I'm working towards a lua app with a database backend.)
Apparently SQLite is a pain to cross-compile because the Makefile you get out of the box tries to execute some of the files it creates halfway through the process, which of course doesn't work. I used a variation on this solution, with the Irex SDK tools installed as hansel described. I'll admit I don't entirely understand what I did, but it seems to have worked. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
![]() ![]() ![]() This might be a next step: http://www.mroth.net/lua-sqlite3/ ![]() |
|
![]() |
![]() |
![]() |
#4 | |
Junior Member
![]() Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
|
Cheers -- right back atcha, since it's your instructions I was following.
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I once built sqlite for iLiad because WebKit needed it. IIRC, The process was not so problematic.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
|
I've compiled sqlite3 and built a package. It's only ~400k in size, so it will install directly to /. It includes the library as well as the binary (sqlite3). Some test code:
Code:
root@ereader:/var/tmp$ sqlite3 test.db SQLite version 3.5.9 Enter ".help" for instructions sqlite> CREATE TABLE test ( ...> ID Int Primary Key, ...> Name Varchar ); sqlite> .schema CREATE TABLE test ( ID Int Primary Key, Name Varchar ); sqlite> INSERT INTO test VALUES(1, "abc"); sqlite> SELECT * FROM test; 1|abc sqlite> .exit root@ereader:/var/tmp$ ![]() Last edited by -Thomas-; 02-16-2009 at 07:14 AM. |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 6
Karma: 14
Join Date: Jul 2008
Location: Amsterdam
Device: iLiad
|
Thanks Thomas. Now I don't have any excuse for learning how to make ipk files... until the next one pops up.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
different database for different categories | reup | Calibre | 3 | 06-20-2010 11:25 AM |
What Database? | LadyLou | Calibre | 8 | 02-12-2010 06:32 AM |
Compacting the Database? | Sabardeyn | Calibre | 2 | 02-11-2010 06:45 PM |
new database format | alexxxm | Calibre | 10 | 11-19-2008 03:45 AM |
Scribble Database? | Gogolo | iRex | 1 | 10-20-2008 04:05 PM |